Skip to content

Commit 3eddd78

Browse files
Tweaks
1 parent dc35294 commit 3eddd78

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

content/learning-paths/servers-and-cloud-computing/mongodb-on-azure/baseline-testing.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ mongod --version
2222
netstat -tulnp | grep 27017
2323
```
2424
What each command does:
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**.
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**
2828

2929
You should see output similar to:
3030

@@ -100,10 +100,10 @@ Interpretation:
100100

101101
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:
102102

103-
C - Create: Insert a new record/document into the database.
104-
R - Read: Query the database to retrieve data.
105-
U - Update: Modify an existing record.
106-
D - Delete: Remove a record.
103+
- C - Create: insert a new record/document into the database
104+
- R - Read: query the database to retrieve data
105+
- U - Update: modify an existing record
106+
- D - Delete: remove a record
107107

108108
```console
109109
mongosh --host localhost --port 27017

content/learning-paths/servers-and-cloud-computing/mongodb-on-azure/benchmarking.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ weight: 8
66
layout: learningpathall
77
---
88

9-
## Benchmark MongoDB with **mongotop** and **mongostat**
9+
## Benchmark MongoDB with mongotop and mongostat
1010

1111
In this section, you will measure MongoDB's performance in real time.
1212
You will install the official MongoDB database tools, start MongoDB and run a script to simulate heavy load. With the script running you will then measure the database's live performance using **mongotop** and **mongostat**.
1313

14-
1. Install MongoDB Database Tools
14+
## Install MongoDB database tools
1515

1616
```console
1717
wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2404-arm64-100.13.0.deb
@@ -22,7 +22,7 @@ source ~/.bashrc
2222
```
2323
These commands download and unpack MongoDB's official monitoring tools (**mongotop** & **mongostat**), then add them to your PATH so you can run them from any terminal.
2424

25-
2. Verify the Installation
25+
## Verify the installation
2626

2727
```console
2828
mongostat 2
@@ -40,7 +40,6 @@ mongostat --host 127.0.0.1 --port 27017 2
4040
insert query update delete getmore command dirty used flushes vsize res qrw arw net_in net_out conn time
4141
8 16 8 8 182 1|0 0.0% 0.0% 0 3.54G 146M 0|0 0|0 34.0k 172k 11 Sep 4 04:57:56.761
4242
4 8 4 4 98 1|0 0.0% 0.0% 0 3.54G 146M 0|0 0|0 18.3k 116k 11 Sep 4 04:57:58.762
43-
9 18 9 9 198 1|0 0.0% 0.0% 0 3.54G 146M 0|0 0|0 36.4k 179k 11 Sep 4 04:58:00.760
4443
4 9 4 4 99 1|0 0.0% 0.0% 0 3.54G 146M 0|0 0|0 18.3k 117k 11 Sep 4 04:58:02.760
4544
8 17 8 8 202 1|0 0.0% 0.0% 0 3.54G 146M 0|0 0|0 37.0k 183k 11 Sep 4 04:58:04.762
4645
4 9 4 4 103 2|0 0.0% 0.0% 0 3.54G 146M 0|0 0|0 19.0k 119k 11 Sep 4 04:58:06.760

content/learning-paths/servers-and-cloud-computing/mongodb-on-azure/deploy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ tar -xvzf mongosh-2.3.8-linux-arm64.tgz
8080
sudo mv mongosh-2.3.8-linux-arm64 /usr/local/mongosh
8181
```
8282

83-
Add `mongosh` to the system `PATH`.
83+
Add `mongosh` to the system `PATH`:
8484

8585
```console
8686
echo 'export PATH=/usr/local/mongosh/bin:$PATH' | sudo tee /etc/profile.d/mongosh.sh

content/learning-paths/servers-and-cloud-computing/mongodb-on-azure/mongotop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ layout: learningpathall
1010

1111
This section demonstrates how to monitor MongoDB performance using `mongotop`, which reports how much time the server spends reading and writing per collection in real time. It includes benchmark results collected on Azure Arm64 virtual machines, providing a reference for expected latencies.
1212

13-
## Prerequisites.
13+
## Prerequisites
1414

1515
- `mongod` is running locally and bound to `127.0.0.1` (as started earlier)
1616
- Your **long_system_load.js** script is actively generating traffic in another terminal
1717
- MongoDB Database Tools (which include `mongotop`) are installed
1818

19-
## Run mongotop — Terminal 2
19+
## Run mongotop - terminal 2
2020

2121
```console
2222
mongotop 2

0 commit comments

Comments
 (0)