Sep-06-2024, 05:21 AM
Hi
Am using python 3.8 and using the shared memory module from multiprocessing.
I have a simple setup that two docker container where each of them running a python process. One container is a writer that write into a shared memory and one container is a reader that read the shared memory. If either one of the procesd is abruptly kill and run up, either one can't attach back to the same shared memory. Thus if the writer goes down and up it writes but the running reader can't see the new writing and likewise. How to so solve this issue.? Thanks
My question is about attaching of the shared memory
Am using python 3.8 and using the shared memory module from multiprocessing.
I have a simple setup that two docker container where each of them running a python process. One container is a writer that write into a shared memory and one container is a reader that read the shared memory. If either one of the procesd is abruptly kill and run up, either one can't attach back to the same shared memory. Thus if the writer goes down and up it writes but the running reader can't see the new writing and likewise. How to so solve this issue.? Thanks
My question is about attaching of the shared memory