groups.conf 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. # Test configuration file
  2. group {
  3. name=raid
  4. model=nplusm
  5. preferred-active-units=2
  6. maximum-active-instances=2
  7. preferred-standby-units=2
  8. maximum-standby-instances=4
  9. clccli_path=/tmp/trunktest/test
  10. binary_path=/tmp/trunktest/test
  11. component_restart_probation=100000
  12. component_restart_max=4
  13. unit_restart_probation=200000
  14. unit_restart_max=6
  15. unit {
  16. name=SU_1
  17. component {
  18. name=comp_a_in_su_1
  19. comptype=sa_aware
  20. bn=testamf1
  21. instantiate=clc_cli_script
  22. terminate=clc_cli_script
  23. cleanup=clc_cli_script
  24. csi_type_name {
  25. name=for_comp_a_x
  26. }
  27. csi_type_name {
  28. name=for_comp_a_y
  29. }
  30. }
  31. component {
  32. name=comp_b_in_su_1
  33. comptype=sa_aware
  34. bn=testamf1
  35. instantiate=clc_cli_script
  36. terminate=clc_cli_script
  37. cleanup=clc_cli_script
  38. csi_type_name {
  39. name=for_comp_b
  40. }
  41. }
  42. }
  43. unit {
  44. name=SU_2
  45. component {
  46. name=comp_a_in_su_2
  47. comptype=sa_aware
  48. bn=testamf1
  49. instantiate=clc_cli_script
  50. terminate=clc_cli_script
  51. cleanup=clc_cli_script
  52. csi_type_name {
  53. name=for_comp_a_x
  54. }
  55. csi_type_name {
  56. name=for_comp_a_y
  57. }
  58. }
  59. component {
  60. name=comp_b_in_su_2
  61. comptype=sa_aware
  62. bn=testamf1
  63. instantiate=clc_cli_script
  64. terminate=clc_cli_script
  65. cleanup=clc_cli_script
  66. csi_type_name {
  67. name=for_comp_b
  68. }
  69. }
  70. }
  71. unit {
  72. name=SU_3
  73. component {
  74. name=comp_a_in_su_3
  75. comptype=sa_aware
  76. bn=testamf1
  77. instantiate=clc_cli_script
  78. terminate=clc_cli_script
  79. cleanup=clc_cli_script
  80. csi_type_name {
  81. name=for_comp_a_x
  82. }
  83. csi_type_name {
  84. name=for_comp_a_y
  85. }
  86. }
  87. component {
  88. name=comp_b_in_su_3
  89. comptype=sa_aware
  90. bn=testamf1
  91. instantiate=clc_cli_script
  92. terminate=clc_cli_script
  93. cleanup=clc_cli_script
  94. csi_type_name {
  95. name=for_comp_b
  96. }
  97. }
  98. }
  99. unit {
  100. name=SU_4
  101. component {
  102. name=comp_a_in_su_4
  103. comptype=sa_aware
  104. bn=testamf1
  105. instantiate=clc_cli_script
  106. terminate=clc_cli_script
  107. cleanup=clc_cli_script
  108. csi_type_name {
  109. name=for_comp_a_x
  110. }
  111. csi_type_name {
  112. name=for_comp_a_y
  113. }
  114. }
  115. component {
  116. name=comp_b_in_su_4
  117. comptype=sa_aware
  118. bn=testamf1
  119. instantiate=clc_cli_script
  120. terminate=clc_cli_script
  121. cleanup=clc_cli_script
  122. csi_type_name {
  123. name=for_comp_b
  124. }
  125. }
  126. }
  127. serviceinstance {
  128. name = SI_1
  129. csi_descriptor {
  130. csi_name=csi_ax_in_si_1
  131. type_name=for_comp_a_x
  132. name_value {
  133. name=good_health_limit
  134. value=0
  135. }
  136. name_value {
  137. name=ax_attr2
  138. value=ax1_val2
  139. }
  140. }
  141. csi_descriptor {
  142. csi_name=csi_ay_in_si_1
  143. type_name=for_comp_a_y
  144. name_value {
  145. name=ay_attr1
  146. value=ay1_val1
  147. }
  148. name_value {
  149. name=ay_attr2
  150. value=ay1_val2
  151. }
  152. }
  153. csi_descriptor {
  154. csi_name=csi_b_in_si_1
  155. type_name=for_comp_b
  156. name_value {
  157. name=good_health_limit
  158. value=0
  159. }
  160. name_value {
  161. name=b_attr2
  162. value=b1_val2
  163. }
  164. }
  165. }
  166. serviceinstance {
  167. name = SI_2
  168. csi_descriptor {
  169. csi_name=csi_ax_in_si_2
  170. type_name=for_comp_a_x
  171. name_value {
  172. name=good_health_limit
  173. value=10
  174. }
  175. name_value {
  176. name=ax_attr2
  177. value=ax2_val2
  178. }
  179. }
  180. csi_descriptor {
  181. csi_name=csi_b_in_si_2
  182. type_name=for_comp_b
  183. name_value {
  184. name=good_health_limit
  185. value=0
  186. }
  187. name_value {
  188. name=b_attr2
  189. value=b2_val2
  190. }
  191. }
  192. csi_descriptor {
  193. csi_name=csi_ay_in_si_2
  194. type_name=for_comp_a_y
  195. name_value {
  196. name=ay_attr1
  197. value=ay2_val1
  198. }
  199. name_value {
  200. name=ay_attr2
  201. value=ay2_val2
  202. }
  203. }
  204. }
  205. # serviceinstance {
  206. # name = sibb
  207. # }
  208. # serviceinstance {
  209. # name = sicc
  210. # }
  211. # serviceinstance {
  212. # name = sidd
  213. # }
  214. # serviceinstance {
  215. # name = side
  216. # }
  217. # serviceinstance {
  218. # name = sidf
  219. # }
  220. }
  221. healthcheck {
  222. key = key1
  223. period = 500
  224. maximum_duration = 550
  225. }
  226. healthcheck {
  227. key = key2
  228. period = 2000
  229. maximum_duration = 250
  230. }
  231. healthcheck {
  232. key = key3
  233. period = 3000
  234. maximum_duration = 350
  235. }