twitter-archive / mysos

Cotton (formerly known as Mysos)
https://incubator.apache.org/projects/cotton.html
589 stars 67 forks source link

Better MySQL master failure detection #42

Open xujyan opened 9 years ago

xujyan commented 9 years ago

Currently Mysos executor monitoring the health of MySQL master only by making sure the process is alive.

More subtle failure cases can be captured by more sophisticated health checking (e.g., have executors regularly attempt sql queries against the master and reporting to the scheduler if they fail). The scheduler can then determine a point at which a master election is required.