For MongoDB
A MongoDB replica set, priced like three VMs
Free to sign up. No egress fees on any product.
Why MongoDB on Edge
Replica-set members on local NVMe
NVMe for hot working sets
WiredTiger thrives on fast disk. Local NVMe on every member keeps the working set hot and p99 latency sane.Replica sets across VMs
Three members on separate VMs, joined by a private network. Automatic elections and failover, with no premium for them.mongodump to S3
Stream compressed archives to Edge Storage from a secondary, restore with mongorestore. No per-snapshot fees.Search your way
Text indexes for simple cases, or Meilisearch or OpenSearch on another VM when you need real full-text search.Community or Enterprise
MongoDB Community Server runs cleanly. If you hold an Enterprise licence, the same install pattern applies.Official drivers, unchanged
Same wire protocol and connection strings. Point your driver at the replica set and carry on.
Reference architecture
rs0: three members on one private network
app VMs
official drivers, replicaSet=rs0
mongod :27017
mongo-1 as PRIMARY, MongoDB 8.0
mongo-2 SECONDARY
local NVMe, votes in elections
mongo-3 SECONDARY
local NVMe, runs the nightly dump
mongo-backups
gzip archives with oplog, 14 days
- Compute
Three VMs forming the replica set, each with its data directory on local NVMe.
- Compute
Optional Meilisearch or OpenSearch VM when you need full-text search.
- Storage
Holds mongodump archives, or Percona Backup for MongoDB snapshots and oplog chunks.
- DNS
Records for each member's private address, used in the replica-set connection string.
Deploy
Initiate rs0 from one bootstrap script
- 01
Save a MongoDB bootstrap
Installs MongoDB 8.0 from MongoDB's own apt repository for Ubuntu 24.04.
mongodb.sh#!/bin/bash set -e export DEBIAN_FRONTEND=noninteractive curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \ gpg --dearmor -o /usr/share/keyrings/mongodb-8.0.gpg echo "deb [signed-by=/usr/share/keyrings/mongodb-8.0.gpg] \ https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" \ > /etc/apt/sources.list.d/mongodb-org-8.0.list apt-get update && apt-get install -y mongodb-org systemctl enable --now mongod - 02
Create three members
Attach all three to one private network, allow 27017 from that range only, and add each member's private IP to /etc/hosts.
shell$ edge compute scripts create --name mongodb-8 --file mongodb.sh $ for n in 1 2 3; do edge compute create --name mongo-$n --size s-4vcpu-8gb \ --image ubuntu-24 --region london --script mongodb-8 done - 03
Configure the replica set
Same file on every member, each with its own private IP and a shared keyfile. The keyfile also switches on authentication.
/etc/mongod.confnet: port: 27017 bindIp: 127.0.0.1,10.185.0.5 replication: replSetName: rs0 security: keyFile: /etc/mongo-keyfile - 04
Initiate the set and schedule backups
Run rs.initiate on mongo-1 itself, then create your admin user. Dump nightly from a secondary so the primary keeps its cache.
shell# on mongo-1 $ mongosh --eval 'rs.initiate({ _id: "rs0", members: [ { _id: 0, host: "mongo-1:27017" }, { _id: 1, host: "mongo-2:27017" }, { _id: 2, host: "mongo-3:27017" } ] })' $ mongodump --uri "$MONGO_URI" --readPreference=secondary \ --oplog --archive --gzip | \ aws s3 cp - s3://mongo-backups/$(date +%F).gz \ --endpoint-url https://storage.edge.network
Prefer to hand it off? Give the job to your AI agent or have our engineers do it.
What it costs
What rs0 costs each month
- No per-IOPS or per-snapshot lines
- Traffic between members on the private network is free
- Community Server carries no licence fee
- Billed hourly from a prepaid balance
Estimated monthly bill on Edge
3-node replica set, ~100 GB of data, nightly dumps kept 14 days
- Compute$115.413 × Performance VM (4 vCPU, 8 GiB, 160 GB NVMe) at $38.47 each
- Storage$3.15215 GB of compressed archives: first 5 GB free, then 210 GB × $0.015
- DNS$0.00Private records for each member
- Egress$0.00
FAQ
MongoDB on Edge, answered
How does this compare to Atlas?
Can I use the official drivers unchanged?
What about point-in-time recovery?
Can members live in different regions?
Can I shard?
Drop-in services
Add these without touching the stack
- Edge ShieldBot protection
POST /siteverify → score: 94Invisible bot protection for the signups and logins that write to your collections: a 1–100 humanity score instead of a puzzle.
Free for most sites. No puzzles, no widget to style.Explore - Edge AssistAI answers
<script src="…/assist.js">An AI answer box for your app's help pages, grounded in your own content. One script tag on any page.
Free tier: 250 answered questions a monthExplore
Move your replica set off Atlas
Start free. Migrate from Atlas or stand up a fresh replica set; Expert Services can plan the cutover.
Free tiers hard-cap. Nothing bills until you add a card.