Node failure timeout fix
Node failure timeout fix

The time to keep a node failed into the failed node list
was originally supposed to be 24h.

If a node leaves explicitly it will be removed from the list of nodes
and put into the leftNodes list. This way the NotifyLeave event won't
insert it into the retry list.
NOTE: if the event is lost instead the behavior will be the same as a failed node.

If a node fails, the NotifyLeave will insert it into the failedNodes
list with a reapTime of 24h. This means that the node will be checked
for 24h before being completely forgot. The current check time is every
1 second and is done by the reconnectNode function.
The failed node list is updated every 2h instead.

Signed-off-by: Flavio Crisciani <59eae1aa696b1b39cd87a38bdba3f0b2630647f9@docker.com>

paralin/docker,Mokolea/docker,docker/docker,Ramzec/docker,docker/docker,djs55/docker,gnailuy/docker,bearstech/moby,docker/docker,AkihiroSuda/docker,djs55/docker,nalind/docker,Mokolea/docker,trebonian/docker,Ramzec/docker,bearstech/moby,paralin/docker,cpuguy83/docker,nalind/docker,konstruktoid/docker-upstream,moby/moby,jimjag/docker,mahak/docker,mahak/docker,yosifkit/docker,trebonian/docker,gnailuy/docker,bearstech/moby,konstruktoid/docker-upstream,thaJeztah/docker,Mokolea/docker,nawawi/docker,paralin/docker,jameszhan/docker,flavio/docker,thaJeztah/docker,moby/moby,moby/moby,mahak/docker,cpuguy83/docker,bearstech/moby,trebonian/docker,cpuguy83/docker,cpuguy83/docker,gnailuy/docker,trebonian/docker,moul/docker,moby/moby,jimjag/docker,nalind/docker,Ramzec/docker,Mokolea/docker,AkihiroSuda/docker,jthelin/docker,jimjag/docker,thaJeztah/docker,moul/docker,nalind/docker,mahak/docker,vdemeester/docker,flavio/docker,jimjag/docker,vdemeester/docker,AkihiroSuda/docker,nawawi/docker,yosifkit/docker,yosifkit/docker,vdemeester/docker,moul/docker,nawawi/docker,jameszhan/docker,moul/docker,Ramzec/docker,yosifkit/docker,paralin/docker,flavio/docker,nawawi/docker,AkihiroSuda/docker,flavio/docker,konstruktoid/docker-upstream,djs55/docker,thaJeztah/docker,gnailuy/docker,jthelin/docker,konstruktoid/docker-upstream,jameszhan/docker