-
Notifications
You must be signed in to change notification settings - Fork 66
Timestamp-verified restart #703
Comments
I like the idea of this functionality being the default |
This is partially implemented in dev. The verified restart will work for the target host, but doesn't yet check that a cluster has fully restarted. |
We might need to check what restart actually does. It takes some params, so it might look for timestamps of bootstrap-host, but not actually restarting bootstrap-host. Also wondering if it would make sense to check all hosts participating in a cluster for having completed restart before continuing. Would be more straight-forward if the (original) restart function would return a list of hosts that will restart, and then the verify routine would simply check them all (one after the other perhaps).. |
I already have a code for this in one of our project. What I did is to get the hosts names using “http://#{@properties["ml.server"]}:8002/manage/v2/hosts?format=json” and check each one if the timestamp changed after invoking restart.
|
Roxy supports restarting a specific group (e.g. subset of all hosts) or entire cluster (e.g. all hosts in cluster). You'd need to distinguish which were involved in restart first. But I'd be interested in seeing what you did. Can you send that offline? |
Sure Geert.
|
Thanks for the code. I have been thinking about this, and thought it might be more efficient and future-proof to use the manage rest api for the restart too. Those return timestamps of all involved hosts, skipping the need to look them up first. |
Fixed #703: restart using rest api, iterate hosts to verify
Fixed in dev |
A restart function that verifies the restart was successful. Convenient for build scripts. Based on this example.
The text was updated successfully, but these errors were encountered: