I am using Nomad 1.0.4 at the moment.
I have the following scenario/requirement:
There are nodes node1, node2, … nodeN of a distributed DB (say Cassandra).
I want to run a cleanup job on each node, but ONLY one node at a time, SERIALLY !!!
Order of nodes themselves is not that important, but the cleanup CANNOT start on multiple nodes at the same time.
Also, if any cleanup were to fail, the job sequence should NOT go any further, as an operator should look into why the particular node failed.
What could I use to achieve the following?
What I have thought of so far is to start multipl
parametrized jobs, one for each node (constraint matching
node name), and when the time comes for cleanup, run one job at a time and look at result and continue.
Is there any other simpler way?