Analyze the performance of MongoDB on Arm servers
Introduction
Install MongoDB on Arm
Creating MongoDB test scenarios
Benchmark MongoDB on Arm with Yahoo Cloud Serving Benchmark (YCSB)
Three node replica set testing with YCSB
Alternative performance testing of MongoDB
Automate MongoDB Performance Benchmarking Infrastructure Setup with Pulumi
Next Steps
Analyze the performance of MongoDB on Arm servers
Who is this for?
This is an introductory topic for software developers who want to learn how to deploy and measure MongoDB performance on Arm servers.
What will you learn?
Upon completion of this Learning Path, you will be able to:
- Install and run MongoDB on an Arm server.
- Test MongoDB performance using open-source tooling.
- Measure and compare the performance of MongoDB on Arm versus other architectures with YCSB.
Prerequisites
Before starting, you will need the following:
- An Arm based instance from a cloud service provider, or access to the Arm AGI CPU
Summary
This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
You’ll install and benchmark MongoDB Community Edition 8.0 on Arm-based Linux servers. First, you’ll configure a three-node replica set and a separate YCSB client. Then, you’ll load data, run common read and update mixes, warm up the database, and adjust threads and dataset parameters to increase CPU use. You can also run a Java-based performance tool for targeted operation mixes and compare results across systems.
Frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
You can use Ubuntu 20.04, 22.04, or 24.04; RHEL or CentOS 8 and 9; or Amazon Linux 2023. For more information, see the MongoDB
Platform Support Matrix
.
Use one instance for the YCSB client and one or more instances for MongoDB. For the recommended topology, create three equal-size replica-set nodes and send test traffic to the designated primary.
Start with a 95% read and 5% update mix, which is recommended for real-world testing. You can also run 100% read or a 90% read and 10% update mix. Warm up the database for about five minutes before you collect performance data.
Increase the thread count and adjust
operationcount and recordcount. Aim for about 90% or higher CPU utilization before you record measurements.Install Java and
curl, then use the bundled bin/ycsb.sh launcher for YCSB. Install an OpenJDK runtime if you also use the alternative MongoDB performance test tool.