Revision 55c85950
b/daemons/ganeti-watcher | ||
---|---|---|
19 | 19 |
# 02110-1301, USA. |
20 | 20 |
|
21 | 21 |
|
22 |
"""Tool to restart erronously downed virtual machines. |
|
22 |
"""Tool to restart erroneously downed virtual machines.
|
|
23 | 23 |
|
24 | 24 |
This program and set of classes implement a watchdog to restart |
25 | 25 |
virtual machines in a Ganeti cluster that have crashed or been killed |
... | ... | |
75 | 75 |
"""Start all the daemons that should be running on all nodes. |
76 | 76 |
|
77 | 77 |
""" |
78 |
# on master or not, try to start the node dameon
|
|
78 |
# on master or not, try to start the node daemon
|
|
79 | 79 |
utils.EnsureDaemon(constants.NODED) |
80 | 80 |
# start confd as well. On non candidates it will be in disabled mode. |
81 | 81 |
utils.EnsureDaemon(constants.CONFD) |
... | ... | |
310 | 310 |
|
311 | 311 |
|
312 | 312 |
class Watcher(object): |
313 |
"""Encapsulate the logic for restarting erronously halted virtual machines. |
|
313 |
"""Encapsulate the logic for restarting erroneously halted virtual machines.
|
|
314 | 314 |
|
315 | 315 |
The calling program should periodically instantiate me and call Run(). |
316 | 316 |
This will traverse the list of instances, and make up to MAXTRIES attempts |
Also available in: Unified diff