|
1 | 1 | --- |
2 | 2 | title: Couchbase Baseline Testing on Google Axion C4A Arm Virtual Machine |
3 | | -weight: 5 |
| 3 | +weight: 6 |
4 | 4 |
|
5 | 5 | ### FIXED, DO NOT MODIFY |
6 | 6 | layout: learningpathall |
7 | 7 | --- |
8 | 8 |
|
9 | 9 | ## Couchbase Baseline Testing on GCP SUSE VMs |
10 | | -This section confirms that Couchbase is correctly installed and running on the GCP SUSE Arm64 VM. It includes checking required ports, initializing the cluster, verifying node status, and accessing the Web UI — ensuring the setup is ready for benchmarking. |
| 10 | +This section confirms that Couchbase is correctly installed and running on the GCP SUSE Arm64 VM. It includes initializing the cluster, verifying node status, and accessing the Web UI to create a bucket — this ensures the setup is ready for benchmarking. |
11 | 11 |
|
12 | | -### Check Required Ports |
13 | | -This command checks if those ports are open and active. If you see “LISTEN” next to these ports, it means Couchbase is ready to accept connections. |
| 12 | +### Setup the default cluster |
| 13 | +Once the service is running, we need to setup the default cluster for the first time. |
14 | 14 |
|
15 | | -Couchbase uses the following ports for basic operation: |
16 | | - |
17 | | -- Web Console: `8091` |
18 | | -- Query Service: `8093` (optional for N1QL queries) |
19 | | -- Data Service: `11210` |
20 | | - |
21 | | -Check if the ports are listening: |
| 15 | +- Open Web Console using your VM public IP address that you saved off in the last step: |
22 | 16 |
|
23 | 17 | ```console |
24 | | -sudo ss -tuln | grep -E '8091|11210' |
| 18 | +http://<VM-Public-IP>:8091 |
25 | 19 | ``` |
| 20 | +- Press "Setup New Cluster" |
26 | 21 |
|
27 | | -```output |
28 | | -tcp LISTEN 0 128 0.0.0.0:8091 0.0.0.0:* |
29 | | -tcp LISTEN 0 1024 0.0.0.0:11210 0.0.0.0:* |
30 | | -tcp LISTEN 0 1024 [::]:11210 [::]:* |
31 | | -``` |
| 22 | + |
32 | 23 |
|
33 | | -### Initialize Couchbase Cluster |
34 | | -This step sets up Couchbase for the first time, essentially turning it on and configuring its basic settings. |
35 | | -- You’re giving it an admin username and password for login. |
36 | | -- The cluster name helps identify your setup. |
37 | | -- You’re enabling key services (data, index, query). |
38 | | -- You’re assigning memory so Couchbase knows how much RAM it can use. |
39 | | -If it says **“SUCCESS: Cluster initialized”**, Couchbase is ready to store and manage data. |
| 24 | +- Provide a name for your cluster (example: "my_cluster") and create a password for your administrator account (leave the username as the default "Administrator") |
40 | 25 |
|
41 | | -```console |
42 | | -/opt/couchbase/bin/couchbase-cli cluster-init \ |
43 | | - -c localhost:8091 \ |
44 | | - --cluster-username Administrator \ |
45 | | - --cluster-password password \ |
46 | | - --cluster-name MyCluster \ |
47 | | - --services data,index,query \ |
48 | | - --cluster-ramsize 1024 \ |
49 | | - --cluster-index-ramsize 512 |
50 | | -``` |
| 26 | + |
51 | 27 |
|
52 | | -You should see an output similar to: |
53 | | -```output |
54 | | -SUCCESS: Cluster initialized |
55 | | -``` |
| 28 | +- Check the "Accept terms" checkbox and press "Configure Disk, Memory, Services" button |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +- Accept the defaults of your cluster configuration and press "Save & Finish" |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +Our default cluster is now created! Please retain the passord you created for your "Administrator" account... you'll need that in the next steps. |
56 | 37 |
|
57 | 38 | ### Verify Cluster Nodes |
58 | | -This command checks if your Couchbase server (called a “node”) is running properly. |
| 39 | +This command checks if your Couchbase server (called a “node”) is running properly. Replace "password" with your specified Couchbase Administrator password. |
59 | 40 | If the output says **“healthy active”**, it means your Couchbase node is working fine and ready for operations. |
60 | 41 |
|
61 | 42 | ```console |
62 | 43 | /opt/couchbase/bin/couchbase-cli server-list \ |
63 | | - -u Administrator -p password \ |
64 | | - --cluster localhost |
| 44 | + -u Administrator -p password --cluster localhost |
65 | 45 | ``` |
66 | 46 |
|
67 | 47 | ```output |
68 | 48 | [email protected] 127.0.0.1:8091 healthy active |
69 | 49 | ``` |
70 | 50 |
|
71 | | -### Web UI Access |
72 | | -Ensure the Couchbase service is running and ports **8091 (Web UI)** and **11210 (Data)** are open. |
| 51 | +### Prepare a Couchbase Bucket for benchmarking |
| 52 | +Once the service is running, you can access the **Couchbase Web Console** to create a bucket for benchmarking. |
| 53 | + |
| 54 | +Open Web Console using the public IP address of your VM that you saved off from the last step: |
73 | 55 |
|
74 | 56 | ```console |
75 | | -sudo systemctl start couchbase-server |
76 | | -sudo systemctl enable couchbase-server |
77 | | -sudo systemctl status couchbase-server |
| 57 | +http://<VM-Public-IP>:8091 |
78 | 58 | ``` |
79 | | -These commands make sure Couchbase is running and will automatically start after system reboots. After starting the service, open your web browser and visit your VM’s IP on port 8091. |
80 | | -Once the service is running, Couchbase is accessible in your browser at: |
| 59 | +Use the admin `username` (default is "Administrator") and `password` you created during Couchbase cluster setup in the previous step. |
81 | 60 |
|
82 | | -```cpp |
83 | | -http://<VM-IP>:8091 |
84 | | -``` |
85 | | -You will see the Couchbase Web Console — a dashboard where you can log in, manage data buckets, and monitor performance visually. |
| 61 | + |
| 62 | + |
| 63 | +- On the left hand side select "Buckets" |
| 64 | +- Press the "Add Bucket" in the upper right hand corner: |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | +- Name the new bucket "benchmark" |
| 69 | +- The bucket type will be "Couchbase" |
| 70 | +- The Memory Quota can be set to "512 MB" |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | +| **Parameter** | **Value** | |
| 75 | +|----------------|-----------| |
| 76 | +| **Bucket Name** | benchmark | |
| 77 | +| **Bucket Type** | Couchbase | |
| 78 | +| **Memory Quota** | 512 MB | |
| 79 | + |
| 80 | +- You should now see that your bucket has been created: |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | +#### Additional notes about buckets in Couchbase |
86 | 85 |
|
87 | | - |
| 86 | +- A **bucket** in Couchbase is like a **database** — it stores and manages your data. |
| 87 | +- The **benchmark** bucket will be used for **load testing** and **performance benchmarking**. |
| 88 | +- Setting the **RAM Quota** ensures Couchbase allocates sufficient memory for **in-memory data operations**, improving overall speed. |
88 | 89 |
|
89 | 90 | You can now proceed to the next section for benchmarking to measure Couchbase’s performance. |
0 commit comments