mirror of https://github.com/docker/docs.git
refresh the node specs when an unhealthy node reconnects to the cluster
Signed-off-by: mountkin <mountkin@gmail.com>
This commit is contained in:
parent
fda3606be3
commit
d5c5df9f1b
|
|
@ -250,6 +250,9 @@ func (n *Node) refreshLoop() {
|
|||
n.client.StopAllMonitorEvents()
|
||||
n.client.StartMonitorEvents(n.handler)
|
||||
n.emitCustomEvent("node_reconnect")
|
||||
if err := n.updateSpecs(); err != nil {
|
||||
log.Errorf("[%s/%s] Update node specs failed: %v", n.ID, n.Name, err)
|
||||
}
|
||||
}
|
||||
n.healthy = true
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue