Title: ClickHouse as a Service kind: two equal replicas with Keeper · Issue #429 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: ClickHouse as a Service kind: two equal replicas with Keeper · Issue #429 · cloudfall-dev/cloudfall
X Title: ClickHouse as a Service kind: two equal replicas with Keeper · Issue #429 · cloudfall-dev/cloudfall
Description: Requested by: @romamo (filed by an agent on his instruction, 2026-11-16) Spec: docs/specs/022-clickhouse-service.md, approved and merged in #428. Problem A fleet that keeps its events and analytics in ClickHouse operates it by hand: the ...
Open Graph Description: Requested by: @romamo (filed by an agent on his instruction, 2026-11-16) Spec: docs/specs/022-clickhouse-service.md, approved and merged in #428. Problem A fleet that keeps its events and analytics...
X Description: Requested by: @romamo (filed by an agent on his instruction, 2026-11-16) Spec: docs/specs/022-clickhouse-service.md, approved and merged in #428. Problem A fleet that keeps its events and analytics...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/429
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ClickHouse as a Service kind: two equal replicas with Keeper","articleBody":"Requested by: @romamo (filed by an agent on his instruction, 2026-11-16)\n\nSpec: `docs/specs/022-clickhouse-service.md`, approved and merged in cloudfall-dev/cloudfall#428.\n\n## Problem\n\nA fleet that keeps its events and analytics in ClickHouse operates it by hand: the packages and their pin, the data volume, the memory limit, ClickHouse Keeper and its quorum, TLS between the servers, one user per database, the second copy of the data, backups, and the check that a backup restores.\n\nCloudfall cannot describe any of it today:\n\n- `Service` kinds are `postgresql`, `redis`, `elasticsearch` and `mariadb` only\n- `config validate`, `audit`, `backup run` and `backup verify` know nothing about a ClickHouse server, so an agent has no operation to propose for it\n- Nothing declares a Keeper quorum or a third server that only votes\n\n## Proposal\n\n1. **`serviceKind: clickhouse`** with an exact pinned and held version of an LTS series, a declared memory limit and a data volume\n2. **One or two replicas in one `Service`.** The two are equals: both take writes, so there is no primary, no promotion and no failover\n3. **Keeper as part of the service:** inside the server on a replica, alone on a third server that holds no data; three voters for two replicas\n4. **One replica configured as a pair that waits for its second,** so growing is adding servers and converging\n5. **Databases with an `owner`** whose password reaches the servers only as a hash (D-9)\n6. **Rolling version changes,** inside a series and to the next LTS series\n7. **Replacing a lost replica** by naming the new server; a replica that holds a table is never emptied\n8. **`BACKUP` behind `backup run` and a restore drill behind `backup verify`**\n9. **Audit and metrics** as for the other kinds, plus the state of the copy and of Keeper\n\n## Out of scope\n\nShards and `Distributed` tables, more than two replicas, Keeper on hosts of its own, backups to S3-compatible storage, moving in from a server Cloudfall does not manage. Connections with a generated user per connection stay with #216.\n\nDepends on cloudfall-dev/cloudfall#566\n\nDepends on cloudfall-dev/cloudfall#568\n\nDepends on cloudfall-dev/cloudfall#570\n\nDepends on cloudfall-dev/cloudfall#571\n\nDepends on cloudfall-dev/cloudfall#575\n\nDepends on cloudfall-dev/cloudfall#576\n\nDepends on cloudfall-dev/cloudfall#577\n\nDepends on cloudfall-dev/cloudfall#578\n\nDepends on cloudfall-dev/cloudfall#581\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-16T10:05:48Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/429"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0adad077-b99a-f401-1199-a448f47ba6f7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E910:6FB4F:CCCD45:117914E:6B054ED2 |
| html-safe-nonce | f30b4402b903ef99f52f1b6f9e32fceffde03a86cfd9ef05a2fe4074d2fa4553 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTEwOjZGQjRGOkNDQ0Q0NToxMTc5MTRFOjZCMDU0RUQyIiwidmlzaXRvcl9pZCI6IjIzMzA0MzAzMjQzODkyNjkyMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ac98efb7de950a29b9d9e17a4d9d04a057f330208cc14e0d4cbb358c26e9d2fa |
| hovercard-subject-tag | issue:6418850280 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/429/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1afde40697f45eadda5e742c83cf7f8943f437c9b69b04fa74a25e47ed425c50/cloudfall-dev/cloudfall/issues/429 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1afde40697f45eadda5e742c83cf7f8943f437c9b69b04fa74a25e47ed425c50/cloudfall-dev/cloudfall/issues/429 |
| og:image:alt | Requested by: @romamo (filed by an agent on his instruction, 2026-11-16) Spec: docs/specs/022-clickhouse-service.md, approved and merged in #428. Problem A fleet that keeps its events and analytics... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shipmill-romamo[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git |
| octolytics-dimension-user_id | 339512759 |
| octolytics-dimension-user_login | cloudfall-dev |
| octolytics-dimension-repository_id | 1360999777 |
| octolytics-dimension-repository_nwo | cloudfall-dev/cloudfall |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1360999777 |
| octolytics-dimension-repository_network_root_nwo | cloudfall-dev/cloudfall |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width