You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/clickhouse-gcp/benchmarking.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,13 @@
1
1
---
2
-
title: ClickHouse Benchmarking on Google Axion (Arm)
2
+
title: Benchmark ClickHouse on Google Axion processors
3
3
weight: 9
4
4
5
5
### FIXED, DO NOT MODIFY
6
6
layout: learningpathall
7
7
---
8
8
## ClickHouse benchmarking on Axion processors
9
9
10
-
11
-
## ClickHouse Benchmarking on Axion Processors
12
-
This phase benchmarks **query latency on ClickHouse running on Google Axion (Arm64)**.
13
-
The goal is to measure **repeatable query latency** with a focus on **p95 latency**, using data ingested via the real-time Dataflow pipeline.
10
+
In this section you'll benchmark query latency on ClickHouse running on Google Axion (Arm64). The goal is to measure repeatable query latency with a focus on p95 latency, using data ingested with the real-time Dataflow pipeline.
14
11
15
12
## Prepare ClickHouse for Accurate Latency Measurement
16
13
@@ -65,9 +62,9 @@ Peak memory usage: 106.54 MiB.
65
62
66
63
These queries represent common real-time analytics patterns:
67
64
68
-
-**Filtered count**: service-level analytics
69
-
-**Time-windowed count**: recent activity
70
-
-**Aggregation by service**: grouped analytics
65
+
- Filtered count: service-level analytics
66
+
- Time-windowed count: recent activity
67
+
- Aggregation by service: grouped analytics
71
68
72
69
Each query scans and processes millions of rows to stress the execution engine.
73
70
@@ -119,7 +116,8 @@ GROUP BY service
119
116
ORDER BY total DESC;
120
117
```
121
118
122
-
You should see an output similar to:
119
+
The output is similar to:
120
+
123
121
```output
124
122
Query id: c48c0d30-0ef6-4fb9-bbb9-815a509a5f91
125
123
@@ -236,16 +234,18 @@ sort -n latency-results.txt
236
234
```
237
235
238
236
**Calculate p95 latency (manual):**
237
+
239
238
The p95 latency represents the value under which 95% of query executions complete.
240
239
241
240
**Formula:**
242
241
243
-
```pqsql
242
+
```
244
243
p95 index = ceil(0.95 × N)
245
244
```
246
245
247
246
For 10 samples:
248
-
```cpp
247
+
248
+
```
249
249
ceil(0.95 × 10) = ceil(9.5) = 10
250
250
```
251
251
@@ -263,9 +263,9 @@ After executing the ClickHouse query 10 times on the GCP Axion (Arm) VM, the obs
263
263
264
264
You've successfully completed a comprehensive ClickHouse benchmarking exercise on Google Axion (Arm64) processors. Key results from the `c4a-standard-4` (4 vCPU, 16 GB memory) Arm64 VM running SUSE:
265
265
266
-
- ClickHouse on **Google Axion (Arm64)** delivered consistently low query latency, even while scanning ~6 million rows per query.
267
-
- Across **10 repeat executions, the p95 latency was ~11 ms**, indicating stable and predictable performance.
266
+
- ClickHouse on Google Axion (Arm64) delivered consistently low query latency, even while scanning ~6 million rows per query.
267
+
- Across 10 repeat executions, the p95 latency was ~11 ms, indicating stable and predictable performance.
268
268
- Disabling the query cache ensured true execution latency, not cache-assisted results.
Throughout this Learning Path, you provisioned an Arm-based VM on Google Cloud, deployed ClickHouse, configured a real-time streaming pipeline with Pub/Sub and Dataflow, and validated end-to-end analytical performance. You can now deploy, optimize, and benchmark ClickHouse workloads on Google Cloud Arm infrastructure.

54
54
55
55
### Identify Compute Engine Service Account
56
56
@@ -82,30 +82,30 @@ Grant the following roles to the **Compute Engine default service account**:
82
82
| Service Account User | Allow service account usage |
83
83
84
84
**Steps (UI):**
85
-
1. Go to **IAM & Admin → IAM**
86
-
2. Click **Grant Access**
87
-
3. Add the service account
88
-
4. Assign the roles listed above
89
-
5. Save
85
+
- Go to **IAM & Admin → IAM**
86
+
- Click **Grant Access**
87
+
- Add the service account
88
+
- Assign the roles listed above
89
+
- Save
90
90
91
-

91
+

92
92
93
93
VM OAuth scopes are limited by default. IAM roles are authoritative.
94
94
95
95
### Create GCS Bucket for Dataflow (UI)
96
96
97
97
Dataflow requires a Cloud Storage bucket for staging and temp files.
0 commit comments