antirez / disque

Disque is a distributed message broker
BSD 3-Clause "New" or "Revised" License
8.01k stars 537 forks source link

Worsen HELLO priority for nodes disconnected #121

Closed antirez closed 8 years ago

antirez commented 9 years ago

Currently HELLO priority is modified from 1 to 10 or 100 if the node is in fail or pfail state. Even when the node is yet not in one of the following states, from the point of view of the node receiving the HELLO command, the disconnected status of the link should be enough to given a priority lower than 1 (which is the top priority). We should use all the informations in our posses in order to adjust the priority accordingly.