Miget is now Lyngbak. Same platform, same plans, same API.Why the name →

Startups get $300 or more in Lyngbak credits.Apply →

Moving production infrastructure? We migrate it for you, free.Talk to us →

PricingEnterpriseDashboard
Start for Free
← All templates

ClickHouse Cluster

3-node ClickHouse cluster - one shard, three replicas, embedded Keeper. Real replicated OLAP without ZooKeeper pods.

6 GiB

3 services, 60 GB disk

$39/mo

flat resource

$0.075/h

Usage Billing

What is ClickHouse Cluster?

ClickHouse is the open-source column store that made sub-second analytics over billions of rows ordinary. This template runs a real replicated cluster - one shard, three replicas - with ClickHouse Keeper embedded in the server nodes, so there are no separate ZooKeeper or Keeper pods to deploy and feed.

Tables created ON CLUSTER main with the ReplicatedMergeTree engine replicate across all three nodes; any node can take writes and queries. Each node owns a 20 GB volume, and the whole cluster is internal-only - apps in the project connect to any node over HTTP (:8123) or the native protocol (:9000).

One required variable (CLICKHOUSE_PASSWORD) and you have the analytics backend that ClickHouse Cloud meters by the compute-hour - on a flat resource or by the second on Usage Billing.

What you get

  • One shard × three replicas with ReplicatedMergeTree - survive any single node loss
  • Embedded ClickHouse Keeper: no ZooKeeper, no extra pods
  • Cluster name main preconfigured for ON CLUSTER DDL
  • 20 GB per-node volumes; column compression stretches that a long way
  • HTTP (:8123) and native (:9000) interfaces on every node
  • Single required variable: CLICKHOUSE_PASSWORD

How it runs on Lyngbak

ServiceRolePublic
ch-1..3ClickHouse server + embedded Keeper (HTTP :8123, native :9000)no

Before you deploy

  • CLICKHOUSE_PASSWORD

    password for the app user on all nodes

Sizing and billing

2 GiB per node is a working floor for moderate analytics; ClickHouse respects container memory limits. Columnar compression typically fits hundreds of millions of rows in the 3×20 GB provisioned here.

Hobby resource$39/mo2 vCPU, 4 GiB + 2 GiB RAM add-on, 80 GiB disk, shared CPU
Pro resource$64.25/mo2 vCPU, 4 GiB + 2 GiB RAM add-on, 60 GiB disk incl. add-on, dedicated CPU
Usage Billing, shared CPU$0.075/h3 vCPU, 6 GiB reserved. $54/mo for a full month, billed by the second.
Usage Billing, dedicated CPU$0.14/h3 vCPU, 6 GiB reserved. $102/mo for a full month, billed by the second.

A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 58.59 GiB of volumes cost $0.15 per GiB a month ($8.79/mo) for as long as they exist. One workspace can use both. See pricing

Compared with the managed service

ServicePlanPriceIncludes
ClickHouse CloudBasic$67/modevelopment-shaped: single replica active ~6h/day + 500 GB storage (worked example)
ClickHouse CloudScale$499/moproduction: 2× 8 GiB replicas always-on + 1 TB storage (worked example)

Prices from each vendor's pricing page, June 2026.

Run it locally first

The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.

Questions

How does this compare to ClickHouse Cloud pricing?

ClickHouse Cloud bills compute per hour plus storage, which is excellent for spiky workloads but adds up for always-on ones. This cluster fits in 8 GiB, on a flat resource or by the second on Usage Billing - predictable, with your data on your volumes.

Do I need ZooKeeper for ClickHouse replication?

No - coordination runs on ClickHouse Keeper, embedded inside the same three server nodes. You get replicated tables with zero extra processes to operate.

How do I create replicated tables?

Use CREATE TABLE ... ON CLUSTER main with ENGINE = ReplicatedMergeTree. The cluster macro config is baked in, so the standard '/clickhouse/tables/{shard}/{table}' path templates just work.

Can ClickHouse replace my Postgres for analytics?

For append-heavy, aggregate-style workloads (events, logs, metrics, funnels) - emphatically yes, often 100× faster. Keep transactional row-level workloads in Postgres; ClickHouse is an OLAP engine, not an OLTP database.

More in Databases

MariaDB

The community MySQL fork, as a single self-hosted node - drop-in compatible.

Open the template →

MariaDB Galera

3-node synchronous multi-primary MySQL-family HA on the official image - every node writes, any node can die.

Open the template →

MariaDB Replication

Asynchronous primary/replica MariaDB - a writable primary streaming to a read-only replica.

Open the template →
ClickHouse: 3-node replicated cluster with Docker Compose | Lyngbak (formerly Miget)