Title: Spec 022: ClickHouse service, two equal replicas with Keeper by shipmill-romamo[bot] · Pull Request #428 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Spec 022: ClickHouse service, two equal replicas with Keeper by shipmill-romamo[bot] · Pull Request #428 · cloudfall-dev/cloudfall
X Title: Spec 022: ClickHouse service, two equal replicas with Keeper by shipmill-romamo[bot] · Pull Request #428 · cloudfall-dev/cloudfall
Description: Spec for #429 Written in an interactive session on the maintainer's instruction. Plan Serves: G-1, G-3 Files: docs/specs/022-clickhouse-service.md (new); no product code Order: before any build issue for the kind, each of which waits for the spec's approval Proof: shipmill specs.py check clean; the spec's 22 criteria (S-022-1 to S-022-22) are what the build must show Summary Draft spec: serviceKind: clickhouse, so ClickHouse is declared, validated, converged, backed up and audited like the other kinds. One Service with replicas (one or two servers) and keeper.servers (one or three). The two replicas are equals: both take writes, so there is no primary, no promotion and no failover Keeper is part of the service: inside the server process on a replica (the clickhouse-keeper package conflicts with clickhouse-server), and as clickhouse-keeper alone on the third voter, which holds no data One replica is configured as a pair that waits for its second: Keeper runs and every declared database is Replicated, so growing is adding servers and converging LTS series only (26.3 and 26.8 today), an exact four-part version from the lts APT suite, held. Moving to the next series is a rolling change, because a series lasts one year A database has an owner whose password reaches the servers only as a hash (D-9); there is no application form, since ClickHouse has no login by unix socket. default is removed A lost replica is replaced by naming the new server; a declared replica that comes back empty joins again; a replica that holds a table is never emptied BACKUP behind backup run and a restore drill behind backup verify that restores under a scratch name and compares row counts taken from the backup's own parts Host needs (volumes, ports, certificates, generated secrets, package pins) come from S-011 requirements; every connection that leaves a server is TLS verified against the project CA Decisions for you Each is taken as recommended unless you say otherwise: Two replicas need a third server for Keeper (recommended). With two voters, losing either server stops every write. Alternative: accept one voter beside two replicas with a warning, for a team that has only two servers Keeper runs beside the replicas, not on three hosts of its own (recommended). ClickHouse recommends dedicated Keeper hosts for production and accepts shared ones where ingestion is low; dedicated hosts would make the smallest pair five servers Declared databases use the Replicated engine (recommended), so DDL needs no ON CLUSTER and a second replica creates its tables by itself. ClickHouse's source has called the engine beta since 24.4, and the documentation gives it no status. Alternative: Atomic databases with a declared cluster and ON CLUSTER, which puts the burden on every statement the application runs Moving to the next LTS series is in scope (recommended), unlike S-012 and S-019, because a series is maintained for one year only clientAccess instead of remoteAccess (recommended): S-006's shape names one listen address, and here every replica listens on its own Backups are full and local in this spec (recommended for a first version); S3-compatible storage and incremental backups are out of scope. For large tables this is the first thing a team will miss No read-only users in the declaration: one owner per database, as for the other kinds. A dashboard account is the common ClickHouse case and waits for #216 Not verified here: nothing has run against a host. Two behaviours rest on ClickHouse's source and tests, not on its documentation: restoring a Replicated database under another name, and the beta status of that engine. The supported series, package names and the Keeper package conflict were read from ClickHouse's SECURITY.md, documentation and APT index on 2026-11-16. 🤖 Generated with Claude Code
Open Graph Description: Spec for #429 Written in an interactive session on the maintainer's instruction. Plan Serves: G-1, G-3 Files: docs/specs/022-clickhouse-service.md (new); no product code Order: before any buil...
X Description: Spec for #429 Written in an interactive session on the maintainer's instruction. Plan Serves: G-1, G-3 Files: docs/specs/022-clickhouse-service.md (new); no product code Order: before any ...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/428
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6bd8777a-5cd3-dacf-24ef-eb92af9321d4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AA18:5662:218D738:2C14FA2:6B0557EB |
| html-safe-nonce | a11034743df58dc7583e5eb72d3bb6fb79354da2fd38b4357c3a4ebb7ba71e05 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTE4OjU2NjI6MjE4RDczODoyQzE0RkEyOjZCMDU1N0VCIiwidmlzaXRvcl9pZCI6IjIzNjUzNjg1NTE5MDIzNjk3NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4aff7212769df1e47fda65aa40b6cbad254a868e925c1c9cdce26dd1f8c35fab |
| hovercard-subject-tag | pull_request:5334826785 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/cloudfall-dev/cloudfall/pull/428/files |
| twitter:image | https://avatars.githubusercontent.com/u/5600783?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5600783?s=400&v=4 |
| og:image:alt | Spec for #429 Written in an interactive session on the maintainer's instruction. Plan Serves: G-1, G-3 Files: docs/specs/022-clickhouse-service.md (new); no product code Order: before any buil... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 10dff83edfd4f3617a7792a152d44991587b434c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width