You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Azure’s Cobalt 100 is Microsoft’s first-generation, in-house Arm-based processor. Built on the Arm Neoverse N2 architecture, this 64-bit CPU improves performance and energy efficiency for a wide range of cloud-native, scale-out Linux workloads. These include web and application servers, data analytics, open-source databases, caching systems, and more. Running at 3.4 GHz, the Cobalt 100 processor allocates a dedicated physical core for each vCPU to ensure consistent, predictable performance.
11
+
Azure’s Cobalt 100 is Microsoft’s first-generationArm-based processor. Built on the Arm Neoverse N2 architecture, the 64-bit CPU improves performance and energy efficiency for a wide range of cloud-native, scale-out Linux workloads. These include web and application servers, data analytics, open-source databases, caching systems, and more. Running at 3.4 GHz, the Cobalt 100 processor allocates a dedicated physical core for each vCPU to ensure consistent, predictable performance.
12
12
13
-
To find out more, see the [Azure Cobalt 100 announcement blog](https://techcommunity.microsoft.com/blog/azurecompute/announcing-the-preview-of-new-azure-vms-based-on-the-azure-cobalt-100-processor/4146353).
13
+
See the [Azure Cobalt 100 announcement blog](https://techcommunity.microsoft.com/blog/azurecompute/announcing-the-preview-of-new-azure-vms-based-on-the-azure-cobalt-100-processor/4146353) to find out more.
14
14
15
15
## MongoDB
16
16
17
17
MongoDB is an open-source NoSQL database known for high performance, scalability, and flexibility. It stores data in JSON-like BSON documents, making it ideal for applications that need dynamic, schema-less data structures. Developers commonly use MongoDB for web, mobile, IoT, and real-time analytics workloads.
18
18
19
-
To find out more, see the [MongoDB website](https://www.mongodb.com/) and the [official documentation](https://www.mongodb.com/docs/).
19
+
To find out more, see the [MongoDB website](https://www.mongodb.com/) and the [MongoDB documentation](https://www.mongodb.com/docs/).
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/mongodb-on-azure/baseline-testing.md
+34-27Lines changed: 34 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,13 @@ weight: 5
6
6
layout: learningpathall
7
7
---
8
8
9
-
## Baseline testing of MongoDB
10
-
In this section you will perform baseline testing by verifying MongoDB is running, logging into the shell, executing a few test queries, and monitoring live performance. This ensures the database is functioning correctly before starting any benchmarks.
9
+
## Overview
10
+
11
+
Use this section to validate your **MongoDB** setup on an **Azure Cobalt 100 (Arm64)** VM running **Ubuntu 24.04 LTS**. You will check service health, run a quick storage baseline with **fio**, validate CRUD operations with **mongosh**, and do light query, index, and concurrency checks before larger benchmarks.
12
+
13
+
{{% notice Note %}}
14
+
For this exercise, `mongod` runs locally and **access control is disabled** by default. Keep the server bound to `127.0.0.1` until you configure users and authentication.
15
+
{{% /notice %}}
11
16
12
17
## Verify MongoDB installation and service health (Azure Cobalt 100 Arm64)
13
18
@@ -17,9 +22,9 @@ mongod --version
17
22
netstat -tulnp | grep 27017
18
23
```
19
24
What each command does:
20
-
-**ps -ef | grep mongod** checks if the MongoDB server process is running
21
-
-**mongod --version** shows the installed MongoDB version
22
-
-**netstat -tulnp | grep 27017** confirms MongoDB is listening on the default port 27017
25
+
-**ps -ef | grep mongod** checks if the MongoDB server process is running.
26
+
-**mongod --version** shows the installed MongoDB version.
27
+
-**netstat -tulnp | grep 27017** confirms MongoDB is listening on the default port **27017**.
The output shows how fast it read data (**16.6 MB/s**) and how many reads it did per second (**~4255 IOPS**), which tells you how responsive your storage is for random reads.
95
+
Interpretation:
96
+
-**16.6 MB/s** is the measured read bandwidth for **4 KB** random reads.
97
+
-**~4255 IOPS** indicates random read responsiveness.
91
98
92
-
## Connectivity and CRUD Sanity Check
99
+
## Connectivity and CRUD sanity check
93
100
94
101
To verify that the MongoDB server is reachable you will perform a connectivity check. You will run a sanity test of core database functionality and permissions, refered to as CRUD:
## Run a basic query performance test (count filter)
154
161
155
-
Run a lightweight query performance check:
162
+
Run a lightweight query performance check.
156
163
157
164
```console
158
165
mongosh --eval '
159
166
db = db.getSiblingDB("baselineDB");
160
167
for (let i=0; i<1000; i++) { db.perf.insertOne({index:i, value:Math.random()}) };
161
168
var start = new Date();
162
-
db.perf.find({ value: { $gt: 0.5 } }).count();
169
+
db.perf.countDocuments({ value: { $gt: 0.5 } });
163
170
print("Query Time (ms):", new Date() - start);
164
171
'
165
172
```
166
-
This connects to MongoDB, selects the `baselineDB` database, inserts 1,000 documents into the `perf` collection, and measures the time to count documents where `value > 0.5`
173
+
This connects to MongoDB, selects the `baselineDB` database, inserts **1,000** documents into the `perf` collection, and measures the time to count documents where `value > 0.5`.
167
174
168
175
You should see output similar to:
169
176
170
177
```output
171
178
Query Time (ms): 2
172
179
```
173
180
174
-
## Index creation speed test in MongoDB
181
+
## Measure index creation time in MongoDB
175
182
176
-
Measure how long MongoDB takes to create an index on a collection:
183
+
Measure how long MongoDB takes to create an index on a collection.
Five parallel MongoDB shell sessions were executed, each inserting 1,000 test documents into the baselineDB.concurrent collection. All sessions completed successfully, confirming that concurrent data insertion works as expected.
233
+
All sessions completed successfully, confirming that concurrent inserts work as expected.
227
234
228
-
With these tests you have confirmed that MongoDB is installed successfully and is functioning as expected on the Azure Cobalt 100 (Arm64) environment.
235
+
## Next steps
229
236
230
-
You are now ready to perform further benchmarking for MongoDB.
237
+
With these checks complete, proceed to the MongoDB benchmarking section to run workload‑focused tests on the **Azure Cobalt 100 Arm64** instance.
0 commit comments