Skip to content

Commit 0e559e0

Browse files
Merge branch 'main' into updates_for_ubuntu_c4a_install
2 parents 61b1dd3 + 4037b4d commit 0e559e0

File tree

3 files changed

+58
-25
lines changed

3 files changed

+58
-25
lines changed

content/learning-paths/servers-and-cloud-computing/cassandra-on-gcp/installation.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,33 @@ weight: 4
66
layout: learningpathall
77
---
88

9-
## Apache Cassandra Installation on SUSE VM
10-
This guide will help you install **Apache Cassandra** on a SUSE Linux virtual machine. Cassandra is a highly scalable NoSQL database designed for high availability and fault tolerance.
9+
## Apache Cassandra Installation on Ubuntu or SuSE VM
10+
This guide will help you install **Apache Cassandra** on a Ubuntu or SuSE Linux virtual machine. Cassandra is a highly scalable NoSQL database designed for high availability and fault tolerance.
1111

1212
### Update System Packages
1313
Updating system packages ensures that your system has the latest security patches and dependencies required for Cassandra.
1414

15-
```console
15+
{{< tabpane code=true >}}
16+
{{< tab header="Ubuntu" language="bash">}}
17+
sudo apt update
18+
{{< /tab >}}
19+
{{< tab header="SUSE Linux" language="bash">}}
1620
sudo zypper refresh
1721
sudo zypper update -y
18-
```
22+
{{< /tab >}}
23+
{{< /tabpane >}}
1924

2025
### Install Java
2126
Cassandra requires a Java runtime environment. You can use either Java 11 or Java 17. This example uses Java 17 for optimal performance and compatibility with Cassandra 5.0.5.
2227

23-
```console
28+
{{< tabpane code=true >}}
29+
{{< tab header="Ubuntu" language="bash">}}
30+
sudo apt install -y openjdk-17-jdk
31+
{{< /tab >}}
32+
{{< tab header="SUSE Linux" language="bash">}}
2433
sudo zypper install -y java-17-openjdk java-17-openjdk-devel
25-
```
34+
{{< /tab >}}
35+
{{< /tabpane >}}
2636

2737
### Download Cassandra
2838
Download the latest stable release of Apache Cassandra 5.0.5 from the official Apache repository.

content/learning-paths/servers-and-cloud-computing/cassandra-on-gcp/instance.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ To create a virtual machine based on the C4A instance type:
2727
![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")
2828

2929

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**.
30+
- Under **OS and Storage**, select **Change**, then choose an Arm64-based OS image. For this Learning Path, use **SUSE Linux Enterprise Server** or **Ubuntu**.
31+
- If using use **SUSE Linux Enterprise Server**. Select "Pay As You Go" for the license type.
32+
- If using **Ubuntu**, under the **Version** tab, please scroll down and select the aarch64 version of **Ubuntu 22.04 LTS**.
33+
- Once appropriately selected, please Click **Select**.
3134
- Under **Networking**, enable **Allow HTTP traffic**.
3235
- Click **Create** to launch the instance.
3336
- 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:
@@ -49,6 +52,43 @@ uname -m
4952
```
5053
will identify the host machine as `aarch64`.
5154

55+
### Run hello world
56+
57+
Install the `gcc` compiler:
58+
59+
{{< tabpane code=true >}}
60+
{{< tab header="Ubuntu" language="bash">}}
61+
sudo apt update
62+
sudo apt install -y build-essential
63+
{{< /tab >}}
64+
{{< tab header="SUSE Linux" language="bash">}}
65+
sudo zypper refresh
66+
sudo zypper install -y gcc
67+
{{< /tab >}}
68+
{{< /tabpane >}}
69+
70+
Using a text editor of your choice, create a file named `hello.c` with the contents below:
71+
72+
```C
73+
#include <stdio.h>
74+
int main(){
75+
printf("hello world\n");
76+
return 0;
77+
}
78+
```
79+
Build and run the application:
80+
81+
```console
82+
gcc hello.c -o hello
83+
./hello
84+
```
85+
86+
The output is shown below:
87+
88+
```output
89+
hello world
90+
```
91+
5292
## Automating Arm Based Infrastructure Deployment
5393

5494
Cloud infrastructure deployment is typically done via Infrastructure as code (IaC) automation tools. There are Cloud Service Provider specific tools like [Google Cloud Deployment Manager](https://cloud.google.com/deployment-manager/docs/).

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

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Benchmark Node.js performance with Autocannon on Arm and x86_64
2+
title: Benchmark Node.js performance with Autocannon
33
weight: 6
44

55
### FIXED, DO NOT MODIFY
@@ -82,23 +82,6 @@ Now have a look at the Autocannon benchmark metrics to get a sense of how Node.j
8282
- Standard deviation (Stdev) indicates how much the response times vary around the average; lower values mean the server responds more consistently.
8383
- The minimum latency (Min) represents the fastest response recorded during the benchmark, highlighting the best-case performance for individual requests.
8484

85-
## Review Node.js benchmark results on x86_64
86-
87-
To compare the benchmark results, the following results were collected by running the same benchmark on a `x86 - c4-standard-4` (4 vCPUs, 15 GB Memory) x86_64 VM in GCP, running SUSE:
88-
89-
### Latency results (ms):
90-
91-
| Metric | 2.5% | 50% (Median) | 97.5% | 99% | Avg | Stdev | Max |
92-
|----------|------|--------------|-------|-----|--------|--------|-------|
93-
| Latency | 0 | 1 | 2 | 2 | 0.73 | 0.87 | 104 |
94-
95-
### Throughput results:
96-
97-
| Metric | 1% | 2.5% | 50% | 97.5% | Avg | Stdev | Min |
98-
|------------|--------|--------|---------|---------|----------|-----------|---------|
99-
| Req/Sec | 70,143 | 70,143 | 84,479 | 93,887 | 84,128 | 7,547.18 | 70,095 |
100-
| Bytes/Sec | 13.6 MB| 13.6 MB| 16.4 MB | 18.2 MB | 16.3 MB | 1.47 MB | 13.6 MB|
101-
10285
## Review Node.js benchmark results on Arm64
10386

10487
Here are the results from the earlier run on the `c4a-standard-4` (4 vCPU, 16 GB memory) Arm64 VM in GCP (SUSE):

0 commit comments

Comments
 (0)