Skip to content

Commit 646ef61

Browse files
Refine documentation for Node.js on Google Cloud C4A: update titles, enhance clarity, and improve installation instructions
1 parent c11ba2d commit 646ef61

File tree

5 files changed

+71
-36
lines changed

5 files changed

+71
-36
lines changed

content/learning-paths/servers-and-cloud-computing/node-js-gcp/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Deploy Node.js on Google Cloud C4A on Arm-based Axion VMs
2+
title: Deploy Node.js on Google Cloud C4A Arm-based Axion VMs
33

44

55

@@ -9,9 +9,9 @@ who_is_this_for: This is an introductory topic for software developers migrating
99

1010

1111
learning_objectives:
12-
- Provision an Arm-based SUSE SLES virtual machine on Google Cloud (C4A with Axion processors)
12+
- Provision an Arm-based SUSE Linux Enterprise Server virtual machine on Google Cloud C4A instances with Axion processors
1313
- Install and configure Node.js on a SUSE Arm64 (C4A) instance
14-
- Validate Node.js functionality with baseline HTTP server tests
14+
- Validate Node.js functionality with baseline HTTP server tests
1515
- Benchmark Node.js performance using Autocannon on Arm64 (AArch64) architecture
1616

1717

content/learning-paths/servers-and-cloud-computing/node-js-gcp/background.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ For more information on Google Axion, see the Google blog [Introducing Google Ax
1616

1717
## Node.js
1818

19-
Node.js is an open-source, cross-platform JavaScript runtime environment built on Chrome's V8 engine. It enables you to build scalable server-side applications, APIs, and backend services using JavaScript. Node.js features an event-driven, non-blocking I/O model, making it highly efficient for handling concurrent connections.
19+
Node.js is an open-source, cross-platform JavaScript runtime environment built on Chrome's V8 engine. It enables you to build scalable server-side applications, APIs, and backend services using JavaScript. Node.js features an event-driven, non-blocking I/O model, making it highly efficient for handling concurrent connections. Node.js is widely used for web servers, real-time applications, microservices, and cloud-native backend services.
2020

21-
Node.js is widely used for web servers, real-time applications, microservices, and cloud-native backend services. For more information on Node.js, see the [Node.js official website](https://nodejs.org/en) and the [Node.js documentation](https://nodejs.org/docs/latest/api/).
21+
For more information on Node.js, see the [Node.js website](https://nodejs.org/en) and the [Node.js documentation](https://nodejs.org/docs/latest/api/).

content/learning-paths/servers-and-cloud-computing/node-js-gcp/benchmarking.md

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

1111
After validating that Node.js is installed and your HTTP server is running, you can benchmark it using **Autocannon**.
1212

13-
### Install Autocannon
13+
## Install Autocannon
1414
**Autocannon** is a fast HTTP/1.1 benchmarking tool for Node.js, used to measure server throughput, latency, and request handling under concurrent load.
1515

1616
```console
1717
npm install -g autocannon
1818
```
1919

20-
### Start Your Node.js HTTP Server
20+
## Start Your Node.js HTTP Server
2121

2222
If your sample HTTP server is not already running from the last section, you can start it by typing:
2323
```console
@@ -31,7 +31,7 @@ Server should be listening on port 80 in the background:
3131
Server running at http://0.0.0.0:80/
3232
```
3333

34-
### Run a Basic Benchmark (Local)
34+
## Run a Basic Benchmark (Local)
3535

3636
```console
3737
autocannon -c 100 -d 10 http://localhost:80
@@ -65,7 +65,7 @@ Req/Bytes counts sampled once per second.
6565
707k requests in 10.02s, 137 MB read
6666
```
6767

68-
### Understanding Node.js benchmark metrics and results with Autocannon
68+
## Understanding Node.js benchmark metrics and results with Autocannon
6969

7070
- **Avg (Average Latency)** → The mean time it took for requests to get a response.
7171
- **Stdev (Standard Deviation)** → How much individual request times vary around the average. Smaller numbers mean more consistent response times.
@@ -103,7 +103,7 @@ Throughput:
103103
| Req/Sec | 45,279 | 45,279 | 54,719 | 55,199 | 53,798.4 | 2,863.96 | 45,257 |
104104
| Bytes/Sec | 8.78 MB| 8.78 MB| 10.6 MB | 10.7 MB | 10.4 MB | 557 kB | 8.78 MB |
105105

106-
### Node.js performance benchmarking comparison on Arm64 and x86_64
106+
## Node.js performance benchmarking comparison on Arm64 and x86_64
107107
When you compare the benchmarking results, you will notice that on the Google Axion C4A Arm-based instances:
108108

109109
- Average latency is very low (~1.2 ms) with consistent response times.
Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,59 @@
11
---
2-
title: Install Node.js Using Node Version Manager
2+
title: Install Node.js using Node Version Manager
33
weight: 4
44

55
### FIXED, DO NOT MODIFY
66
layout: learningpathall
77
---
88

9-
## Install Node.js with Node Version Manager (NVM)
10-
This Learning Path walks you through installing **NodeJS** via the Node Version Manager (NVM). NVM is a powerful tool that allows users to specify which version of **NodeJS** that they want to use. NVM will then download and install the requested vesion using the **NodeJS** official packages.
9+
## Overview
10+
This section shows you how to install Node.js using Node Version Manager (NVM). NVM lets you choose which Node.js version to use and handles the download and installation for you. You’ll use official Node.js packages, making setup simple and reliable.
1111

12-
### 1. Install Node Version Manager (NVM)
13-
First, we will run this command to download and install NVM into our VM instance:
12+
## Install Node Version Manager (NVM)
13+
First, use this command to download and install NVM into your VM instance:
1414

1515
```console
1616
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
1717
```
1818

19-
Next, we have to activate NVM in our terminal shell. We can manually activate our current shell via copy and paste of the following into the shell:
19+
Next, activate Node Version Manager (NVM) in your current terminal session. Copy and paste the following commands into your shell to load NVM and enable command completion:
20+
21+
```console
22+
export NVM_DIR="$HOME/.nvm"
23+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
24+
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
25+
```
26+
27+
This step ensures that NVM commands are available in your shell. If you open a new terminal, repeat these commands or add them to your `~/.bashrc` file for automatic activation:
2028

2129
```console
2230
export NVM_DIR="$HOME/.nvm"
2331
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
2432
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
2533
```
2634

27-
You should be able to confirm that NVM is available by typing:
35+
Confirm that NVM is available by typing:
2836

2937
```console
3038
nvm --version
3139
```
3240

33-
### 2. Install NodeJS
34-
Now that NVM is installed, we simply type the following commands in our shell to download and install **NodeJS**:
41+
## Install Node.js
42+
Now that NVM is installed, download and install Node.js:
3543

3644
```console
3745
nvm install v24
3846
nvm use v24
3947
```
4048

41-
Additionally, we can add this command to the bottom of our $HOME/.bashrc file:
49+
Next, add this command to the bottom of your $HOME/.bashrc file:
4250

4351
```console
4452
echo 'nvm use v24' >> ~/.bashrc
4553
```
4654

47-
### 3. Verify Installation
48-
Check that Node.js and npm (Node’s package manager) are installed correctly.
49-
50-
You should be able to confirm that **NodeJS** is now installed and available!
55+
## Verify installation
56+
Check that Node.js and npm (Node.js package manager) are installed correctly by using this command that confirms that **NodeJS** is installed and available:
5157

5258
```console
5359
node --version
@@ -60,4 +66,10 @@ v24.10.0
6066
11.6.1
6167
```
6268

63-
Node.js installation is complete. You can now proceed with the baseline testing.
69+
This shows you that Node.js installation is complete. You can now proceed with the baseline testing.
70+
71+
## What you've accomplished
72+
73+
You've successfully provisioned a Google Axion C4A Arm virtual machine running SUSE Linux Enterprise Server. You're now ready to install Node.js and deploy your workloads on Arm.
74+
75+

content/learning-paths/servers-and-cloud-computing/node-js-gcp/instance.md

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,48 @@ For support on GCP setup, see the Learning Path [Getting started with Google Clo
1616

1717
## Provision a Google Axion C4A Arm VM in Google Cloud Console
1818

19-
To create a virtual machine based on the C4A instance type:
20-
- Navigate to [Google Cloud Console](https://console.cloud.google.com/).
21-
- Go to **Compute Engine > VM Instances** and select **Create Instance**.
22-
- Under **Machine configuration**:
23-
- Populate fields such as **Instance name**, **Region**, and **Zone**.
19+
To create a virtual machine using the C4A instance type in Google Cloud Platform:
20+
21+
- Open [Google Cloud Console](https://console.cloud.google.com/).
22+
- In the left menu, select **Compute Engine**, then select **VM Instances**.
23+
- Select **Create Instance**.
24+
- In the **Machine configuration** section:
25+
- Enter a unique **Instance name**.
26+
- Choose your preferred **Region** and **Zone**.
2427
- Set **Series** to `C4A`.
25-
- Select `c4a-standard-4` for machine type.
28+
- Select `c4a-standard-4` for the machine type.
2629

2730
![Create a Google Axion C4A Arm virtual machine in the Google Cloud Console with c4a-standard-4 selected alt-text#center](images/gcp-vm.png "Creating a Google Axion C4A Arm virtual machine in Google Cloud Console")
2831

32+
This configuration gives you four Arm vCPUs and 16 GB memory, optimized for Arm workloads.
33+
34+
## Select OS and finalize VM settings
35+
36+
After configuring the machine type, you'll need to select the operating system and finalize your VM settings. Follow the steps below to select an Arm64-based OS image, configure networking, and launch your instance. This ensures your VM is ready for Arm-native development and accessible for further setup.
37+
38+
39+
- In the **OS and Storage** section, select **Change**:
40+
- Choose an Arm64-based OS image. For this Learning Path, select **SUSE Linux Enterprise Server**.
41+
- For **License type**, select **Pay as you go**.
42+
- Select **Select** to confirm your choices.
43+
44+
- In the **Networking** section, enable **Allow HTTP traffic**.
45+
46+
- Select **Review and create** to review your configuration.
47+
48+
- Select **Create** to launch your VM instance.
49+
50+
- After the VM is created, locate your instance in the **VM Instances** list.
51+
- Select the **SSH** button next to your instance to open a browser-based SSH shell.
52+
53+
{{% notice Note %}}
54+
If you don't see the **SSH** option, refresh the page or check that your VM is running. The SSH shell opens in a new browser window, giving you direct access to your Arm-based VM.
55+
{{% /notice %}}
2956

30-
- Under **OS and Storage**, select **Change**, then choose an Arm64-based OS image. For this Learning Path, use **SUSE Linux Enterprise Server**. Select "Pay As You Go" for the license type. Click **Select**.
31-
- Under **Networking**, enable **Allow HTTP traffic**.
32-
- Click **Create** to launch the instance.
33-
- Once created, you should see a "SSH" option to the right in your list of VM instances. Click on this to launch a SSH shell into your VM instance:
3457

3558
![Invoke a SSH session via your browser alt-text#center](images/gcp-ssh.png "Invoke a SSH session into your running VM instance")
3659

37-
- A window from your browser should come up and you should now see a shell into your VM instance:
60+
A window from your browser should come up and you should now see a shell into your VM instance:
3861

3962
![Terminal Shell in your VM instance alt-text#center](images/gcp-shell.png "Terminal shell in your VM instance")
4063

0 commit comments

Comments
 (0)