Title: Spec 021: An application finds the MariaDB primary by itself by shipmill-romamo[bot] · Pull Request #418 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Spec 021: An application finds the MariaDB primary by itself by shipmill-romamo[bot] · Pull Request #418 · cloudfall-dev/cloudfall
X Title: Spec 021: An application finds the MariaDB primary by itself by shipmill-romamo[bot] · Pull Request #418 · cloudfall-dev/cloudfall
Description: Spec for #416 Split out of #417 on the maintainer's decision in an interactive session ("Раздели, контракт приложения слей сейчас": split it, merge the application contract now). The application's half does not depend on who promotes, so it no longer waits for the controller's design. Plan Serves: G-3 Files: docs/specs/021-mariadb-client-contract.md (new); no product code Order: after S-019's build (#409): the criteria need its pair and its planned switch Proof: specs.py check clean; the spec's 11 criteria (S-021-1 to S-021-11) are what the build must show Summary An application finds the MariaDB primary by itself, with no proxy and no edit of its environment when the roles change. The environment holds the fixed list of both servers; the application asks each whether it is read-only and takes the writable one Six rules: timeouts required, read_only asked on every new or pooled connection, a new search after an error, fail when no server is writable, write to neither when two are, never write to a read-only server The servers' half: a demoted server closes its client connections, so a client that only reads learns of a switch too Reference wrappers for Python (PyMySQL) and PHP (mysqli) in examples/mariadb-clients/, one file each, tested in CI; background checking is an option of the Python one, off by default Works with the planned switch of S-019 as it is; an automatic failover later needs no change here Decisions already taken The maintainer settled these in the session, so nothing here waits on an answer: timeouts and the check on connect are required; background checking is an option ("Первые два согласен. Третий может быть опцией.") the wrappers are examples in the repository, not published packages (recommendation 6 of #417, accepted with "Принимаю все") Two points are mine and not discussed: reading from the replica is out of scope, and a wrapper repeats a cut transaction only when it was handed whole as one function (S-021-8). Not verified: nothing here has run against a host. 🤖 Generated with Claude Code
Open Graph Description: Spec for #416 Split out of #417 on the maintainer's decision in an interactive session ("Раздели, контракт приложения слей сейчас": split it, merge the application contract now). The ...
X Description: Spec for #416 Split out of #417 on the maintainer's decision in an interactive session ("Раздели, контракт приложения слей сейчас": split it, merge the application contrac...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/418
X: @github
Domain: github.com
IPv4 address: 140.82.113.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:fda15ec8-46f7-96ee-6ec4-6abde5260223 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8AA6:1FFF:C1B0F7:10A5E88:6B055CE2 |
| html-safe-nonce | 80a84d18b8d73c2dcf8549adcf295c858c2a85dc5c7a084b41b4c6e0b1f23028 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUE2OjFGRkY6QzFCMEY3OjEwQTVFODg6NkIwNTVDRTIiLCJ2aXNpdG9yX2lkIjoiODM5ODQ5MDA0NzIzMzc0NDA5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fbd023e2fd30696410ca2a297e67f816190033661c089b68755089e46d60ced5 |
| hovercard-subject-tag | pull_request:5334365957 |
| 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/418/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 #416 Split out of #417 on the maintainer's decision in an interactive session ("Раздели, контракт приложения слей сейчас": split it, merge the application contract now). The ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8a6760da3cce5e2d079d07e3b62df71194316c4478db1a5e38050f44fce72c72 |
| 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 | 8327739ac0648b9c3c722b5f401f7338553936b8 |
| 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