IBM Cloud Docs
High-Availability

High-Availability

IBM Cloud® Databases for MongoDB is a managed cloud database service that is fully integrated into the IBM Cloud environment. The database, storage, and supporting infrastructure all run in IBM Cloud.

Both Databases for MongoDB Standard and Enterprise Edition deployments consist of three data nodes, one a primary node and the other two as secondary nodes. They are configured as a replication set without sharding, so they always provide three complete copies of the data set, in addition to the primary. If the primary is unavailable, the replica set elects a secondary to be primary and continues normal operation. The old primary rejoins the set when available.

Connections to a MongoDB replica are made by supplying the driver or binary the replica set name and a seedlist for the hosts in the replica set. This configuration allows drivers and applications the ability to change which host they are connecting to if one of the hosts becomes unavailable. Your deployment has a connection string in the DNS Seedlist Connection format, so your applications can take advantage of this feature.

Application-level High-Availability

Applications that communicate over networks and cloud services are subject to transient connection failures. You want to design your applications to retry connections when errors are caused by a temporary loss in connectivity to your deployment or to IBM Cloud.

Because Databases for MongoDB is a managed service, regular updates and database maintenance occurs as part of normal operations. This can occasionally cause short intervals where your database is unavailable.

Your applications must be designed to handle temporary interruptions to the database, implement error handling for failed database commands, and implement retry logic to recover from a temporary interruption.

Several minutes of database unavailability or connection interruptions are not expected. Open a support ticket with details if you have time periods longer than a minute with no connectivity so we can investigate.

High availability, disaster recovery, and SLA resources

Issuing commands that break replication or force node shut down, such as db.shutdown(), break the high availability of your database, void your SLA, and require restoring from a backup.

Databases for MongoDB deployments conform to the IBM Cloud Databases HA, DR, and SLA information and terms.

You can find more information about best practices when using your MongoDB deployment on the IBM Cloud in this Best Practices blog post.