Multi-Master Replication Manager for MySQL FAQ

I have one master and many slaves and want to promote one slave to become a second master. Does this work?

Yes. Set up master-master replication (don’t forget log_slave_updates, etc.), then change mmm config and finally restart agents/monitor.

FATAL Listener: Can’t create socket!

When I try to start the agent these messages are repeatedly logged:

2009/10/30 20:08:59 FATAL Child exited with exitcode 99, restarting
2009/10/30 20:08:59 FATAL Listener: Can't create socket!

→ For some reason the agent tries to listen on an IP that is not configured on the host. Check your configuration and be sure that you have not mistyped anything. Be sure to also check the this configuration directive.

Is it possible to monitor multiple clusters from the same monitoring host?

Yes, you can run multiple instances of mmm_mond on the same host. You have to copy the init-script and adjust the ‘CLUSTER’ variable (e.g. CLUSTER=’C1’). The config file for this second instance should be named mmm_mon_C1.conf instead of mmm_mon.conf. You also have to adjust some things in the section of the config (choose a unique port number, default is 9988):

pid_path /var/run/mmmd_mon_C1.pid
port     9990

To control this cluster you can use mmm_control @C1 - e.g.:

mmm_control @C1 show

FATAL Configuration file /etc/mysql-mmm/mmm_mon.conf is world writable!

mon:/etc/mysql-mmm # chmod 640 mmm_common.conf
mon:/etc/mysql-mmm # ll
total 16
-rw-r----- 1 root root   42 Sep  2 10:38 mmm_agent.conf
-rw-r----- 1 root root 1131 Sep  2 08:19 mmm_common.conf
-rw-r----- 1 root root  321 Sep  1 14:12 mmm_mon.conf
-rw-r----- 1 root root 1293 Sep  1 14:12 m
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值