test_corosync.aug 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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_cipher: none
  7. crypto_hash: none
  8. threads: 0
  9. clear_node_high_bit: no
  10. rrp_mode: none
  11. transport: udp
  12. token: 1000
  13. interface {
  14. ringnumber: 0
  15. bindnetaddr: 192.168.122.1
  16. mcastaddr: 226.94.1.1
  17. ttl: 45
  18. mcastport: 5405
  19. }
  20. }
  21. logging {
  22. fileline: off
  23. function_name: on
  24. to_stderr: yes
  25. to_logfile: yes
  26. to_syslog: yes
  27. logfile: /tmp/corosync.log
  28. debug: off
  29. timestamp: on
  30. logger_subsys {
  31. to_syslog: no
  32. subsys: CPG
  33. debug: on
  34. }
  35. logger_subsys {
  36. to_stderr: no
  37. logfile: /tmp/corosync-msg.log
  38. subsys: MSG
  39. debug: on
  40. tags: enter|trace4
  41. }
  42. }
  43. quorum {
  44. provider: corosync_votequorum
  45. expected_votes: 5
  46. votes: 2
  47. two_node: 1
  48. wait_for_all: 1
  49. last_man_standing: 1
  50. last_man_standing_window: 10000
  51. auto_tie_breaker: 1
  52. }
  53. resources {
  54. system {
  55. memory_used {
  56. recovery: reboot
  57. max: 80
  58. }
  59. load_15min {
  60. recovery: watchdog
  61. max: 8.56
  62. }
  63. }
  64. }
  65. uidgid {
  66. uid: 0
  67. gid: 0
  68. }
  69. nodelist {
  70. node {
  71. ring0_addr: 192.168.122.1
  72. nodeid: 1
  73. name: balalaika
  74. quorum_votes: 2
  75. }
  76. node {
  77. ring0_addr: 192.168.122.2
  78. ring1_addr: 192.168.123.1
  79. nodeid: 2
  80. name: cythara
  81. }
  82. }\n"
  83. test Corosync.lns get conf =
  84. { "#comment" = "Please read the corosync.conf.5 manual page" }
  85. { }
  86. { "totem"
  87. { "version" = "2" }
  88. { "secauth" = "off" }
  89. { "crypto_cipher" = "none" }
  90. { "crypto_hash" = "none" }
  91. { "threads" = "0" }
  92. { "clear_node_high_bit" = "no" }
  93. { "rrp_mode" = "none" }
  94. { "transport" = "udp" }
  95. { "token" = "1000" }
  96. { "interface"
  97. { "ringnumber" = "0" }
  98. { "bindnetaddr" = "192.168.122.1" }
  99. { "mcastaddr" = "226.94.1.1" }
  100. { "ttl" = "45" }
  101. { "mcastport" = "5405" } } }
  102. { }
  103. { "logging"
  104. { "fileline" = "off" }
  105. { "function_name" = "on" }
  106. { "to_stderr" = "yes" }
  107. { "to_logfile" = "yes" }
  108. { "to_syslog" = "yes" }
  109. { "logfile" = "/tmp/corosync.log" }
  110. { "debug" = "off" }
  111. { "timestamp" = "on" }
  112. { "logger_subsys"
  113. { "to_syslog" = "no" }
  114. { "subsys" = "CPG" }
  115. { "debug" = "on" } }
  116. { "logger_subsys"
  117. { "to_stderr" = "no" }
  118. { "logfile" = "/tmp/corosync-msg.log" }
  119. { "subsys" = "MSG" }
  120. { "debug" = "on" }
  121. { "tags" = "enter|trace4" } } }
  122. { }
  123. { "quorum"
  124. { "provider" = "corosync_votequorum" }
  125. { "expected_votes" = "5" }
  126. { "votes" = "2" }
  127. { "two_node" = "1" }
  128. { "wait_for_all" = "1" }
  129. { "last_man_standing" = "1" }
  130. { "last_man_standing_window" = "10000" }
  131. { "auto_tie_breaker" = "1" } }
  132. { }
  133. { "resources"
  134. { "system"
  135. { "memory_used"
  136. { "recovery" = "reboot" }
  137. { "max" = "80" } }
  138. { "load_15min"
  139. { "recovery" = "watchdog" }
  140. { "max" = "8.56" } } } }
  141. { }
  142. { "uidgid"
  143. { "uid" = "0" }
  144. { "gid" = "0" } }
  145. { }
  146. { "nodelist"
  147. { "node"
  148. { "ring0_addr" = "192.168.122.1" }
  149. { "nodeid" = "1" }
  150. { "name" = "balalaika" }
  151. { "quorum_votes" = "2" } }
  152. { }
  153. { "node"
  154. { "ring0_addr" = "192.168.122.2" }
  155. { "ring1_addr" = "192.168.123.1" }
  156. { "nodeid" = "2" }
  157. { "name" = "cythara" } } }