Skip to content

Commit 42ca893

Browse files
Updates
1 parent bcda120 commit 42ca893

File tree

4 files changed

+57
-51
lines changed

4 files changed

+57
-51
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ title: Run MongoDB on Arm-based Microsoft Azure Cobalt 100 instances
33

44
minutes_to_complete: 30
55

6-
who_is_this_for: Software developers who want to migrate MongoDB workloads to Arm-based platforms, with a focus on Microsoft Azure Cobalt 100 Arm64 instances.
6+
who_is_this_for: This is an introductory topic for software developers who want to migrate MongoDB workloads to Arm-based platforms, with a focus on Microsoft Azure Cobalt 100 Arm64 instances.
77

88
learning_objectives:
9-
- Provision an Arm64-based Cobalt 100 virtual machine in Azure using Ubuntu Pro 24.04 LTS.
10-
- Deploy MongoDB on the Cobalt 100 instance.
11-
- Run baseline tests and performance benchmarks on MongoDB in the Arm64 environment.
9+
- Provision an Arm64-based Cobalt 100 virtual machine in Azure using Ubuntu Pro 24.04 LTS
10+
- Deploy MongoDB on the Cobalt 100 instance
11+
- Run baseline tests and performance benchmarks on MongoDB in the Arm64 environment
1212

1313
prerequisites:
1414
- A [Microsoft Azure](https://azure.microsoft.com/) account with access to Cobalt 100 (Dpsv6) instances

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

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

1111
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.
1212

13-
To learn 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+
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).
1414

