Advertisement
xsbr

mmm_common.conf with 3 masters

Jun 7th, 2011
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. active_master_role writer
  2.  
  3. <host default>
  4. cluster_interface bond0
  5. pid_path /var/run/mysql-mmm/mmm_agentd.pid
  6. bin_path /usr/libexec/mysql-mmm/
  7.  
  8. replication_user replication
  9. replication_password replicationpassword
  10.  
  11. agent_user mmm_agent
  12. agent_password agentpassword
  13. </host>
  14.  
  15. <host db1>
  16. ip 10.0.0.1
  17. mode master
  18. peer db2
  19. </host>
  20.  
  21. <host db2>
  22. ip 10.0.0.2
  23. mode master
  24. peer db1
  25. </host>
  26.  
  27. <host db3>
  28. ip 10.0.0.3
  29. mode master
  30. peer db1
  31. </host>
  32.  
  33. <role writer>
  34. hosts db1, db2, db3
  35. ips 10.0.0.4
  36. mode exclusive
  37. </role>
  38.  
  39. <role reader>
  40. hosts db1, db2, db3
  41. ips 10.0.0.5, 10.0.0.6, 10.0.0.7
  42. mode balanced
  43. </role>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement