-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Add functionality to MHA-Helper to allow for reader_vip_cidr management.
reader_vip_cidr= VIP for read onlycandidate_reader= boolean, if true then slave is eligible to take on reader vip.
MHA-Helper configuration
[default]
master_vip_cidr=192.168.4.10/24
reader_vip_cidr=192.168.4.11/24
[db1]
candidate_reader=1
[db2]
candidate_reader=1
# db3
[db3]
candidate_reader=1
How it would work
Take db topology:
db1 (master holds master VIP)
\ -> db2 (replica, holds reader VIP, candidate_master = 1)
\ -> db3 (replica, none, candidate_reader = 1)
Case:
- Make
db2master - Make
db1replica ofdb2 - Move
master_vip_cidrfromdb1 -> db2 - Move
reader_vip_cidrfromdb2 -> db3
There are some cases that need to be worked out like:
- What happens if
db3is down, or far behind in replication? - What if
db1anddb2are the only master, replica pair, where does the reader vip go?- I think this is easy, just put the
reader_vipon the master.
- I think this is easy, just put the
etc..
thoughts?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels