~/talk

MySQL Failover for Asynchronous replication with Orchestrator, ProxySQL and Consul

Talkat Percona Live 2022 · 2022-05-16..05-18· [databases]
links:none on file
slides:none on file

MySQL asynchronous replication failover is implemented with Orchestrator, ProxySQL and Consul where Orchestrator detects failures and runs hooks that write new master info into Consul so ProxySQL agents update runtime host groups via consul-template; the demo uses a 3-node Raft orchestrator, sets master_connect_retry=1 for fast detection and shows hooks writing successor and failed host IPs to Consul and ProxySQL being updated, with a recovery block of 3600s to avoid flapping; automatic failover works but is warned as potentially hazardous.

AI-written summary · about

  1. 0:00Intro
  2. 2:28Factors considered for High Availability
  3. 3:26How many 9's do you really need?
  4. 12:02Orchestrator (Discovery)
  5. 12:30Orchestrator (Restructure)
  6. 13:24Orchestrator (Failure Detection)
  7. 16:02Orchestrator (Candidate Selection)
  8. 16:44Orchestrator (Recovery)
  9. 18:58ProxySQL (Implementation)
  10. 20:39What do we have now?
  11. 28:57Orchestrator hook and Consul-template
  12. 29:52Logs for Orchestrator hook
  13. 31:45How does consul-template work
  14. 33:06The Flow
  15. 34:10Conclusions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.