replSetFreeze
replSetFreeze
- The
replSetFreeze
command prevents a replica setmember from seeking election for the specified number ofseconds. Use this command in conjunction with thereplSetStepDown
command to make a different node inthe replica set a primary.
The replSetFreeze
command uses the following syntax:
- { replSetFreeze: <seconds> }
If you want to unfreeze a replica set member before the specified numberof seconds has elapsed, you can issue the command with a secondsvalue of 0
:
- { replSetFreeze: 0 }
Restarting the mongod
process also unfreezes a replicaset member.
replSetFreeze
is an administrative command, and youmust issue it against the admin database.