Introduction
Modern applications rely heavily on databases that can scale while maintaining predictable performance. In this blog, we explore how MongoDB performs when deployed on Nutanix HCI on Nutanix Database Service (NDB) platform for a MongoDB Database sharded architecture. Using the YCSB (Yahoo! Cloud Serving Benchmark), we tested different record (document) sizes ranging from 1KB to 1MB to understand how throughput, latency, and infrastructure utilization like CPU and memory behaves in real-world scenarios.
The results demonstrate that Nutanix platform provides a robust and high-performing foundation for mission-critical MongoDB deployments, offering excellent throughput and efficient resource utilization, even as record sizes increase with NDB.
The primary goal was to understand how MongoDB performs when deployed on Nutanix HCI via the NDB platform. This understanding is crucial for validating the platform's suitability and efficiency in hosting demanding, scale-out MongoDB sharded cluster workloads, demonstrating the combined power of Nutanix's hyperconverged infrastructure and automated database management capabilities.
Platform and Configuration Details
Architecture
The Nutanix platform is designed to provide low I/O latency and predictable performance, supporting a diverse range of transactional and analytical database workloads. Its distributed storage architecture and intelligent data placement capabilities promote consistent performance even as the environment scales.
For optimal MongoDB performance we configured the storage container as follows:
- Replication Factor: Set to 2.
- Compression: Enabled compression. This saves space and can enhance MongoDB workload performance.
- Erasure Coding: Disabled, as it is not recommended for databases due to the significant CPU time consumed for parity and checksum generation.
- Deduplication: Disabled, as it adds processing overhead and does not typically reduce space usage for databases.
A three-shared MongoDB cluster was deployed in a single Nutanix cluster managed using the NDB platform. The specific MongoDB architecture for this test utilized a standard, highly available MongoDB deployment for each shard and config server (CSRS). The three shards and the configuration server replica set were each configured with a replication factor (RF) of 3, featuring a Primary-Secondary-Secondary (PSS) node setup and 2 mongos servers for query routing. For optimal performance testing, each database VM node of the replica set was distributed strategically on 4 nodes to simulate production grade HA solutions which were deployed on nutanix AOS/AHV To help maintain that all the transactions are written across the replica set, the write concern was set to majority.
The YCSB client connects to query routers via connection string with a workload of 90% Reads : 10% Writes. it was selected to simulate a common, read-heavy operational database environment. This configuration is highly relevant for use cases like e-commerce catalogs or content management systems where data retrieval is significantly more frequent than data modification. This choice effectively stresses the sharding architecture and read performance of MongoDB on the NDB platform.
Software Versions
Performance Results
The YCSB workloads were executed using various record sizes, from 1KB up to 1MB, to measure key performance indicators, specifically throughput, latency, and cluster resource utilization.
The following table summarizes the performance metrics captured across the different record sizes:The YCSB workloads were executed using various record sizes, from 1KB up to 1MB, to measure key performance indicators, specifically throughput, latency, and cluster resource utilization. The runtime for this test was around 30 mins with 500GB of data insertion approx.
The following table summarizes the performance metrics captured across the different record sizes:
Interpretation of results
- Throughput vs. Record Size:
- Throughput (Operations per second) shows a clear inverse relationship with the record size. The maximum throughput of 75,265 Ops/sec was achieved with the smallest record size (1KB), indicating highly efficient workloads.
- As the record size increases, the throughput decreases, dropping to 1,901 Ops/sec for the 1MB record size. This is expected, as larger records require more I/O and processing time per operation.
- Latency Characteristics:
- Average Read Latency: Read latency is minimal for small records (e.g., 2.16 ms for 1KB) but increases significantly with record size, peaking at 109.83 ms for 1MB records. This suggests that read operations for large documents become I/O bound and can become slower as the record size increases.
- Average Update Latency: Update latency remains relatively stable across most record sizes, ranging from 5.95 ms to 16.37 ms. The peak update latency is seen at 1MB, but the increase is less dramatic than the read latency, suggesting that it is efficiently handling the update workload.
- Resource Utilization (CVM CPU):
- CPU utilization by the Nutanix storage controller (CVM) is highest for the smallest record sizes (up to 80% for 8KB records), correlating with the maximum operations per second. This indicates that for high-throughput, small-record workloads, the system is CPU-bound and efficiently handled by Nutanix Database Platform.
- As the throughput drops with larger record sizes, the CVM CPU utilization also decreases (down to 35% for 1MB), shifting the bottleneck from CPU to I/O processing and latency.
- Cluster Throughput (I/O):
- Read Throughput (MBps): The peak read throughput of 4,477 MBps is achieved with 8KB records. For larger record sizes (64KB to 1MB), the read throughput stabilizes around 1,600 - 1,700 MBps.
- Write Throughput (MBps): The peak write throughput of 1,601 MBps is also observed at the 8KB record size. For larger records, the write throughput remains consistently high, around 1,179 MBps to 1,387 MBps, demonstrating the NDB platform's capability to sustain high write bandwidth.
MongoDB Component CPU Usage (%) per record size
The data indicates that CPU usage across all MongoDB components (shards, mongos, and config server) generally decreases as the document size increases, with the highest CPU utilization observed during the 1KB test for most components. Specifically, the shard primary VMs show the highest CPU usage in the 1KB test (ranging from 44% to 58%), which then drops significantly for the larger 64KB and 100KB tests, and remains relatively low for the 200KB and 1MB tests. The Mongos VMs follow a similar pattern, peaking at the 1KB test (61% and 56%) and showing a consistent drop as document size grows. The Config Server's CPU usage is also highest for 1KB, 8KB, and 64KB tests (25-27%) and then reduces for larger sizes.
MongoDB Component Memory Utilization (%) per record size
Memory utilization across the Shard VMs was relatively consistent, ranging from 37% to 52%, regardless of the record size (1KB to 1MB). This indicates stability and efficient memory management by both MongoDB and the NDB platform. The Mongos VMs and the Config Server Primary VM showed minimal memory usage, generally between 1% and 3% across all record sizes.
Key Findings
- Optimized for small-to-medium records: The test environment produced best throughput for 1KB records, indicating that a Nutanix platform leveraging NDB for provisioning and managing the database is an excellent choice for high-throughput OLTP-style MongoDB workloads.
- Very high aggregate I/O: The Nutanix data plane sustained multi-GB/s aggregate reads and >1 GB/s writes for the 8KB workload, demonstrating the benefit of distributing the I/O across the cluster's high-performance architecture. Furthermore, the benchmark results showed consistent CPU utilization and ample free memory across the cluster, assuring minimal resource contention and optimal performance overhead.
- Predictable latency: Application-level latencies remained low for small/medium records; larger records increased application latency (as expected), but cluster-level transport remained efficient.
- Balanced resource usage: CPU and memory utilization patterns show that compute load is distributed across shards, with mongos being the most-utilized component due to routing responsibilities.
- Operational simplicity with NDB: Using NDB for provisioning and lifecycle management reduced manual steps in cluster creation, scaling and test orchestration—lowering operational overhead.
Conclusion
The YCSB-driven benchmark tests demonstrate that the MongoDB database deployed using NDB on Nutanix platform was highly capable of running sharded MongoDB deployments. NDB can interface with the underlying hardware to simplify infrastructure and database provisioning across data centers,manage the lifecycle of provisioned databases, and facilitate backup and restore operations via snapshots. Furthermore, NDB Time Machine enables users to recover the database to a specific snapshot or point in time, simplifying recovery operations and reducing the challenges associated with day-to-day database management. Leveraging NVMe storage, 100 GbE networking, the NDB platform tested consistently delivered high throughput and predictable latency across varying document sizes.
The results also show that the tested Nutanix NDB platform demonstrated strong scalability and performance characteristics for sharded MongoDB environments. The system achieved more than 75,000 operations per second for transactional workloads, while sustaining high cluster I/O bandwidth exceeding 1.6 GB/s of combined read and write throughput for large-document workloads. The benchmark further indicates that workloads with small, high-frequency operations tend to be CPU-bound on the CVM, whereas large-document read operations are more latency-sensitive and primarily constrained by storage I/O performance. The tested Nutanix NDB platform demonstrated exceptional capability for running sharded MongoDB deployments, as evidenced by YCSB-driven benchmark tests.
©2026 Nutanix, Inc. All rights reserved. Nutanix, the Nutanix logo and all Nutanix product and service names mentioned are registered trademarks or trademarks of Nutanix, Inc. in the United States and other countries. All other brand names mentioned are for identification purposes only and may be the trademarks of their respective holder(s).
This content reflects an experiment in a test environment. Results, benefits, savings, or other outcomes described depend on a variety of factors including use case, individual requirements, and operating environments, and this publication should not be construed as a promise or obligation to deliver specific outcomes.