This is the sixth in a series of posts reviewing methods for MySQL master discovery: the means by which an application connects to the master of a replication tree. Moreover, the means by which, upon master failover, it identifies and connects to the newly promoted master.
These posts are not concerned with the manner by which the replication failure detection and recovery take place. I will share orchestrator
specific configuration/advice, and point out where cross DC orchestrator/raft
setup plays part in discovery itself, but for the most part any recovery tool such as MHA
, replication-manager
, severalnines
or other, is applicable.
Hard coded configuration deployment
You may use your source/config repo as master service discovery method of sorts.
The master’s identity would be hard coded into your, say, git
repo, to be updated and deployed to production upon failover.
This method is simple and I’ve seen it being used by companies, in production. Noteworthy:
Continue reading » “MySQL master discovery methods, part 6: other methods”