Closed GoogleCodeExporter closed 9 years ago
Sounds pretty reasonable. Will check it now on my test configuration.
Original comment by kovy...@gmail.com
on 11 Apr 2007 at 7:19
Here is an example given the below config:
# Mysql Reader role
role reader
mode balanced
servers test01, test02, test03
ip 10.0.1.11, 10.0.1.12
# Mysql Writer role
role writer
mode exclusive
servers test01, test02
ip 10.0.1.15
Before change:
# ./mmm_control show
Config file: mmm_mon.conf
Daemon is running!
Servers status:
test01(10.0.1.91): master/ONLINE. Roles: reader(10.0.1.11;), writer(10.0.1.15;)
test02(10.0.1.92): master/ONLINE. Roles: reader(10.0.1.12;)
test03(10.0.1.93): slave/ONLINE. Roles: None
After change:
# ./mmm_control show
Config file: mmm_mon.conf
Daemon is running!
Servers status:
test01(10.0.1.91): master/ONLINE. Roles: writer(10.0.1.15;)
test02(10.0.1.92): master/ONLINE. Roles: reader(10.0.1.11;)
test03(10.0.1.93): slave/ONLINE. Roles: reader(10.0.1.12;)
Original comment by bn-s...@nesbitt.org
on 11 Apr 2007 at 7:34
Damn, great! Just realized, that it would allow us to have writer-only hosts
which
would be promoted to reader when some reader will go down.
Original comment by kovy...@gmail.com
on 11 Apr 2007 at 7:53
Yes, that's what I was trying to accomplish :)
Original comment by bn-s...@nesbitt.org
on 11 Apr 2007 at 8:05
"Fixed" in revision 14 of the trunk.
Original comment by kovy...@gmail.com
on 11 Apr 2007 at 8:28
Original issue reported on code.google.com by
bn-s...@nesbitt.org
on 11 Apr 2007 at 7:08