MongoDB database services for production teams.
JusDB provides MongoDB database services for scoped projects, ongoing remote DBA coverage, production support, performance tuning, sharding, migrations, and high availability. We work on MongoDB Atlas, self-managed clusters on your servers or Kubernetes, and MongoDB-compatible services such as Amazon DocumentDB. 24x7 on-call is available under your service agreement.
Or request a free audit of one database instance. Already in an incident? See MongoDB support.
- NDA before access
- Read-only by default
- Changes measured against your baseline
MongoDB version status
Pick the version you run
MongoDB 9.0
Newest majorReleased in September 2026, with end of life listed for 31 October 2031.
MongoDB supports upgrading to 9.0 from 8.0 or 8.3, so a deployment on 7.0 moves to 8.0 first.
Plan a MongoDB upgradeMongoDB 8.0
SupportedReleased in October 2024, with end of life listed for 31 October 2029.
MongoDB recommends a burn-in period before raising featureCompatibilityVersion, because data stored with new features must be removed before a downgrade.
Plan a MongoDB upgradeMongoDB 7.0
Ends August 2027Released in August 2023, with end of life listed for 31 August 2027.
Atlas emails at least six months before end of life, then upgrades any cluster still on 7.0.
Plan the upgrade off 7.0MongoDB 6.0
End of lifeEnd of life since 31 July 2025, and Atlas no longer supports it.
An upgrade from 6.0 goes through 7.0, then 8.0, because MongoDB upgrades one major release at a time.
Keep 6.0 running while you upgradeVersion status from MongoDB's software lifecycle schedules, the MongoDB 9.0 upgrade notes, and the Atlas end-of-life FAQ, checked 28 October 2026.
- Platforms
- MongoDB Atlas, your own servers, Kubernetes, and Amazon DocumentDB
- High availability
- Replica sets with majority write concern, rehearsed elections, and point-in-time restores
- Incidents
- Initial-response targets are set in your service agreement. See the targets
Symptoms
Eight MongoDB problems we are asked to fix
Each one has a cause we can measure. The scoping call starts from the symptom you see.
Queries slow down as a collection grows because the plan is a collection scan (COLLSCAN), or an index puts a range field before an equality field.
A secondary falls too far behind during bulk writes and once the primary's oplog no longer holds the entries it missed, it needs a full initial sync.
One shard takes most new inserts because the shard key only increases, like an ObjectId or a timestamp, so inserts pile into the highest chunk.
Aggregations spill to disk and slow down when a $group or an unindexed $sort passes the 100 MB memory limit for one pipeline stage.
Reads slow down once the working set outgrows the cache which WiredTiger sizes by default at half of (RAM minus 1 GB).
The upgrade off 6.0 keeps slipping more than a year after its end of life in July 2025, with 7.0 next on 31 August 2027.
Long transactions abort after one minute because transactionLifetimeLimitSeconds defaults to 60, and long transactions also put pressure on the cache.
The Atlas bill keeps rising while the workload stays flat, because auto-scaling moves busy clusters to larger tiers that stand in for missing indexes.
If one of these is costing your team time, a scoping call is the place to start.
Book a 30-min scoping call (opens Google Calendar in a new tab)Elections
How an election rolls back confirmed MongoDB writes
With write concern w: 1, the primary confirms a write without waiting for any secondary. If it fails before a secondary copies the write, the old primary rolls it back when it rejoins.
One primary, two secondaries, three outcomes
Choose a state to see where the writes go.
Application and routing
Drivers send writes to the primary, and reads to secondaries only if your read preference allows.
Primary
Takes every write
Healthy
Secondary 1
Electable: copies and applies the oplog
Current
Secondary 2
Electable: a little behind
Slightly behind
Each secondary copies and applies the primary's operation log (oplog), so it can trail by a few operations.
Application and routing
No writes succeed until the election ends. MongoDB says the median time to elect a new primary, with default settings, should not typically exceed 12 seconds.
Old primary
Failed holding w: 1 writes no secondary had
Rolls back
Secondary 1, elected
Had the newest oplog of the members left
Missing writes
Secondary 2
Follows the new primary
Following
The application had reported those writes as saved. The old primary rolls them back into BSON files that someone must review with bsondump.
Application and routing
Drivers find the new primary and retry inserts and single-document updates and deletes once (retryable writes).
Old primary
Rejoins as a secondary, rolling back only unconfirmed writes
Secondary
Secondary 1, elected
Held every write confirmed with w: majority
New primary
Secondary 2
Follows the new primary
Following
With w: majority, a write is confirmed only after a majority of data-bearing voting members have journaled it, so the elected member holds every confirmed write. A write cut off by the failure is retried once or returns an error.
We keep w: majority, the default for most replica sets, unless your team accepts the risk of w: 1 in writing. We recommend a third data-bearing member over an arbiter: a primary-secondary-arbiter set defaults to w: 1, and its majority writes stall while either data-bearing member is down.
We alert on replication lag, write concern errors, and how many hours of writes the oplog holds (the oplog window). A write that times out (wtimeout) stays on the primary and can still roll back. We rehearse elections with rs.stepDown() on a copy, and on Atlas with its primary failover test.
What we cover
Full-spectrum MongoDB engineering
The mongod log, the database profiler, explain output, and currentOp drive every change, measured against your baseline.
Performance tuning
We read the plans of your slowest operations before changing anything.
- explain("executionStats") on the real workload
- Compound indexes with equality fields first
- $match first, so a pipeline can use an index
High availability and DR
Replica sets designed around the data loss and downtime you can accept (RPO and RTO), then drilled.
- Write concern set per workload, w: majority by default
- A delayed, hidden member to recover a dropped collection
- Elections and point-in-time restores rehearsed on a copy
Sharding and scaling
Shard keys chosen from your queries and write rate, so inserts spread across shards.
- Candidate keys checked with analyzeShardKey
- Resharding with reshardCollection when a key stops fitting
- Zones that place data in the regions you choose
Atlas and cloud migration
Moves onto Atlas, between clusters, and across major versions, with a tested way back (a rollback plan).
- Atlas live migration, or mongosync between clusters
- Major upgrades one release at a time
- Relational moves with Relational Migrator or Debezium
Administration and backups
We test backups by restoring them, and handle the routine work replica sets need.
- Atlas backups, Ops Manager, or Percona Backup for MongoDB
- Oplog window checked against your write rate
- Disk, index, and connection growth for capacity planning
Security and compliance
Authentication, roles, encryption, and auditing reviewed against the controls your auditors ask about.
- SCRAM or x.509 authentication with least-privilege roles
- TLS, encryption at rest, and auditing your edition supports
- Queryable Encryption for fields that need it
Incident support
A critical (P1) page, answered within your agreement's target
JusDB keeps your recovery procedures (runbooks) written down, so an incident starts from a known plan instead of a blank page.
Initial-response targets
2 to 4 hours
Business hours
During covered business hours
30 minutes
24x7 on-call
P1 incidents
Our engineering team is in India; business-hours coverage is Mon–Fri 09:00–18:00 IST (UTC+5:30), and 24x7 on-call is available under your service agreement.
Initial-response targets, not resolution guarantees. The target for your engagement is set in your service agreement.
What happens on a P1 page
Page
You page the on-call engineer
Through the escalation path your service agreement names.
Triage
Root cause from the mongod log, the profiler, and currentOp
Slow operations, replication lag, and cache pressure traced to the query or election behind them.
Mitigate
Stabilize first, from the runbook
Kill the runaway operation, step down an unhealthy primary, or shed load, then fix the cause once production is steady.
After
A review after every P1
What happened, why, and the change that stops it happening again.
Before and between incidents
- Your setup, written down firstDuring onboarding we record your versions, replica set and shard layout, write concerns, and backups, so an incident starts with context.
- One escalation path, in writingYour service agreement names how to reach the on-call engineer and in which hours.
- Reviews between incidentsWe review slow operations, the oplog window, cache use, and backups, and report open risks with next steps.
- Version dates trackedWe track MongoDB and Atlas end-of-life dates for the versions you run and plan upgrades before support ends.
Process
How a MongoDB engagement runs, step by step
Written findings come before any change. Your team approves production changes, except routine actions you have pre-approved.
Scoping call
Your clusters, versions, platforms, and what you need covered.
Read-only review under NDA
Our engineers use named accounts with read-only roles such as clusterMonitor to read your configuration, mongod logs, replica set status, and index statistics.
A written report before any change
Each finding comes with the change we propose, how we will measure it, and a way to undo it (a rollback plan).
Changes, then handover
We rehearse risky changes on a secondary or a copy, apply them in the windows you approve, and hand over updated operating instructions (runbooks).
Step one is a 30-minute scoping call.
Book a 30-min scoping call (opens Google Calendar in a new tab)Ways to work
Choose the MongoDB service your team needs
Start with the responsibility you need covered. Each engagement has its own scope, deliverables, access requirements, and acceptance criteria.
Projects
Scoped MongoDB projects
A defined piece of work with written findings, hands-on changes, and validation against your baseline.
- MongoDB consultingSchema design, shard keys, upgrades, and recovery plans, scoped as one project.
- Performance tuningSlow queries, indexes, and aggregation pipelines, measured before and after.
- Migration and upgradesMajor version upgrades and moves to Atlas, with a rollback plan.
- High availabilityReplica set design, write concern, and election drills.
- MongoDB on KubernetesOperator-run replica sets and sharded clusters.
- Security auditAuthentication, roles, encryption, and audit settings, with a written report.
Ongoing
Ongoing coverage and support
JusDB monitors the databases, carries out the agreed maintenance, and responds to incidents during the coverage the proposal names. The team keeps a change record, recovery procedures, and a review after every P1.
Where your MongoDB runs, and the tools around it
Your team and ours
What a managed MongoDB service still leaves to your team
Managed cloud databases automate much of the infrastructure layer, but your team still owns query performance, capacity, cost, and incident decisions.
| Question | Managed cloud service | Your own servers or Kubernetes |
|---|---|---|
| Servers, storage, and minor patches | The provider runs them. | Your team, or JusDB under your agreement. |
| Backups and restores | Atlas takes cloud backups of M10 and larger clusters once you turn them on. Testing a restore is still yours. | Yours: mongodump, Percona Backup for MongoDB, or Ops Manager, plus the oplog a point-in-time restore needs. |
| Elections and failover | The provider runs the replica set. Your application still needs the right write concern and retryable writes. | You design and test it: member priorities, a third data-bearing member, and write concern. |
| Slow queries, indexes, and schema | Yours. The provider runs the platform, not your queries. | Yours. |
| Versions and end of life | The provider's calendar. Atlas emails at least six months ahead, then upgrades clusters left on a retiring version. | Your calendar. MongoDB publishes each end-of-life date. |
| Moving off later | mongodump, or a live move with mongosync on the versions it supports. | The same tools, or new members added before the old servers leave. |
Your team keeps control
- Set business priorities, application requirements, and release plans
- Approve production changes, except routine actions you have pre-approved
- Own your cloud accounts, access policies, and vendor relationships
- Decide when maintenance can happen and how quickly service must recover
- Move the work in-house or to another provider after your agreement's notice period, with your data returned or deleted and the transition help your agreement sets out (Terms, section 8)
JusDB handles the agreed database work
- Monitor database health, investigate alerts, and involve the right people
- Review query performance, replication, capacity, and backup health
- Carry out approved changes and update the operating instructions they affect
- Report completed work, open risks, and recommended next steps
Weighing Atlas against running MongoDB yourself? We compare both against your workload on a scoping call.
Book a 30-min scoping call (opens Google Calendar in a new tab)Further reading
MongoDB guides and engine comparisons
Blog guides on replica sets, sharding, tuning, and aggregation pipelines, plus two engine comparisons.
Guide
MongoDB replica set operations
Adding members, stepping down a primary, diagnosing replication lag, and resizing the oplog.
Guide
MongoDB sharding and chunk balancing
Ranged, hashed, and compound shard keys, balancer windows, jumbo chunks, and zones.
Guide
High performance with MongoDB
Measure first, model for access patterns, index by the ESR rule, then keep the working set in the cache.
Guide
MongoDB aggregation pipeline patterns
$lookup with sub-pipelines, $facet, $bucket, $merge, and the indexes a pipeline can use.
Comparison
PostgreSQL vs MongoDB
Rigid schemas against flexible documents, JSONB against BSON, joins, and sharding.
FAQ
Common MongoDB questions
What buyers ask about MongoDB support, versions, migrations, sharding, tuning, and Atlas.
Still have a question?
Ask it on a scoping call. No production access needed.
Book a 30-min scoping call (opens Google Calendar in a new tab)Do you provide 24/7 MongoDB DBA support?
Yes. JusDB provides 24x7 on-call for MongoDB under your service agreement; without it, coverage is business hours. Initial-response targets are 2 to 4 hours during covered business hours, Mon–Fri 09:00–18:00 IST (UTC+5:30). Where your service agreement includes 24x7 on-call, the initial-response target for P1 incidents is 30 minutes. Targets are not resolution guarantees.
What versions of MongoDB do you support?
JusDB works on the releases MongoDB itself still supports: the 9.0, 8.0, and 7.0 major releases and the 8.3 minor release. We also work on Percona Server for MongoDB and on MongoDB-compatible Amazon DocumentDB and Azure Cosmos DB for MongoDB. For 6.0 and older, past end of life, we plan the upgrade first.
Can you migrate from a relational database to MongoDB?
Yes. JusDB migrates MySQL, PostgreSQL, Oracle, and SQL Server databases to MongoDB. We design the document schema from your access patterns first. Data moves with MongoDB Relational Migrator, or with Debezium change data capture (CDC) through Kafka until cutover, and each cutover has a rollback plan.
How quickly can you start?
JusDB starts work once the engagement is agreed and access is in place, on a start date confirmed in your proposal, which follows a scoping call.
Do you design sharded clusters?
Yes. JusDB designs sharded MongoDB clusters, starting with a shard key chosen from your query patterns and write rate and checked with analyzeShardKey. We avoid keys that only increase, which send most inserts to one shard, and plan resharding with reshardCollection when a key no longer fits.
What does your query optimisation process look like?
JusDB starts from slow operations in the mongod log, over 100 ms by default, and the database profiler where it is on. We read each plan with explain("executionStats") to find collection scans and indexes that examine far more keys than they return. Then we fix indexes, pipelines, or schema, and measure each change against your baseline.
Can you manage our MongoDB Atlas deployment?
Yes. JusDB manages Atlas projects and clusters: tier sizing and auto-scaling, backups and restore tests, network access, database users, and version upgrades. We route Atlas alerts to tools such as PagerDuty or Datadog.
Next step
Talk to a MongoDB engineer about your databases
Tell us what is slow, fragile, or due to change. The first 30-minute call covers your databases, current ownership, and required coverage. No production access is needed. Or request a free audit of one database instance, subject to availability: mutual NDA before read-only access, a prioritized report within one week after access is ready, and no obligation.
NDA before access, read-only by default, and written scope first
Compare with other databases
If you are weighing alternatives, these are the databases most often compared with this one.
PostgreSQL
JSONB columns with GIN indexes cover many document workloads inside a relational database, which is why teams weigh PostgreSQL against MongoDB.
DynamoDB
A serverless key-value and document service on AWS. Teams compare its key-based access patterns with MongoDB's ad hoc queries and secondary indexes.
Cassandra
A wide-column store for very high write rates across data centers, compared with MongoDB when writes dominate and queries are known in advance.
Azure Cosmos DB
Azure Cosmos DB for MongoDB speaks the MongoDB wire protocol, so teams on Azure compare it with MongoDB Atlas or self-managed MongoDB.