test_corosync.aug 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. module Test_corosync =
  2. let conf = "# Please read the corosync.conf.5 manual page
  3. totem {
  4. version: 2
  5. secauth: off
  6. crypto_type: nss
  7. threads: 0
  8. clear_node_high_bit: no
  9. rrp_mode: none
  10. transport: udp
  11. token: 1000
  12. interface {
  13. ringnumber: 0
  14. bindnetaddr: 192.168.122.1
  15. mcastaddr: 226.94.1.1
  16. ttl: 45
  17. mcastport: 5405
  18. }
  19. }
  20. logging {
  21. fileline: off
  22. function_name: on
  23. to_stderr: yes
  24. to_logfile: yes
  25. to_syslog: yes
  26. logfile: /tmp/corosync.log
  27. debug: off
  28. timestamp: on
  29. logger_subsys {
  30. to_syslog: no
  31. subsys: CPG
  32. debug: on
  33. }
  34. logger_subsys {
  35. to_stderr: no
  36. logfile: /tmp/corosync-msg.log
  37. subsys: MSG
  38. debug: on
  39. tags: enter|trace4
  40. }
  41. }
  42. quorum {
  43. provider: corosync_votequorum
  44. expected_votes: 5
  45. votes: 2
  46. two_node: 1
  47. wait_for_all: 1
  48. last_man_standing: 1
  49. last_man_standing_window: 10000
  50. auto_tie_breaker: 1
  51. }
  52. resources {
  53. system {
  54. memory_used {
  55. recovery: reboot
  56. max: 80
  57. }
  58. load_15min {
  59. recovery: watchdog
  60. max: 8.56
  61. }
  62. }
  63. }
  64. uidgid {
  65. uid: 0
  66. gid: 0
  67. }\n"
  68. test Corosync.lns get conf =
  69. { "#comment" = "Please read the corosync.conf.5 manual page" }
  70. { }
  71. { "totem"
  72. { "version" = "2" }
  73. { "secauth" = "off" }
  74. { "crypto_type" = "nss" }
  75. { "threads" = "0" }
  76. { "clear_node_high_bit" = "no" }
  77. { "rrp_mode" = "none" }
  78. { "transport" = "udp" }
  79. { "token" = "1000" }
  80. { "interface"
  81. { "ringnumber" = "0" }
  82. { "bindnetaddr" = "192.168.122.1" }
  83. { "mcastaddr" = "226.94.1.1" }
  84. { "ttl" = "45" }
  85. { "mcastport" = "5405" } } }
  86. { }
  87. { "logging"
  88. { "fileline" = "off" }
  89. { "function_name" = "on" }
  90. { "to_stderr" = "yes" }
  91. { "to_logfile" = "yes" }
  92. { "to_syslog" = "yes" }
  93. { "logfile" = "/tmp/corosync.log" }
  94. { "debug" = "off" }
  95. { "timestamp" = "on" }
  96. { "logger_subsys"
  97. { "to_syslog" = "no" }
  98. { "subsys" = "CPG" }
  99. { "debug" = "on" } }
  100. { "logger_subsys"
  101. { "to_stderr" = "no" }
  102. { "logfile" = "/tmp/corosync-msg.log" }
  103. { "subsys" = "MSG" }
  104. { "debug" = "on" }
  105. { "tags" = "enter|trace4" } } }
  106. { }
  107. { "quorum"
  108. { "provider" = "corosync_votequorum" }
  109. { "expected_votes" = "5" }
  110. { "votes" = "2" }
  111. { "two_node" = "1" }
  112. { "wait_for_all" = "1" }
  113. { "last_man_standing" = "1" }
  114. { "last_man_standing_window" = "10000" }
  115. { "auto_tie_breaker" = "1" } }
  116. { }
  117. { "resources"
  118. { "system"
  119. { "memory_used"
  120. { "recovery" = "reboot" }
  121. { "max" = "80" } }
  122. { "load_15min"
  123. { "recovery" = "watchdog" }
  124. { "max" = "8.56" } } } }
  125. { }
  126. { "uidgid"
  127. { "uid" = "0" }
  128. { "gid" = "0" } }