ClickHouse
5 minutes

ClickHouse Cluster

Sharded, replicated analytics clusters

Deploy a production-ready ClickHouse cluster on your own servers with configurable shards and replicas. Includes ClickHouse Keeper for distributed coordination, CHProxy for load balancing and connection pooling, automated S3 backups, and hot/cold tiered storage. Self-host ClickHouse with the reliability of a managed service.

Sharding & Replication

Configure your cluster topology with flexible sharding and replication. Each shard can have multiple replicas for high availability and data redundancy.

  • Dynamic shard configuration: Set the number of shards based on your data distribution needs
  • Multi-replica support: Each shard can have multiple replicas for fault tolerance
  • Automatic data distribution: ClickHouse handles data distribution across shards automatically

ClickHouse Keeper Coordination

ClickHouse Keeper provides distributed coordination for your cluster without external dependencies like ZooKeeper.

  • Built-in coordination: No need for external ZooKeeper clusters
  • Odd-numbered quorum: Deploy 3, 5, or 7 keeper nodes for optimal performance
  • Automatic leader election: Handles failover automatically

CHProxy Load Balancing

CHProxy provides intelligent load balancing and query routing for your ClickHouse cluster.

  • Smart query routing: Routes queries to the optimal node based on load
  • Connection pooling: Efficient connection management for high-throughput workloads
  • Health monitoring: Automatic detection and routing around unhealthy nodes

S3 Backups

Integrated backup and restore with S3-compatible storage for reliable disaster recovery.

  • Automated backups: Schedule regular backups to S3-compatible storage
  • Point-in-time recovery: Restore to any point in time from backup history
  • Cross-region replication: Store backups in different regions for disaster recovery

Hot & Cold Storage

Optimize costs with automatic data tiering between hot and cold storage. Simply define your cold storage location and ClickHouse handles the rest.

  • Automatic tiering: Data moves to cold storage based on age or access patterns
  • S3-compatible cold storage: Use any S3-compatible storage for cold data
  • Transparent access: Query hot and cold data seamlessly—no application changes needed
  • Cost optimization: Keep frequently accessed data on fast storage, archive the rest

Helper script to restore broken replicas

Each ClickHouse node includes a restore_replica.sh script that can recover a failed replica by streaming metadata and access control data from a healthy peer in the same shard. The script automatically stops the local container, transfers the necessary files via SSH, sets proper ownership, creates a force_restore_data flag, and restarts ClickHouse. This allows you to quickly restore a replica without manual intervention or complex recovery procedures.

Visual Config Editor

Customize your ClickHouse configuration without editing raw XML files. Our visual config editor layers your customizations on top of battle-tested defaults.

  • Pre-configured defaults: Start with production-ready settings tuned for performance
  • Override anything: Add custom settings that merge with our defaults
  • No config conflicts: Your changes apply cleanly without breaking core functionality
  • Version controlled: Track configuration changes across deployments

Why Self-Host

Why Self-Host ClickHouse Cluster?

Skip the markup. Deploy on your own servers and save 60-90% compared to ClickHouse Cloud.

Self-hosting gives you

  • Save 80-90% on monthly costs compared to ClickHouse Cloud production tiers
  • Full control over server configuration, merge tree settings, and disk layouts
  • Keep sensitive analytics data on your own infrastructure for compliance
  • No per-query or per-GB pricing surprises — flat monthly server costs
  • Run any ClickHouse version and upgrade on your own schedule

Cost comparison vs ClickHouse Cloud

SetupClickHouse CloudSelf-Hosted
Small (3 nodes, 16GB RAM)$100-400/mo$45/mo
Medium (3 nodes, 64GB RAM)$2,000-4,000/mo$135/mo
Large (6 nodes, 64GB RAM)$4,000-8,000/mo$270/mo

Self-hosted prices based on Hetzner dedicated servers. Managed prices based on ClickHouse Cloud production tier.

FAQ

Frequently Asked Questions

Common questions about this deployment recipe.

Simple, one-time pricing

Pay once, get free updates for a year. After that, pay again to continue receiving updates.

50 spots remaining

$199$299

One-time payment • Free updates for 1 year

  • All database recipes (and upcoming recipes)
  • Unlimited servers
  • All cloud providers
  • Server hardening
  • Monitoring stack
  • AI-powered diagnostics
  • Cross-region replicas
  • Free updates for 1 year
Get sshploy now

After 1 year, pay again to continue receiving updates