mmm_agent.conf
include mmm_common.conf
# include 包含了mmm_common.conf配置文件的内容
# The 'this' variable refers to this server. Proper operation requires
# that 'this' server (db1 by default), as well as all other servers, have the
# proper IP addresses set in mmm_common.conf.
this db1
# this 指定了当前主机为db1
mmm_common.conf
active_master_role writer
# One should set read-only=1 in the configuration of all MySQL servers,
# MMM will change that to read-only=0 on the host with the active_master_role.
# 设置写角色的时候,会执行set global read_only = 0
cluster_interface eth0
# network interface on which the IPs of the roles should be configured
# 配置的网络接口,注意不能指定为子接口,例如eth0:0
agent_port 9989
# Port on which mmm_agentd listens
# mmm_agentd的监听端口,默认为9989
mysql_port 3306
# Port on which mysqld is listening
# 监听的mysql端口,默认3306
pid_path /var/run/mysql-mmm/mmm_agentd.pid
# Location of pid-file
# pid文件位置,如果配置cluster模式,需要增加cluster标识.
bin_path /usr/libexec/mysql-mmm/
# Path to directory containing MMM binaries
# mmm执行文件路径,注意:2.0版本和2.1版本的路径不一样.
replication_user replication
replication_password XXX
LVS集群有三种IP负载均衡技术:VS/NAT、VS/TUN和VS/DR其中VS/DR要求调度器和实际服务器连在同一物理网段
另外的VS/NAT和VS/TUN允许你所说的“LVS服务器上的IP与VIP不同网段”
这方面没有做过, 不过其他的web集群倒是做过, 希望跟楼主学习 。这方面还真不太懂。
不过, 以后要是遇到了Linux服务器的问题, 都可以一起研究探讨啊。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)