You were redirected from a different version of the documentation. Click here to go back.

Configure a Highly Available Ops Manager Backup Service

Backups depend upon which version of MongoDB your database is compatible. This Feature Compatibility Version ranges from the current version to one version earlier. For example, with MongoDB 5.0, the FCV can be 4.4 or 5.0. Backup changed with the MongoDB 4.2. Backup configuration and execution changed between FCV 4.0 and FCV 4.2.

The Ops Manager Application manages backups. Deploy sufficient Ops Manager hosts with a load balancer to meet your backup needs.

To learn how to deploy Ops Manager with high availability, see Configure a Highly Available Ops Manager Application.

The Backup Daemon maintains copies of the data from your backed up mongod instances and creates snapshots used for restoring data. The file system that the Backup Daemon uses must have sufficient disk space and write capacity to store the backed up instances.

For replica sets, the local copy is equivalent to an additional secondary replica set member. For sharded clusters the daemon maintains a local copy of each shard as well as a copy of the config database.

To configure high availability:

  • Use multiple backup daemons to scale your deployment horizontally.
  • Add backup daemons dedicated to queryable restore jobs.
  • Add backup daemons dedicated to restore jobs.
  • Deploy your backing databases in replica sets to provide failover.

Multiple Backup Daemons

You need multiple backup daemons for queryable restore only.

To increase your storage and to scale horizontally, you can run multiple instances of the Backup Daemon. Increase the available storage for the head databases to provide scalability. This does not increase the available space for snapshot storage.

With multiple daemons, you can choose which Backup Daemon, Sync Store, Oplog Store, Snapshot Store, and Assignment Labels to bind to a specific group. If you do not choose specific daemons and stores, Ops Manager uses all available backup components for each group.

For a tutorial on how to assign Backup Jobs to Backup Daemons, see Assign Snapshot Stores to Specific Data Centers.

Multiple Backup Daemons allow for manual failover should one daemon become unavailable. You can instruct Ops Manager to transfer the daemon’s backup responsibilities to another Backup Daemon. Ops Manager reconstructs the data on the new daemon’s server and binds the associated replica sets or shards to the new daemon. To learn how this process works, see Move Jobs from a Lost Backup Daemon to another Backup Daemon.

Ops Manager reconstructs the data using a snapshot and the oplog from the Snapshot Storage.

The Backup Daemon is installed with Ops Manager package but must be specifically activated to run. Select the procedure specific to your platform on the Install Ops Manager section.

Replica Sets for Backing Databases

Deploy replica sets rather than standalones for the dedicated MongoDB processes that host the Ops Manager Application and Backup Databases. Replica sets provide automatic failover should the primary become unavailable.

When deploying a replica set with members in multiple facilities, ensure that a single facility has enough votes to elect a primary if needed. When choosing between facilities for this single facility, choose the facility that hosts the Ops Manager Application and application database. Place a majority of voting members and all the members that can become primary in this facility. Otherwise, network partitions could prevent the set from being able to form a majority.

See also

Dedicated Queryable Daemons

To configure dedicated queryable daemons, adjust the settings per backup daemon on the Daemon configuration page. For the dedicated queryable daemon host, clear all checkboxes except Queryable Restore Jobs.

Dedicated Restore Daemons

To decrease restore times or if you have multiple backup jobs per daemon, add dedicated restore daemons. To configure dedicated restore daemons, adjust the settings per backup daemon on the Daemon configuration page.

For the dedicated restore daemon host, clear the following checkboxes:

  • Resource Usage
  • Garbage Collection

Consider adding the mms.backupRestoreCentralUrl custom setting to point to the HTTP service running on the dedicated restore daemon host so that dedicated host serves the snapshot data. To add this setting, go to the Custom tab in the Ops Manager Config and add the custom setting.

Additional Information

To move jobs from a lost Backup server to another Backup server, see Move Jobs from a Lost Backup Daemon to another Backup Daemon.

To learn how to make Ops Manager Application highly available, see Configure a Highly Available Ops Manager Application.