Creating a MongoDB Database

This page covers the configuration specific to MongoDB — its Database Mode and any engine-specific settings shown below. The rest of the creation flow — opening the wizard, namespace and name, version, machine profile, storage, and optional features — is the same for every engine and is documented in Common Steps.

Database Mode

Select the topology under Database Mode. Three modes are available:

  • Standalone — A single-node database without high availability or sharding. Best for development or low-traffic workloads.
  • Replicated Cluster — A MongoDB ReplicaSet for high availability.
  • Sharded Cluster — A fully sharded MongoDB cluster for high performance and high availability.

Replicated Cluster

When Replicated Cluster is selected, two additional fields appear:

Replicated Cluster mode selected showing Replicaset Name (rs0) and Replicaset Number (3) fields

FieldDescription
Replicaset NameThe name for the replica set (e.g., rs0). Required.
Replicaset NumberThe number of replica members (e.g., 3). Required.
mongodb+srv style DNSToggle on to enable mongodb+srv connection string support for this replica set.

Sharded Cluster

When Sharded Cluster is selected, three subsections appear — Shard Nodes, Config Server, and Mongos — each configurable independently.

Sharded Cluster mode selected showing Shard Nodes, Config Server, and Mongos collapsible panels

Shard Nodes — Configure how MongoDB data is partitioned, replicated, and resourced across your cluster.

Shard Nodes panel showing Shards, Replicaset Number, Storage size, Machine, CPU, and Memory fields

FieldDescription
ShardsNumber of shard partitions (e.g., 2). Required.
Replicaset NumberNumber of replicas per shard (e.g., 3). Required.
Storage sizeDisk size per shard node (e.g., 2Gi). Required.
MachinePreset machine profile or custom for manual CPU/memory.
CPUCPU request per shard node (e.g., 900m).
MemoryMemory request per shard node (e.g., 1Gi).

Config Server — Stores metadata about the sharded cluster including chunk distribution and shard configuration. Must run as a replica set.

Config Server panel showing Replicaset Number, Storage size, Machine, CPU, and Memory fields

FieldDescription
Replicaset NumberNumber of config server replicas (e.g., 3). Required.
Storage sizeDisk size per config server node (e.g., 2Gi). Required.
MachinePreset machine profile or custom.
CPUCPU request (e.g., 800m).
MemoryMemory request (e.g., 1Gi).

Mongos — Acts as the query router for the sharded cluster, directing client requests to the appropriate shards based on metadata from Config Servers.

Mongos panel showing Replicaset number, Machine, CPU, and Memory fields

FieldDescription
Replicaset numberNumber of Mongos router instances (e.g., 2). Required.
MachinePreset machine profile or custom.
CPUCPU request (e.g., 500m).
MemoryMemory request (e.g., 1Gi).

Additional MongoDB Options

MongoDB arbiter and hidden node options

FieldDescription
ArbiterToggle on to add an arbiter member (votes in elections but stores no data). Configure its pod resources.
Hidden NodeToggle on to add hidden replica members (replicate data but are invisible to clients). Set Replicas, resources, and storage.
HostName / IPOptional host name and IP used to build the connection string and certificate SANs.

Create a MongoDB Database

  1. Open the wizard and select MongoDB — see Getting Started and Select a Database Type.
  2. Set the namespace and name.
  3. Pick the database version and the Database Mode described above, then set the machine profile and storage — see Configure the Database.
  4. Optionally configure Advanced Configuration (labels, deletion policy, credentials, point-in-time recovery) and Additional Options (monitoring, backup, TLS, gateway).
  5. Click Deploy.