wangyan188 发表于 2018-12-31 08:37:44

mysql-mmm+amoeba+keepalived实现mysql高可用和读写分离(二)

  # mmm_control help
  Valid commands are:
  help                              - show this message
  #查看帮助信息
  ping                              - ping monitor
  #ping监控
  show                              - show status
  #查看状态信息
  checks [|all [|all]] - show checks status
  #显示检查状态,包括(ping、mysql、rep_threads、rep_backlog)
  set_online                  - set hostonline
  #设置某host为online状态
  set_offline               - set hostoffline
  #设置某host为offline状态
  mode                              - print current mode.
  #打印当前的模式,是ACTIVE、MANUAL、PASSIVE?
  #默认ACTIVE模式
  set_active                        - switch into active mode.
  #更改为active模式
  set_manual                        - switch into manual mode.
  #更改为manual模式
  set_passive                     - switch into passive mode.
  #更改为passive模式
  move_role [--force]   - move exclusive roleto host
  #更改host的模式,比如更改处于slave的mysql数据库角色为write
  (Only use --force if you know what you are doing!)
  set_ip                  - set role with ipto host
  #为host设置ip,只有passive模式的时候才允许更改!

页: [1]
查看完整版本: mysql-mmm+amoeba+keepalived实现mysql高可用和读写分离(二)