The purpose is to make the selected master server sticky. The master is reselected only if the current master is no longer a valid master.
Not yet used, as more is needed to replace the old code. The algorithm is based on counting the total number of slave nodes a server has, possibly in multiple layers and/or cycles.
Only a few test cases for now.