'How to run a python service on standby?
I have to run a process with high availability to fetch from one data source and send to another in a loop (ETL) I have figured out how to do this with a python script with an infinite while loop running as a script.
I can deploy the script to 2 unix servers, I would like to have one service live and another on stand by. If one proc goes down, the other can check this and start loop from where the other left off. What would be a good way to do this? is this the right approach? Is it possible to have this config for maybe multiple servers?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|