1515
## MongoDB
1616

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. Learn more on the [MongoDB website](https://www.mongodb.com/) and in the [official documentation](https://www.mongodb.com/docs/).
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+
19+
To find out more, see the [MongoDB website](https://www.mongodb.com/) and the [official documentation](https://www.mongodb.com/docs/).
Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Create an Arm based cloud virtual machine using Microsoft Cobalt 100 CPU
2+
title: Create an Arm-based cloud virtual machine using Microsoft Cobalt 100 CPU
33
weight: 3
44

55
### FIXED, DO NOT MODIFY
@@ -8,39 +8,43 @@ layout: learningpathall
88

99
## Introduction
1010

11-
There are several ways to create an Arm-based Cobalt 100 virtual machine : the Microsoft Azure console, the Azure CLI tool, or using your choice of IaC (Infrastructure as Code). In this section, you will use the Azure console to create a virtual machine with Arm-based Azure Cobalt 100 Processor.
11+
There are several ways to create an Arm-based Cobalt 100 virtual machine: the Microsoft Azure console, the Azure CLI, or your preferred infrastructure as code (IaC) tool. In this section, you will use the Azure console to create a virtual machine with the Arm-based Azure Cobalt 100 processor.
1212

13-
This learning path focuses on the general-purpose virtual machine of the D series. Please read the guide on [Dpsv6 size series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dpsv6-series) offered by Microsoft Azure.
13+
This Learning Path focuses on the general-purpose virtual machines in the **Dpsv6** series. For further information, see the [Microsoft Azure Dpsv6 sizes series guide](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dpsv6-series).
1414

15-
While the steps to create this instance are included here for your convenience, you can also refer to the [Deploy a Cobalt 100 Virtual Machine on Azure Learning Path](/learning-paths/servers-and-cloud-computing/cobalt/)
15+
While the steps to create this instance are included here for convenience, you can also refer to the [Deploy a Cobalt 100 virtual machine on Azure Learning Path](/learning-paths/servers-and-cloud-computing/cobalt/).
1616

17-
#### Create an Arm-based Azure Virtual Machine
17+
## Create an Arm-based Azure virtual machine
1818

19-
Creating a virtual machine based on Azure Cobalt 100 is no different from creating any other virtual machine in Azure. To create an Azure virtual machine, launch the Azure portal and navigate to "Virtual Machines".
20-
1. Select "Create", and click on "Virtual Machine" from the drop-down list.
21-
2. Inside the "Basic" tab, fill in the Instance details such as "Virtual machine name" and "Region".
22-
3. Choose the image for your virtual machine (for example, Ubuntu Pro 24.04 LTS) and select “Arm64” as the VM architecture.
23-
4. In the “Size” field, click on “See all sizes” and select the D-Series v6 family of virtual machines. Select “D4ps_v6” from the list.
19+
Creating a virtual machine on Azure Cobalt 100 is similar to creating any other virtual machine in Azure. To create an Azure virtual machine, open the Azure portal and navigate to **Virtual machines**.
2420

25-
![Azure portal VM creation — Azure Cobalt 100 Arm64 virtual machine (D4ps_v6) alt-text#center](images/instance.png "Figure 1: Select the D-Series v6 family of virtual machines")
21+
Then follow these steps:
2622

27-
5. Select "SSH public key" as an Authentication type. Azure will automatically generate an SSH key pair for you and allow you to store it for future use. It is a fast, simple, and secure way to connect to your virtual machine.
28-
6. Fill in the Administrator username for your VM.
29-
7. Select "Generate new key pair", and select "RSA SSH Format" as the SSH Key Type. RSA could offer better security with keys longer than 3072 bits. Give a Key pair name to your SSH key.
30-
8. In the "Inbound port rules", select HTTP (80) and SSH (22) as the inbound ports.
23+
- Select **Create**, then select **Virtual machine** from the drop-down list.
24+
- In the **Basics** tab, enter the instance details such as **Virtual machine name** and **Region**.
25+
- Choose the image for your virtual machine (for example, **Ubuntu Pro 24.04 LTS**) and select **Arm64** as the **VM architecture**.
26+
- In the **Size** field, select **See all sizes** and choose the **D-series v6** family of virtual machines. Select **D4ps_v6** from the list.
3127

32-
![Azure portal VM creationAzure Cobalt 100 Arm64 virtual machine (D4ps_v6) alt-text#center](images/instance1.png "Figure 2: Allow inbound port rules")
28+
![Azure portal VM creation: Azure Cobalt 100 Arm64 virtual machine (D4ps_v6) alt-text#center](images/instance.png "Select the D-series v6 family of virtual machines")
3329

34-
9. Click on the "Review + Create" tab and review the configuration for your virtual machine. It should look like the following:
30+
Now select **SSH public key** as the **Authentication type**. Azure can generate an **SSH key pair** for you and store it for future use. This is a fast, simple, and secure way to connect to your virtual machine.
31+
Enter the **Administrator username** for your VM
32+
Select **Generate new key pair**, and select **RSA SSH format** as the **SSH key type**. RSA could offer better security with keys longer than 3072 bits. Give a Key pair name to your SSH key.
3533

36-
![Azure portal VM creation — Azure Cobalt 100 Arm64 virtual machine (D4ps_v6) alt-text#center](images/ubuntu-pro.png "Figure 3: Review and Create an Azure Cobalt 100 Arm64 VM")
34+
In **Inbound port rules**, select **HTTP (80)** and **SSH (22)** as the inbound ports.
3735

38-
10. Finally, when you are confident about your selection, click on the "Create" button, and click on the "Download Private key and Create Resources" button.
36+
![Azure portal VM creation: allow inbound port rules alt-text#center](images/instance1.png "Allow inbound port rules")
3937

40-
![Azure portal VM creation — Azure Cobalt 100 Arm64 virtual machine (D4ps_v6) alt-text#center](images/instance4.png "Figure 4: Download Private key and Create Resources")
38+
Select the **Review and create** tab and confirm your configuration. It should look similar to the following:
4139

42-
11. Your virtual machine should be ready and running within no time. You can SSH into the virtual machine using the private key, along with the Public IP details.
40+
![Azure portal VM creation: review and create an Azure Cobalt 100 Arm64 VM alt-text#center](images/ubuntu-pro.png "Review and create an Azure Cobalt 100 Arm64 VM")
4341

44-
![Azure portal VM creation — Azure Cobalt 100 Arm64 virtual machine (D4ps_v6) alt-text#center](images/final-vm.png "Figure 5: VM deployment confirmation in Azure portal")
42+
When you are satisfied with your selections, select **Create**, then select **Download private key and create resources**.
4543

46-
While the virtual machine ready, proceed to the next section to deploy MongoDB on your running instance.
44+
![Azure portal VM creation: download private key and create resources alt-text#center](images/instance4.png "Download private key and create resources")
45+
46+
After deployment, your virtual machine will be running. Use the private key and the **Public IP** to connect over **SSH**
47+
48+
![Azure portal VM creation: VM deployment confirmation in Azure portal alt-text#center](images/final-vm.png "VM deployment confirmation in Azure portal")
49+
50+
With the virtual machine ready, proceed to the next section to deploy MongoDB on your running instance.

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

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,19 @@ weight: 4
66
layout: learningpathall
77
---
88

9+
## Install MongoDB and mongosh on the Ubuntu Pro 24.04 LTS Arm instance
910

10-
## Install MongoDB and Mongosh on the Ubuntu Pro 24.04 LTS Arm instance
11+
Install MongoDB and `mongosh on Ubuntu Pro 24.04 LTS (Arm64) by downloading the binaries, setting up environment paths, configuring data and log directories, and starting the server for local access and verification.
1112

12-
Install MongoDB and mongosh on Ubuntu Pro 24.04 LTS Arm64 by downloading the binaries, setting up environment paths, configuring data and log directories, and starting the server for local access and verification.
13+
## Install system dependencies
1314

14-
1. Install System Dependencies
15-
16-
Install required system packages to support MongoDB:
15+
Install the required system packages to support MongoDB:
1716
```console
1817
sudo apt update
1918
sudo apt install -y curl wget tar fio openssl libcurl4 net-tools
2019
```
2120

22-
2. Download and Extract MongoDB
21+
## Download and extract MongoDB
2322

2423
Fetch and unpack the MongoDB binaries for Arm64:
2524
```console
@@ -28,61 +27,62 @@ tar -xvzf mongodb-linux-aarch64-ubuntu2404-8.0.12.tgz
2827
sudo mv mongodb-linux-aarch64-ubuntu2404-8.0.12 /usr/local/mongodb
2928
```
3029

31-
3. Add MongoDB to System PATH
30+
## Add MongoDB to the system PATH
3231

3332
Enable running MongoDB from any terminal session:
3433
```console
3534
echo 'export PATH=/usr/local/mongodb/bin:$PATH' | sudo tee /etc/profile.d/mongodb.sh
3635
source /etc/profile.d/mongodb.sh
3736
```
3837

39-
4. Create data and log directories to use with MongoDB:
38+
## Create data and log directories
4039

41-
Set up the database data directory:
40+
Set up the database data and log directories:
4241
```console
4342
sudo mkdir -p /var/lib/mongo
4443
sudo mkdir -p /var/log/mongodb
4544
sudo chown -R $USER:$USER /var/lib/mongo /var/log/mongodb
4645
```
4746

48-
5. Start MongoDB Server
47+
## Start the MongoDB server
4948

50-
You can start MongoDB manually as shown:
49+
Start `mongod` manually for local testing:
5150
```console
5251
mongod --dbpath /var/lib/mongo --logpath /var/log/mongodb/mongod.log --fork
5352
```
5453

55-
The output from this command should look like:
54+
Expected output:
5655
```output
5756
about to fork child process, waiting until server is ready for connections.
5857
forked process: 3356
5958
child process started successfully, parent exiting
6059
```
6160

62-
6. Install mongosh
61+
6. **Install mongosh**
6362

64-
**mongosh** is the MongoDB Shell used to interact with your MongoDB server. It provides a modern, user-friendly CLI for running queries and database operations.
63+
**mongosh** is the MongoDB shell used to interact with your MongoDB server. It provides a modern, user-friendly CLI for running queries and database operations.
6564

66-
Download and install MongoDB’s command-line shell for Arm:
65+
Download and install the MongoDB shell for Arm:
6766
```console
6867
wget https://downloads.mongodb.com/compass/mongosh-2.3.8-linux-arm64.tgz
6968
tar -xvzf mongosh-2.3.8-linux-arm64.tgz
7069
sudo mv mongosh-2.3.8-linux-arm64 /usr/local/mongosh
7170
```
72-
Add mongosh to System `PATH`
71+
72+
Add `mongosh` to the system PATH:
7373
```console
7474
echo 'export PATH=/usr/local/mongosh/bin:$PATH' | sudo tee /etc/profile.d/mongosh.sh
7575
source /etc/profile.d/mongosh.sh
7676
```
7777

78-
### Verify MongoDB and mongosh Installation
78+
### Verify MongoDB and mongosh installation
7979

80-
Check if MongoDB and mongosh are properly installed on your machine:
80+
Check if MongoDB and `mongosh` are properly installed on your machine:
8181
```console
8282
mongod --version
8383
mongosh --version
8484
```
85-
You should see output similar to:
85+
You should see output similar to:
8686
```output
8787
db version v8.0.12
8888
Build Info: {
@@ -102,11 +102,11 @@ Build Info: {
102102

103103
### Connect to MongoDB via mongosh
104104

105-
You can now start interacting with MongoDB through its shell interface:
105+
Start interacting with MongoDB through the shell:
106106
```console
107107
mongosh mongodb://127.0.0.1:27017
108108
```
109-
You should see output on your terminal similar to:
109+
You should see output similar to:
110110
```output
111111
Current Mongosh Log ID: 68b573411523231d81a00aa0
112112
Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.3.8
@@ -130,4 +130,4 @@ For mongosh info see: https://www.mongodb.com/docs/mongodb-shell/
130130
test>
131131
```
132132

133-
With this you have verified that the MongoDB installation is complete. You can now proceed with the baseline testing of MongoDB on your Azure Cobalt 100 based VM.
133+
With this, you have verified that the MongoDB installation is complete. You can now proceed with baseline testing of MongoDB on your Azure Cobalt 100 VM.

0 commit comments

Comments
 (0)