Title: Spec 023: RabbitMQ profiles, simple by default and cluster as an option by shipmill-romamo[bot] · Pull Request #546 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Spec 023: RabbitMQ profiles, simple by default and cluster as an option by shipmill-romamo[bot] · Pull Request #546 · cloudfall-dev/cloudfall
X Title: Spec 023: RabbitMQ profiles, simple by default and cluster as an option by shipmill-romamo[bot] · Pull Request #546 · cloudfall-dev/cloudfall
Description: Spec for #539 Plan Serves: G-1, G-3 Files: docs/specs/023-rabbitmq-service.md only Order: the spec amendment in one commit; once it merges, a new build issue for S-023-22 to S-023-24 under #539, and the split's docs PR moving those three criteria to it Proof: specs.py check passes on the amended spec, and CI (checks, converge) is green on the head Summary Amends the approved spec docs/specs/023-rabbitmq-service.md with the maintainer's decision on #539: one kind, serviceKind: rabbitmq, presented as two profiles chosen by the owner of the Service declaration. spec.rabbitmq.profile: simple | cluster, absent means simple simple (the default): one node; every declared virtual host defaults to classic, so a durable queue declared with no type is a classic queue; audit does not list durable classic queues; no RABBITMQ_SINGLE_NODE warning cluster: three nodes, or one as the first step toward three; virtual hosts default to quorum (the behaviour S-023 had for every service); audit lists each durable classic queue as not copied; one node in production warns RABBITMQ_SINGLE_NODE Three nodes without profile: cluster are refused with CONFIG_INVALID and service_rabbitmq_profile Growing from simple to cluster: the converge sets quorum as each virtual host's default and joins the nodes; existing classic queues stay classic on their node with their messages and are not copied, and audit lists them. The guide gives the move of one queue. S-023-10's "no queue redeclared" applies to a service already on cluster Guide: a "choosing a profile" part with the four questions from #539, and the growing steps New "Profiles" and "Growing from the simple profile to the cluster profile" sections; the declaration example now carries profile: cluster (it has three nodes); two Out of scope lines; D-14 added under Decisions relied on status: approved and serves: are unchanged: the merge of this PR is the approval. Criteria Dropped: S-023-5: dropped (a durable queue with no type was quorum on every service), see S-023-22 and S-023-23 Reworded: S-023-10: starts from a one-node service already on profile: cluster (S-023-23) instead of S-023-3 S-023-18: its last clause (one node in production warns RABBITMQ_SINGLE_NODE) moved to S-023-24, where it depends on the profile S-023-20: the durable classic queue finding moved to S-023-25, where it depends on the profile Added: S-023-22: simple profile by default: the virtual host defaults to classic, a durable queue with no type is classic, a quorum queue by type is allowed, plus the access checks S-023-5 held S-023-23: cluster profile on one node: default quorum, a durable queue with no type is a quorum queue of one member S-023-24: the field and its default in the rendered inventory, an unknown value refused, three nodes without cluster refused with service_rabbitmq_profile, one node on cluster allowed with the production warning, one node on simple with no warning S-023-25: audit follows the profile: durable classic queues listed only under cluster, and a virtual host's default queue type changed by hand is drift S-023-26: growing a simple service to the cluster profile: existing classic queue untouched and not copied, redeclared with no type without an error, new queues quorum with three members, audit lists the old one Impact on built and open work #538 (merged, S-023-3 to S-023-7): needs a change. The role sets quorum as the default of every virtual host (rabbitmq_accounts.py, QUORUM); it must set the profile's default, classic under simple. Its S-023-5 test becomes the S-023-22 test (and an S-023-23 one); a node already converged with quorum gets classic on the next converge, and the quorum queues it holds stay quorum #541 (open, held, S-023-8 to S-023-11): its three-node declarations need profile: cluster, validation must refuse three nodes without it, and S-023-10's test starts from a one-node cluster service. It is the natural place for S-023-24 and S-023-26 (assigned to #508 below) #512 (open, audit and metrics): the durable classic queue finding follows the profile (S-023-25), plus the virtual host default queue type drift #543 (open, the guide): gains the "choosing a profile" part with the four questions and the growing steps #540 (S-023-16, S-023-17) and #542 (S-023-19) are unaffected Decisions for you Field name: spec.rabbitmq.profile with values simple and cluster, absent meaning simple. Recommended: as written, since "profile" is the word you approved and the two values name what each gives. The alternative topology: single | cluster reads as the node count alone, and the profile also sets the default queue type Three nodes without profile: cluster: refusal or warning. Recommended: refusal, CONFIG_INVALID with service_rabbitmq_profile, the message naming the fix. A warning would let a cluster run that copies nothing the application declares with no type, which looks protected and is not; the fix is one line; and since no release has carried the RabbitMQ kind yet, no validating config stops validating (D-14). The alternative is a RABBITMQ_CLASSIC_CLUSTER warning RABBITMQ_SINGLE_NODE only for cluster on one node. Recommended: warn only for a production service on profile: cluster with one node (a cluster waiting for two more nodes). One node on simple gets no warning: it is the default the owner chose by the guide's questions, and a warning on every default production service would be noise. The alternative keeps the warning on every one-node production service, which leaves S-023-18 unchanged Which build issues take the new criteria. specs.py check needs an Issues line for every criterion of an approved spec, so they are assigned to open build issues for now: S-023-22, S-023-23, S-023-24, S-023-26 to #508 (its PR #541 already changes validation and the role), S-023-25 to #512 (audit). Recommended: keep S-023-25 on #512 and S-023-26 on #508; after the merge, file a new build issue for S-023-22, S-023-23 and S-023-24 (the profile field and the one-node default, a follow-up to #506 that #508 depends on), and move those three to it in the split's docs PR, so #541 does not grow into the one-node default change Growing keeps existing classic queues as they are. Recommended: as written, the converge never redeclares, deletes or moves a queue, and the guide gives the application's steps to move one (S-023-26 asserts RabbitMQ 4.x accepts a declaration with no type of an existing classic queue after the default became quorum; the build checks that live) 🤖 Generated with Claude Code
Open Graph Description: Spec for #539 Plan Serves: G-1, G-3 Files: docs/specs/023-rabbitmq-service.md only Order: the spec amendment in one commit; once it merges, a new build issue for S-023-22 to S-023-24 under #539, a...
X Description: Spec for #539 Plan Serves: G-1, G-3 Files: docs/specs/023-rabbitmq-service.md only Order: the spec amendment in one commit; once it merges, a new build issue for S-023-22 to S-023-24 under #539, a...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/546
X: @github
Domain: github.com
IPv4 address: 140.82.112.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:d3fb4ffa-33da-18c2-216d-63d022617e89 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BDF8:C8426:CD8367:1186A4A:6B054E9D |
| html-safe-nonce | 9f84b9d230a2c8303e47feddba005f46650e7ce97379c8413c6a7f4db62cc3cf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREY4OkM4NDI2OkNEODM2NzoxMTg2QTRBOjZCMDU0RTlEIiwidmlzaXRvcl9pZCI6IjY2NDU3NTk1MzYzNTM1OTUwMzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1dc4193f3b8140946de186e29dd75de652dcf73c29155930b5712ff060625182 |
| hovercard-subject-tag | pull_request:5377522490 |
| 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/546/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 #539 Plan Serves: G-1, G-3 Files: docs/specs/023-rabbitmq-service.md only Order: the spec amendment in one commit; once it merges, a new build issue for S-023-22 to S-023-24 under #539, a... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| 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 | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| 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