Advertisement
Guest User

Untitled

a guest
May 25th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. global_defs {
  2. notification_email {
  3. me@employer.fr
  4. }
  5. notification_email_from server1@employer.fr
  6. router_id mysql-ha-server1
  7. smtp_server 10.1.5.440
  8. smtp_connect_timeout 30
  9. }
  10.  
  11. vrrp_script healthcheck {
  12. script "/usr/local/sbin/keepalived-healthcheck"
  13. interval 5
  14. }
  15.  
  16. vrrp_instance probddwrite1 {
  17. interface prostore
  18. state SLAVE
  19. priority 101
  20. virtual_router_id 51
  21. smtp_alert
  22. authentication {
  23. auth_type PASS
  24. auth_pass xxx
  25. }
  26. virtual_ipaddress {
  27. 10.1.13.10
  28. }
  29. nopreempt
  30. track_script {
  31. healthcheck
  32. }
  33. }
  34. vrrp_instance probddread1 {
  35. interface prostore
  36. state BACKUP
  37. priority 100
  38. virtual_router_id 52
  39. smtp_alert
  40. authentication {
  41. auth_type PASS
  42. auth_pass xxx
  43. }
  44. virtual_ipaddress {
  45. 10.1.13.11
  46. }
  47. nopreempt
  48. track_script {
  49. healthcheck
  50. }
  51. }
  52.  
  53. 18,19c18,19
  54. < state SLAVE
  55. < priority 101
  56. ---
  57. > state BACKUP
  58. > priority 100
  59. 36,37c36,37
  60. < state BACKUP
  61. < priority 100
  62. ---
  63. > state SLAVE
  64. > priority 101
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement