A central locking service for handling active standby for n instances.
Dockerfile 5.80%Python 94.20%
svclock's Introduction
SVCLock
Make sure only one instance is active, without any of the instances needing to know where or how many other instances are alive
Interact with SVCLock
http://{server}:5050/lock
Type: GetArguments:- name = str # Name of lock- instance = str # A uniqe string for a host. A simple choice would be hostnameResponse
{
"active" : True/False,"hello" : int, # The recomended hello interval in secounds"dead" : int # The dead interval for the lock
}