# Replication server priority
### Configuring the Priority of MogoDB Replica Set Members
*Execute the following commands in the mongo shell of the primary member*
```
1. Copy the replica set configuration to a variable
cfg = rs.conf()
2. Change each member's priority value
cfg.members[0].priority = 1
cfg.members[1].priority = 0
cfg.members[2].priority = 0
3. Assign the replica set the new configuration
rs.reconfig(cfg)
4. Priority details:
{
1 : "make a member more eligible to become primary"
, 0 : "ineligible to become primary. (ower values to make the member less eligible)"
}
```
***Note:*** The above setting resets the priority of the two secondary servers from 0.5 to 0, while setting the primary member with the maximum priority of 1. In this case, if the primary server is down, the other secondary servers could not replace the primary member.
***Reference:***
[Adjust Priority for Replica Set Member](https://docs.mongodb.com/manual/tutorial/adjust-replica-set-member-priority/ )