Distributed Service Management
Hey, everyone. I have a bunch of servers that need to start services in a particular order when viewed as a whole. For example, service_a on host0 should not start until a service_b starts on host1. Is there an open source distributed service manager out there? I could create a custom init script, but I'd like to have something a bit more elegant. Thanks in advance.
1 Reply
You could try using a task-queue system, such as Celery with RabbitMQ and set it up alongside Ansible. Ansible will handle automation of the tasks, and RabbitMQ will handle communication to Ansible to direct when these tasks should occur. While this would require some startup configuration, it would likely be significantly less than creating a script. This would also allow for more rapid changes if needed in the future, such as adding more services and tasks.