Explicit heartbeat update method, only check healthy nodes for HB timeout, default node state on creation is 'dead'
This commit is contained in:
@@ -15,11 +15,11 @@ logger = logging.getLogger(__name__)
|
||||
def node_heartbeat():
|
||||
logger.debug('starting')
|
||||
node = Node.objects.myself()
|
||||
node.save()
|
||||
node.send_heartbeat()
|
||||
|
||||
|
||||
@simple_locking('house_keeping', 10)
|
||||
def house_keeping():
|
||||
logger.debug('starting')
|
||||
ClusteringConfig.objects.check_dead_nodes()
|
||||
ClusteringConfig.cluster.check_dead_nodes()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user