Back

MongoDB VPS Hosting, Pre-Installed

MongoDB VPS hosting puts your document database on a server you control, with authentication switched on and root access. Once you've ordered, MongoDB 8.0 installs itself and opens port 27017 for remote connections, and the address, login and password appear in your panel. mongosh, MongoDB Compass and your app's driver can all connect with those details.

How much power do you need?

Total$3.08/mo

Prices include VAT.

Scale RAM and CPU up or down whenever you like. Disk can only grow, so start small.

What's installed on your MongoDB server?

  • MongoDB Community 8.0 from the official MongoDB repository
  • Authentication on, with a user called yonetici holding the root role in the admin database
  • Remote connections on port 27017 (bindIp 0.0.0.0)
  • The mongosh shell plus database tools such as mongodump and mongorestore
  • Settings in /etc/mongod.conf, data in /var/lib/mongodb, log in /var/log/mongodb/mongod.log
  • Firewall with only ports 22 and 27017 open, plus fail2ban for SSH

What size do you need for MongoDB?

MongoDB's production notes give no RAM figure, but they do explain the cache: WiredTiger uses the larger of half of (RAM minus 1 GB) or 256 MB. That means 256 MB at 1 GB, 512 MB at 2 GB and 1.5 GB at 4 GB. The same notes ask for two cores per mongod, so this install starts at 2 cores. As a rule of thumb, use 1 GB for trials and start production with 2 GB of RAM. The cache follows your RAM by itself, and your data and IP address stay the same when you scale up from your panel.

UseSizePriceChoose
Starter 1 GB RAM · 2 vCore · 25 GB NVMe $3.08/mo
Medium 2 GB RAM · 2 vCore · 40 GB NVMe $4.51/mo
Powerful 4 GB RAM · 2 vCore · 60 GB NVMe $6.89/mo

Who is it for?

  • Node.js, Python, Go or Java projects built on a document database
  • Anyone who runs the app elsewhere and wants the database on its own server
  • People moving existing MongoDB data to their own server with mongodump
  • Developers who need a remote MongoDB for development and testing

What happens after you order?

  1. Set the size and complete your payment.
  2. Your server starts and MongoDB installs itself. This took about 3 minutes in our real-server tests.
  3. On your panel's Overview tab, copy the Connection address, Login and Password rows.
  4. Write your connection string: mongodb://yonetici:PASSWORD@IP:27017/?authSource=admin
  5. Create a separate user for your app and keep yonetici, which has the root role, for admin work.

With every server

  • Daily backups included in the price
  • Unlimited traffic
  • Full root access
  • Scale RAM and CPU up or down later, and grow the disk
  • Location: Istanbul · IST-1.

Good to know

  • By ordering, you accept MongoDB's Server Side Public License (SSPL) terms.
  • Port 27017 is open to the internet. To limit it, run ufw delete allow 27017/tcp, then ufw allow from YOUR_IP to any port 27017.
  • Connections come without TLS: the password is protected but the data isn't encrypted. For sensitive data, use an SSH tunnel or set your own certificate with net.tls.
  • This is a standalone mongod. Transactions and change streams only work on replica sets, so turn on replication in mongod.conf yourself if you need them.
  • MongoDB comes from its own repository and stays on the 8.0 branch. You apply updates with apt.

MongoDB questions and answers

How do I connect to my MongoDB server?

Your connection string is mongodb://yonetici:PASSWORD@IP:27017/?authSource=admin. mongosh, MongoDB Compass and drivers all connect with it. The install password contains only letters and digits, so it doesn't need URL encoding.

How much RAM does MongoDB need?

MongoDB has no official minimum RAM figure. As a rule of thumb, 1 GB is fine for trials and 2 GB or more is a good start for production. The WiredTiger cache is 256 MB at 1 GB and 1.5 GB at 4 GB, and your frequently used data and indexes should fit in it.

Do transactions and change streams work on this server?

MongoDB only offers them on replica sets and sharded clusters, and this install is a standalone mongod. If you need them, set up replication and a key file in mongod.conf, then run rs.initiate() to start a single-member replica set.

Is my MongoDB connection encrypted?

MongoDB connections have no TLS at install: the password is protected, but data travels unencrypted. For sensitive data, open an SSH tunnel with ssh -L 27017:127.0.0.1:27017 root@IP, using the SSH password shown under Username on the Overview tab. Then connect to 127.0.0.1.

How do I back up MongoDB?

Your server is backed up every night, the last 7 days are kept, and this is included in the price. mongodump is also installed: take a dump with mongodump --uri and restore it with mongorestore.

How do I move my existing MongoDB data?

Take a dump on the old server with mongodump, copy the files to the new server over SFTP and load them with mongorestore --uri. If you're coming from an older version, read MongoDB's upgrade notes.

Read more and see similar apps