Add CLI commands to start ATM as a cluster.
Options should work as follows:
atm start: starts one or more workers in background, in wait mode
atm stop: stops all the workers
atm status: shows information about whether there is a cluster running or not and about how many workers it has.
The start command should start a master process using python-daemon, and this should use multiprocessing to spawn other workers as required.
A pid file for the master process should be used to control whether the ATM is up or not.
Also, optionally, the start command should spawn a REST API app on a separated process.
Add CLI commands to start ATM as a cluster.
Options should work as follows:
atm start: starts one or more workers in background, in wait modeatm stop: stops all the workersatm status: shows information about whether there is a cluster running or not and about how many workers it has.The
startcommand should start a master process using python-daemon, and this should use multiprocessing to spawn other workers as required.A
pidfile for the master process should be used to control whether the ATM is up or not.Also, optionally, the
startcommand should spawn a REST API app on a separated process.