Title: Moving into a ClickHouse service: a guide an agent builds the migration from, and a check that proves it · Issue #536 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Moving into a ClickHouse service: a guide an agent builds the migration from, and a check that proves it · Issue #536 · cloudfall-dev/cloudfall
X Title: Moving into a ClickHouse service: a guide an agent builds the migration from, and a check that proves it · Issue #536 · cloudfall-dev/cloudfall
Description: Requested by: @romamo (filed by an agent on his instruction, 2026-11-18) Problem Spec 022 (#428, build issue #429) declares a new ClickHouse service: one or two replicas, an exact version of a maintained LTS series (26.3 or 26.8 today), ...
Open Graph Description: Requested by: @romamo (filed by an agent on his instruction, 2026-11-18) Problem Spec 022 (#428, build issue #429) declares a new ClickHouse service: one or two replicas, an exact version of a main...
X Description: Requested by: @romamo (filed by an agent on his instruction, 2026-11-18) Problem Spec 022 (#428, build issue #429) declares a new ClickHouse service: one or two replicas, an exact version of a main...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/536
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Moving into a ClickHouse service: a guide an agent builds the migration from, and a check that proves it","articleBody":"Requested by: @romamo (filed by an agent on his instruction, 2026-11-18)\n\n## Problem\n\nSpec 022 (#428, build issue #429) declares a new ClickHouse service: one or two replicas, an exact version of a maintained LTS series (26.3 or 26.8 today), databases on the `Replicated` engine, Keeper inside the service. It has no path for a team that already runs ClickHouse outside Cloudfall, the way #232 and `existingCluster` (S-012, S-013) give one for Elasticsearch.\n\nA typical cluster run by hand differs on every point the spec fixes:\n\n- More than two replicas, with replica sets that differ per table (one fleet has tables on 2, 3 and 4 of its servers, under one shard name set by macros)\n- Versions out of support and mixed across servers (23.10 and 24.9 side by side)\n- `Atomic` databases with `ReplicatedMergeTree` tables and their own Keeper paths, not `Replicated` databases\n- Keeper built into the servers with an even number of voters, plain ports (9181), and the `default` user in use by applications\n\nToday such a team can only build a new service beside the old cluster and copy the data by hand, with nothing in Cloudfall that proves the copy is complete.\n\n## Proposal\n\nA move-in spec for `serviceKind: clickhouse`, in the shape of #232:\n\n1. **A migration guide written for an agent**: inspect the source (versions, replica sets per table, engines, Keeper paths, users and grants, sizes), choose the path, generate a project playbook that runs only through `cloudfall-engine playbook run` behind the usual approval. Paths to weigh: copy into a new service (`INSERT ... SELECT FROM remote()`, or `BACKUP` and `RESTORE` across versions), or bring the source to a supported LTS series by its own rolling upgrade and join it, the way `existingCluster` works for Elasticsearch\n2. **A check that proves the move:** read both sides, change neither, compare per table presence, row count and schema, and write a receipt; a move is done when this check says so\n3. **How applications switch:** both servers in the client list, users and grants recreated from the declaration, the old cluster's `default` user not carried over\n\nQuestions for the spec: whether joining an existing cluster is in scope at all, given the `Replicated` database engine and the one-shard naming of S-022; how `Atomic` databases become `Replicated`; how writes are caught up while the copy runs.\n\n## Out of scope\n\n- More than two replicas or more than one shard in a declared service (S-022 sets those)\n- Sources other than ClickHouse\n\n## Notes\n\n- Serves G-3 and G-2\n- Depends on #429\n- Prior art: S-013 (#232) for Elasticsearch, and section 8 of `docs/mariadb-service-guide.md`, which moves MariaDB in by declaring a replica of the source and promoting it\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-18T05:30:25Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/536"}
| 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:4042a2c5-08d6-3ce6-88b1-d1d8594c4230 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D53E:2CF9FD:26785A5:322E1A8:6B054ED5 |
| html-safe-nonce | 9f880f46068d5e90868f0f44a9fda7baa84de60489bf7c9d277de0a6eee1f1da |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTNFOjJDRjlGRDoyNjc4NUE1OjMyMkUxQTg6NkIwNTRFRDUiLCJ2aXNpdG9yX2lkIjoiMjIxNjA0MDc0OTk3NzYzNzk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f43614a14621177c482661e65c59c955893828bbfa0c332bd1a97350874d5d5f |
| hovercard-subject-tag | issue:6460697923 |
| 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/536/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0044c1f3f18105bba8d65481dc2b4242003b08c789967869790afff9d15be96d/cloudfall-dev/cloudfall/issues/536 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0044c1f3f18105bba8d65481dc2b4242003b08c789967869790afff9d15be96d/cloudfall-dev/cloudfall/issues/536 |
| og:image:alt | Requested by: @romamo (filed by an agent on his instruction, 2026-11-18) Problem Spec 022 (#428, build issue #429) declares a new ClickHouse service: one or two replicas, an exact version of a main... |
| 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