kinila 发表于 2018-9-30 09:56:45

MySQL高可用群集--MMM高可用架构

  cluster_interface       ens33
  pid_path                /run/mysql-mmm-agent.pid
  bin_path                /usr/libexec/mysql-mmm/
  replication_user      replication         //MMM服务器切换验证
  replication_password    123456
  agent_user            mmm_agent         //MMM访问数据库代理验证
  agent_password          123456
  
                          //数据库地址池的设定
  ip      192.168.144.128
  mode    master
  peer    db2
  
  
  ip      192.168.144.145
  mode    master
  peer    db1
  
  
  ip      192.168.144.141
  mode    slave
  
  
  ip      192.168.144.129
  mode    slave
  
                     //设置仅可在主服务器上写入
  hosts   db1, db2
  ips   192.168.144.200   //设置主服务器虚拟IP
  mode    exclusive
  
                     //设置仅可在从服务器上读取
  hosts   db3, db4
  ips   192.168.144.201, 192.168.144.202   //设置从服务器虚拟IP
  mode    balanced
  

页: [1]
查看完整版本: MySQL高可用群集--MMM高可用架构