René's URL Explorer Experiment


Title: Automatic failover for a MariaDB primary and replica, without a proxy · Issue #416 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Automatic failover for a MariaDB primary and replica, without a proxy · Issue #416 · cloudfall-dev/cloudfall

X Title: Automatic failover for a MariaDB primary and replica, without a proxy · Issue #416 · cloudfall-dev/cloudfall

Description: Requested by: @romamo (filed by an agent on his instruction, 2026-11-16) Problem S-019 (#409) gives a MariaDB primary and a replica, and a promotion that happens only when a person changes the declaration and converges. When the primary'...

Open Graph Description: Requested by: @romamo (filed by an agent on his instruction, 2026-11-16) Problem S-019 (#409) gives a MariaDB primary and a replica, and a promotion that happens only when a person changes the decl...

X Description: Requested by: @romamo (filed by an agent on his instruction, 2026-11-16) Problem S-019 (#409) gives a MariaDB primary and a replica, and a promotion that happens only when a person changes the decl...

Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/416

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Automatic failover for a MariaDB primary and replica, without a proxy","articleBody":"Requested by: @romamo (filed by an agent on his instruction, 2026-11-16)\n\n## Problem\n\nS-019 (#409) gives a MariaDB primary and a replica, and a promotion that happens only when a person changes the declaration and converges. When the primary's host dies at night, the database is down until someone does that, and every application still points at the dead host.\n\nThree things are missing:\n\n- Nothing watches the pair and decides that the primary is gone\n- Nothing stops a primary that is alive but cut off from taking writes while its replica is promoted, so two servers can end up with different data\n- An application has no way to find the new primary: the address sits in its environment, written by hand\n\n## Proposal\n\nNo proxy in the path. An application on the primary's host keeps the unix socket, the fastest way in, and the application itself finds the primary again after a switch.\n\n1. **One controller** on the management host, a long-running process, the only one that promotes. It keeps one connection open to each server and pings over it every second or two: `read_only`, the GTID position, the server's own write counters, and on the replica the state of its link to the primary. The decision logic runs only after a missed ping\n2. **The replica is the second witness.** The controller promotes only when it cannot reach the primary and the replica reports that it lost the primary too:\n\n   | Controller sees the primary | Replica sees the primary | Action |\n   |---|---|---|\n   | no | yes | The controller's own network; nothing |\n   | yes | no | Replication is broken, not the primary; alert, no promotion |\n   | no | no | Wait out the primary's self-fence time, then promote |\n   | replica unreachable | | Nothing to promote; alert |\n\n3. **A primary fences itself.** A small watchdog on the database host turns `read_only` on when the server can reach neither the controller nor the replica for a set time. The controller promotes only after that time has surely passed. A controller that is down does not stop a primary that still sees its replica\n4. **A server starts read-only.** Writes are switched on by a converge or a promotion, never by a restart, so a primary that comes back after a crash can't take writes beside the new one\n5. **Applications find the primary themselves.** A component's environment carries the fixed list of both servers. On a connection error or a read-only error the application asks each for `read_only`, takes the writable one, reconnects and retries. The truth lives in the servers, so nothing has to be pushed to application hosts during the failure. Cloudfall documents the contract and ships a reference wrapper for Python and PHP\n6. **Health without test writes.** A stalled write path is read from the server's counters in the same ping, and the replica's lag from the two GTID positions; no service table and no binary log noise. An idle primary with a broken write path is found by the first real write: accepted, and a test write stays an option that is off by default\n7. **Monitoring is a separate channel.** A filling disk, a degraded array or rising errors lead to a planned switch before the server fails. Monitoring is never a vote in the failover decision: it is slower than the decision needs, and the decision must not depend on the monitoring stack being up\n8. **A record of every promotion** under the operator's rules (D-19): what each witness saw, the last GTID the replica applied, and so what may have been lost\n\n## Consequences to settle in the spec\n\n- An application that fails over needs an `owner` with a password (S-019): the passwordless unix-socket form works only on the database's own host. Locally it still connects through the socket\n- After a switch, an application left on the old host reaches the primary over TCP with TLS until the primary is moved back\n- On a demotion the controller closes client connections, so no application keeps reading stale data from the old primary\n- Asynchronous replication loses the primary's last transactions; whether semi-synchronous replication is offered is a question for the spec\n- The timings (missed pings, the fence time, the margin before promotion) are chosen in the spec and proven on a pair of hosts\n- The exact counters that show a stalled write, and their behaviour on a full disk, are to be verified on a host before the spec names them\n\n## Alternatives\n\n- **A local proxy on each application host** that follows `read_only`: needs no code in the application, and stays the answer for applications the team can't change. It costs the socket path for an application on the database's host\n- **MaxScale or another tool that promotes by itself:** several deciders with different views of the network\n- **Galera:** a different durability model with three or more servers; out of S-019's scope\n- **A report from the application as a vote:** an application on the primary's host notices a network cut last, its errors often have other causes, and it would let any application trigger a failover. It may later serve as a hint to check at once\n\n## Related\n\n- #409, S-019: the service, the replica and the promotion this builds on\n- #216: connections between components and stores, where the list of servers in a component's environment would come from\n- ROADMAP.md M14: the PostgreSQL failover formation, which needs the same controller, witness and fence\n","author":{"url":"https://github.com/romamo","@type":"Person","name":"romamo"},"datePublished":"2026-11-16T07:31:04Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/416"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:61bb9cff-87d9-840c-0b63-daf8513170b6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBA44:2D8E06:EDD520:144C6EC:6B0558A6
html-safe-nonceee8ec5bd591cd0f2d2b68e7683de20a3b1bedccde7016b6babe534507fb4a844
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTQ0OjJEOEUwNjpFREQ1MjA6MTQ0QzZFQzo2QjA1NThBNiIsInZpc2l0b3JfaWQiOiIxNzUzNjkxMTgwODk1NjU2MTAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8e546d623bc21478efb88751431033124bd7cf6864ebf93e0d1643fb573a9c87
hovercard-subject-tagissue:6416468490
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/416/issue_layout
twitter:imagehttps://opengraph.githubassets.com/07ace7022ce5cb7915db0e9daa3fd1b2b6d8d646db4a7ba0af9a5fbe661efd66/cloudfall-dev/cloudfall/issues/416
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/07ace7022ce5cb7915db0e9daa3fd1b2b6d8d646db4a7ba0af9a5fbe661efd66/cloudfall-dev/cloudfall/issues/416
og:image:altRequested by: @romamo (filed by an agent on his instruction, 2026-11-16) Problem S-019 (#409) gives a MariaDB primary and a replica, and a promotion that happens only when a person changes the decl...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameromamo
hostnamegithub.com
expected-hostnamegithub.com
Nonea79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080
turbo-cache-controlno-preview
go-importgithub.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git
octolytics-dimension-user_id339512759
octolytics-dimension-user_logincloudfall-dev
octolytics-dimension-repository_id1360999777
octolytics-dimension-repository_nwocloudfall-dev/cloudfall
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1360999777
octolytics-dimension-repository_network_root_nwocloudfall-dev/cloudfall
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release10dff83edfd4f3617a7792a152d44991587b434c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/issues/416#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fissues%2F416
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fissues%2F416
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=cloudfall-dev%2Fcloudfall
Reloadhttps://github.com/cloudfall-dev/cloudfall/issues/416
Reloadhttps://github.com/cloudfall-dev/cloudfall/issues/416
Reloadhttps://github.com/cloudfall-dev/cloudfall/issues/416
cloudfall-devhttps://github.com/cloudfall-dev
cloudfallhttps://github.com/cloudfall-dev/cloudfall
Codehttps://github.com/cloudfall-dev/cloudfall
Issues78 (78)https://github.com/cloudfall-dev/cloudfall/issues
Pull requests10 (10)https://github.com/cloudfall-dev/cloudfall/pulls
Discussionshttps://github.com/cloudfall-dev/cloudfall/discussions
Actionshttps://github.com/cloudfall-dev/cloudfall/actions
Security and qualityhttps://github.com/cloudfall-dev/cloudfall/security
Insightshttps://github.com/cloudfall-dev/cloudfall/insights
https://github.com/cloudfall-dev/cloudfall
New issuehttps://github.com/login?return_to=https://github.com/cloudfall-dev/cloudfall/issues/416
New issuehttps://github.com/login?return_to=https://github.com/cloudfall-dev/cloudfall/issues/416
Automatic failover for a MariaDB primary and replica, without a proxyhttps://github.com/cloudfall-dev/cloudfall/issues/416#top
enhancementhttps://github.com/cloudfall-dev/cloudfall/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/romamo
romamohttps://github.com/romamo
on Nov 16, 2026https://github.com/cloudfall-dev/cloudfall/issues/416#issue-6416468490
@romamohttps://github.com/romamo
#409https://github.com/cloudfall-dev/cloudfall/issues/409
MariaDB as a Service kind: one server, primary or replica #409https://github.com/cloudfall-dev/cloudfall/issues/409
Connections between components and stores, with a generated user per connection #216https://github.com/cloudfall-dev/cloudfall/issues/216
romamohttps://github.com/romamo
enhancementhttps://github.com/cloudfall-dev/cloudfall/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Nov 16, 2026https://github.com/cloudfall-dev/cloudfall/issues/416#event-36249489908
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Nov 16, 2026https://github.com/cloudfall-dev/cloudfall/issues/416#issuecomment-6910675649
shipmill-romamohttps://github.com/shipmill/shipmill
#409https://github.com/cloudfall-dev/cloudfall/issues/409
#411https://github.com/cloudfall-dev/cloudfall/pull/411
#409https://github.com/cloudfall-dev/cloudfall/issues/409
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Nov 16, 2026https://github.com/cloudfall-dev/cloudfall/issues/416#issuecomment-6911158528
shipmill-romamohttps://github.com/shipmill/shipmill
#417https://github.com/cloudfall-dev/cloudfall/pull/417
#417https://github.com/cloudfall-dev/cloudfall/pull/417
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Nov 16, 2026https://github.com/cloudfall-dev/cloudfall/issues/416#issuecomment-6912435599
shipmill-romamohttps://github.com/shipmill/shipmill
#418https://github.com/cloudfall-dev/cloudfall/pull/418
#418https://github.com/cloudfall-dev/cloudfall/pull/418
Sign up for freehttps://github.com/signup?return_to=https://github.com/cloudfall-dev/cloudfall/issues/416
Sign in to commenthttps://github.com/login?return_to=https://github.com/cloudfall-dev/cloudfall/issues/416
enhancementhttps://github.com/cloudfall-dev/cloudfall/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.