Adjust PBM configuration when the number of replica set members changes¶
You may add or remove replica set members depending on your workload. With the default configuration for node priorities and mongod binary paths, PBM scales up or down automatically.
If you adjusted any of these configurations, here’s what you need to do to ensure that PBM continues to operate without errors:
Add a new replica set member¶
- Install Percona Backup for MongoDB on a new
mongodnode - Add a new
mongodnode to a replica set -
Set up and start
pbm-agenton a new node.Before doing so, you may see the following error in
pbm statusoutput on your running replica set:rs202:30202 [S]: pbm-agent [v2.11.0] FAILED status: ERROR with lost agent, last heartbeat: 1748531485. This is expected behavior. -
Adjust PBM configuration for node priorities for backups, oplog slices or define custom paths to mongod binaries to include the new node.
Remove a replica set member¶
- Edit the PBM configuration for node priorities for backups, oplog slices or define custom paths to mongod binaries to exclude the node you plan to remove.
-
Stop
pbm-agenton the node you plan to remove:$ sudo systemctl stop pbm-agentYou may see the error like the following in the
pbm statusoutput on the remaining nodes:- rs202:30202 [S]: pbm-agent [v2.11.0] FAILED status: > ERROR with lost agent, last heartbeat: 1748531485. This is expected behavior. -
Remove the replica set member
pbm statusshould report the updated status without errors.
Created: October 7, 2025