The architecture of a cluster, including the appointment of masters, is governed by numerous rules.
Ensure that the product is activated on the masters before it is activated on any of the individual nodes in the cluster.
When it restarts, the original primary master attempts to resume responsibility as the primary master and reset the cluster configuration to the last known state before it failed. That is, the primary master that was promoted during disaster recovery is demoted back to its original role in the cluster.
After this reconfiguration, the old primary can join the cluster again.