Host ClickHouse on VeloxaHost
ClickHouse is a column-oriented database for analytics: it stores data by column and answers aggregate queries over millions or billions of rows quickly, with SQL. Teams self-host it for product analytics, logs, metrics and event data that would be slow or expensive in a row-based database.
The one-click install follows ClickHouse's own Debian and Ubuntu instructions on Ubuntu 24.04: it adds ClickHouse's APT repository with its signing key in a dedicated keyring, installs the clickhouse-server and clickhouse-client packages from the stable channel, and starts the clickhouse-server service. ClickHouse keeps its shipped network settings, so it listens on the server's loopback address only.
Signing in
Installed without a terminal, ClickHouse's default user would have an empty password, so the install gives it one. VeloxaHost replaces the install script's placeholder password with a random one at deploy time and stores it encrypted; organization owners and admins can reveal it on the server's page, and every reveal is recorded in the audit log. The install stores only its SHA256 hash, in /etc/clickhouse-server/users.d/default-password.xml, as ClickHouse's user settings allow. Sign in as default with the generated password shown on the server's page; in the browser terminal:
clickhouse-client --password
To change the password later, put a new hash in that file (printf '%s' 'new-password' | sha256sum) and restart the service.
What it needs
ClickHouse's usage recommendations say it can run with as little as 2 GB of RAM, but only with extra tuning and a low ingest rate, and that systems with less than 16 GB may see memory exceptions; their recommended amount is 32 GB or more, on SSD storage.
The catalogue's minimum is 2 vCPU and 2 GB, enough to try queries on small data. The recommended 4 vCPU and 8 GB is a middle ground for a small analytics workload: the Veloxa 4 size, with 4 vCPU, 8 GB RAM and 160 GB of disk for $30 a month, billed at $0.05 an hour and capped at the monthly price. For the 16 GB that ClickHouse's docs treat as the lower comfortable bound, the Veloxa 8 has 8 vCPU, 16 GB and 320 GB of disk for $60 a month ($0.09 an hour). You can raise memory from the console as data grows: on a container the change applies without a restart.
Reaching it on VeloxaHost
ClickHouse's default configuration listens on the server's loopback address only, on port 8123 for HTTP and 9000 for the native protocol, so clickhouse-client in the browser terminal works straight away and nothing is exposed.
To query it from elsewhere, make sure every user you add has a password too, then let ClickHouse listen on all addresses with a file in config.d:
cat > /etc/clickhouse-server/config.d/listen.xml <<'EOF'
<clickhouse>
<listen_host>0.0.0.0</listen_host>
</clickhouse>
EOF
systemctl restart clickhouse-server
Every server gets a block of ports (10 by default) on the region's shared IPv4 address. The first forwards to SSH; under How to connect on the server's page, forward another to 8123 and connect over HTTP to <shared address>:<port>. ClickHouse's own configuration file warns that a server listening on all addresses needs at least one protection, such as a firewall or a strong password on every user, so also attach a VeloxaHost firewall that allows only your own addresses. IPv6 is not available in US East yet.
Backups and updates
Data lives in /var/lib/clickhouse and configuration in /etc/clickhouse-server. Turn on automatic snapshots on the server page (hourly up to weekly, kept for 1 to 30 days) or scheduled backups (every 6 hours up to weekly, keeping 1 to 10); both capture these folders with the rest of the disk.
To update, take a snapshot, then apt-get update && apt-get install -y clickhouse-server clickhouse-client and systemctl restart clickhouse-server. ClickHouse's docs note that the server, client and clickhouse-common-static packages must be at the same version when you pin one.
FAQ
How much RAM does ClickHouse need?
ClickHouse's docs say 2 GB works only with tuning and low ingest, below 16 GB you may see memory exceptions, and their recommended amount is 32 GB or more. Start on the recommended Veloxa 4 with 8 GB and raise memory as data and queries grow.
What is the default user's password?
The generated password shown on the server's page. The install sets it for ClickHouse's default user, which would otherwise have an empty password.
Which ClickHouse version does it install?
The current release on ClickHouse's stable channel at deploy time. clickhouse-client --version shows it; replace stable with lts in /etc/apt/sources.list.d/clickhouse.list if you prefer long-term support releases.
Can I use it as the database for Plausible?
The Plausible one-click app runs its own ClickHouse in Docker, so it does not need this server.
What license is ClickHouse under?
ClickHouse is released under the Apache License 2.0.
Which VeloxaHost size fits ClickHouse?
The recommended 4 vCPU and 8 GB of RAM is a Veloxa 4: 4 vCPU, 8 GB RAM and 160 GB of disk for $30 a month, billed at $0.05 an hour and capped at that price.