Add option to enable persistence to the status, to allow restart-ability to the script#4
Add option to enable persistence to the status, to allow restart-ability to the script#4realmgic wants to merge 7 commits intoaerospike:masterfrom
Conversation
…handle "legit" (200) exits without a status change.
… be restartable and will pick up where it left off
…vice 2. fix initial state of None to "NONE" for persistance
|
@spkesan - do you have some time to review and merge this? thanks! :) |
|
@realmgic |
|
Hi @realmgic Let's say:
When you observed the script hung or exited unexpectedly, did you check or collect the log file ( |
|
Hi @spkesan, When the script (or actually, the systemd service which runs it) is restarted, we don't know what was the last state we observed and what is the cluster state. In that specific case, the service was stopped after maintenance flag was raised but before we got the What I did is to persist the fact that the last state we saw was maintenance (saved to a file) so when we come back, we can check for that and undo the quiesce modes that might be there (if we get |
In some cases the script exits (or hangs) on various (unknown) reasons, leaving the cluster in quiesce mode. Saving the state to a file will allow restarting the script and if the node is out of maintenance mode, it will automatically undo the quiesce.