Title: Spec 025: Moving into a ClickHouse service by shipmill-romamo[bot] · Pull Request #537 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Spec 025: Moving into a ClickHouse service by shipmill-romamo[bot] · Pull Request #537 · cloudfall-dev/cloudfall
X Title: Spec 025: Moving into a ClickHouse service by shipmill-romamo[bot] · Pull Request #537 · cloudfall-dev/cloudfall
Description: Spec for #536 Plan Serves: G-2, G-3 Files: docs/specs/025-clickhouse-move-in.md (new); no product code Order: after spec 022 (#428) and before any build issue for the move-in, each of which waits for this spec's approval and for #429 Proof: shipmill specs.py check clean; the spec's 14 criteria (S-025-1 to S-025-14) are what the build must show Summary A move-in spec for serviceKind: clickhouse, in the shape of S-013 for Elasticsearch, as the maintainer asked on #536: docs/clickhouse-migration-guide.md, written for an agent: read the source read-only, map it onto the declaration, choose a path (copy with INSERT ... SELECT FROM remoteSecure(), or a BACKUP restored on a temporary server and copied from there), recreate the schema in the declared Replicated databases, generate the move as a declared destructive operation run through cloudfall-engine playbook run cloudfall data check (S-013's command) extended to ClickHouse: read-only on both sides, compares per table presence, the row count on every replica and the schema, writes a DataCheckReceipt; a move is done when the check says so Applications switch to both replicas as the declared owner; the source's users and its default user are not carried over examples/clickhouse-move-in/ as a working project of the copy path, and a proving run of both paths Decisions for you Joining the source's cluster is out of scope; the move is copy-only (recommended). The spec offers INSERT ... SELECT FROM remoteSecure() into the declared service, or a BACKUP restored on a temporary server of the source's version and copied from there, because S-022's Keeper serves its own service only, its databases are Replicated with the shard named after the service, and a joined replica would end the move holding Atomic tables on the source's Keeper paths (and out-of-support sources are too many versions away to replicate with). The alternative is the analogue of section 8 of docs/mariadb-service-guide.md: declare the target's servers as replicas of the source's tables in its Keeper, which needs a source on a supported series, a new declaration field pointing at a foreign Keeper, and a conversion step afterwards anyway Atomic databases become Replicated by recreating the tables, not converting the database (recommended). The target's declared database is already Replicated (S-022); each table is created there from the source's SHOW CREATE TABLE with the Keeper path and replica arguments removed, materialized views and dictionaries after the load without POPULATE. The alternative is an in-place conversion on the source or the target, which would change the source (against the read-only rule) or leave tables with literal Keeper paths that S-022's drill refuses Catching up writes is left to the application and the guide, as S-013 did (recommended). The guide gives a final pass on the open partitions under a short write stop (the default) and double writes with a time cutoff, with what each misses, and the check reports a table still taking writes as unsettled. The alternative is Cloudfall-built catch-up (change capture or a double-write proxy); ClickHouse has no change stream to follow, so that would be a new component The generated playbook is approved as a declared operation, not by playbook run alone (recommended). #536 says the playbook runs "behind the usual approval", but cloudfall-engine playbook run has no gate of its own (S-018 Out of scope, #391). The spec declares the move in the project's operations/ catalog with risk destructive and approves it under D-20; a person running it by hand uses playbook run. The alternative is to wait for #391 and gate playbook run itself The receipt lives under record/, beside data copy's receipts (D-16) (recommended), not under tmp/ as S-013 wrote before D-16. S-013 may need the same correction in its own PR Not verified here: nothing has run against a host. Whether remoteSecure() from 26.x reads a 23.10 or 24.9 source is left to S-025-14's proving run; that a named collection in a config.d file keeps the source's credentials out of query text, and that a declared operation is approved in project mode as well as fleet mode (#391), were not checked against the code. cloudfall data check itself is not built yet: S-013 is still draft. 🤖 Generated with Claude Code
Open Graph Description: Spec for #536 Plan Serves: G-2, G-3 Files: docs/specs/025-clickhouse-move-in.md (new); no product code Order: after spec 022 (#428) and before any build issue for the move-in, each of which waits ...
X Description: Spec for #536 Plan Serves: G-2, G-3 Files: docs/specs/025-clickhouse-move-in.md (new); no product code Order: after spec 022 (#428) and before any build issue for the move-in, each of which waits ...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/537
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
| 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:23f137db-aeff-69db-1507-257fdfd2472c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D782:3A6E49:19C6EDE:21E8C45:6B055917 |
| html-safe-nonce | 752fcad8cb905497e2723ebb470eb53650d67de3edaa7de8d9aac6908747bc0a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzgyOjNBNkU0OToxOUM2RURFOjIxRThDNDU6NkIwNTU5MTciLCJ2aXNpdG9yX2lkIjoiNDQ5OTIyMTI0NTAxNTE4NTY4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bb4a5e870b15304eb3455cd81e036c12f4d6ab330d099eef6e16e8c0e902b63c |
| hovercard-subject-tag | pull_request:5371044700 |
| 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/537/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 #536 Plan Serves: G-2, G-3 Files: docs/specs/025-clickhouse-move-in.md (new); no product code Order: after spec 022 (#428) and before any build issue for the move-in, each of which waits ... |
| 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