Zk chooses the main use scenario question

it is said that in the master scenario, zk asks all machines to create temporary sequentially numbered directory nodes, and each time the machine with the lowest number is selected as the master,. Why is it the smallest and the most master, because the smallest machine is the first to join?

Mar.18,2021

leader election, please learn basic paxos protocol and fast paxox protocol


it should be said that the first is the most common choice, which can be the second and the third. If the service is dynamically deleted, choose the first one that is more stable and balanced.

Menu