automatically switch other machines in the cluster if the current leader dies