How primary fencing and zombie mode work
masterIf a booting primary cannot be verified as the real primary, it is fenced to protect the cluster. The behavior depends on whether a real primary can be identified:
If the real primary is resolvable
- The cluster is set to read-only.
- The real primary's IP is written to a
zombie.lockfile. - The member's role is set to
zombie. - The member restarts. During boot, it reads the IP from
zombie.lockand attempts to rejoin the original cluster. - If successful,
zombie.lockis cleared and the member boots as a standby.
Note: Rejoining will not be attempted if the resolved primary is in a different region than the local PRIMARY_REGION environment variable. You must update PRIMARY_REGION to allow a rejoin.
If the real primary is NOT resolvable
- The cluster is set to read-only.
- An empty
zombie.lockfile is created. - Upon reboot, the empty file indicates a non-recoverable failure mode (e.g., unregistered members or complete member cycling).