Introduction
Get started with ClickHouse on Google Cloud C4A Arm virtual machines
Create a Firewall Rule on GCP
Create a Google Axion C4A Arm virtual machine on GCP
Set up GCP Pub/Sub and IAM for ClickHouse real-time analytics on Axion
Install ClickHouse
Establish a ClickHouse baseline on Arm
Build a Dataflow streaming ETL pipeline to ClickHouse
Benchmark ClickHouse on Google Axion processors
Next Steps
This section prepares the Google Cloud messaging and access foundation required for the real-time analytics pipeline.
It focuses on Pub/Sub resource creation and IAM roles, ensuring Dataflow and the Axion VM can securely communicate.
The Pub/Sub topic acts as the ingestion entry point for streaming log events.
logs-topicThis topic will receive streaming log messages from producers.
Pub/Sub Topic
The subscription allows Dataflow to pull messages from the topic.
logs-topiclogs-sub
Pub/Sub Subscription
This subscription will later be referenced by the Dataflow pipeline.
Navigate to Pub/Sub → Topics and confirm:
logs-topiclogs-subThis confirms the messaging layer is ready.
Pub/Sub Resources
Dataflow and the Axion VM both rely on the Compute Engine default service account.
Navigate to:
IAM & Admin → IAM
Locate the service account in the format:
<PROJECT_NUMBER>-compute@developer.gserviceaccount.com
This account will be granted the required permissions.
Grant the following roles to the Compute Engine default service account:
| Role | Purpose |
|---|---|
| Dataflow Admin | Create and manage Dataflow jobs |
| Dataflow Worker | Execute Dataflow workers |
| Pub/Sub Subscriber | Read messages from Pub/Sub |
| Pub/Sub Publisher | Publish test messages |
| Storage Object Admin | Read/write Dataflow temp files |
| Service Account User | Allow service account usage |
Steps (UI):
Required IAM Roles
VM OAuth scopes are limited by default. IAM roles are authoritative.
Dataflow requires a Cloud Storage bucket for staging and temp files.
imperial-time-463411-q5-dataflow-tempus-central1
GCS Bucket
Ensure the Compute Engine service account has access to the bucket:
This allows Dataflow workers to upload and read job artifacts.
Before proceeding, confirm:
logs-topic)logs-sub)With Pub/Sub and IAM configured, the environment is now ready for Axion VM setup and ClickHouse installation in the next phase.