amf.conf 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. # AMF Test configuration file
  2. # - Times in milliseconds
  3. # - clccli_path can be set on any level from application and down and will be
  4. # added to the CLI commands if they are not already specified with an absolute
  5. # path (begins with /).
  6. safAmfCluster = test_cluster {
  7. saAmfClusterStartupTimeout=10000
  8. safAmfNode = seasc0036 {
  9. saAmfNodeSuFailOverProb=2000
  10. saAmfNodeSuFailoverMax=2
  11. }
  12. safApp = test_app1 {
  13. clccli_path=/tmp/ais/test
  14. safSg = raid {
  15. saAmfSGRedundancyModel=nplusm
  16. saAmfSGNumPrefActiveSUs=1
  17. saAmfSGMaxActiveSIsperSUs=2
  18. saAmfSGNumPrefStandbySUs=1
  19. saAmfSGMaxStandbySIsperSUs=2
  20. saAmfSGCompRestartProb=100000
  21. saAmfSGCompRestartMax=3
  22. saAmfSGSuRestartProb=20000
  23. saAmfSGSuRestartMax=6
  24. saAmfSGAutoAdjustProb=5000
  25. safSu = SU_1 {
  26. saAmfSUNumComponents=1
  27. safComp = comp_a_in_su_1 {
  28. saAmfCompCategory=sa_aware
  29. saAmfCompCapability=x_active_or_y_standby
  30. saAmfCompNumMaxActiveCsi=1
  31. saAmfCompNumMaxStandbyCsi=1
  32. saAmfCompDefaultClcCliTimeout = 500
  33. saAmfCompDefaultCallbackTimeOut = 500
  34. saAmfCompInstantiateCmd = /tmp/ais/test/clc_cli_script
  35. saAmfCompInstantiateCmdArgv= instantiate /tmp/ais/test/testamf1
  36. saAmfCompTerminateCmd = /tmp/ais/test/clc_cli_script
  37. saAmfCompTerminateCmdArgv = terminate
  38. saAmfCompCleanupCmd = /tmp/ais/test/clc_cli_script
  39. saAmfCompCleanupCmdArgv = cleanup
  40. saAmfCompCsTypes {
  41. for_comp_a_x
  42. for_comp_a_y
  43. }
  44. saAmfCompCmdEnv {
  45. var1=val1
  46. var2=val2
  47. }
  48. saAmfCompRecoveryOnError=component_restart
  49. safHealthcheckKey = key1 {
  50. saAmfHealthcheckPeriod = 3000
  51. saAmfHealthcheckMaxDuration = 350
  52. }
  53. }
  54. }
  55. safSu = SU_2 {
  56. saAmfSUNumComponents=1
  57. safComp = comp_a_in_su_2 {
  58. saAmfCompCategory=sa_aware
  59. saAmfCompCapability=x_active_or_y_standby
  60. saAmfCompNumMaxActiveCsi=1
  61. saAmfCompNumMaxStandbyCsi=1
  62. saAmfCompDefaultClcCliTimeout = 500
  63. saAmfCompDefaultCallbackTimeOut = 500
  64. saAmfCompInstantiateCmd = /tmp/ais/test/clc_cli_script
  65. saAmfCompInstantiateCmdArgv= instantiate
  66. saAmfCompTerminateCmd = /tmp/ais/test/clc_cli_script
  67. saAmfCompTerminateCmdArgv = terminate
  68. saAmfCompCleanupCmd = /tmp/ais/test/clc_cli_script
  69. saAmfCompCleanupCmdArgv = cleanup
  70. saAmfCompCsTypes {
  71. for_comp_a_x
  72. for_comp_a_y
  73. }
  74. saAmfCompCmdEnv {
  75. COMP_BINARY_PATH=/tmp/ais/test
  76. COMP_BINARY_NAME=testamf1
  77. }
  78. saAmfCompRecoveryOnError=component_restart
  79. safHealthcheckKey = key1 {
  80. saAmfHealthcheckPeriod = 3000
  81. saAmfHealthcheckMaxDuration = 350
  82. }
  83. safHealthcheckKey = key2 {
  84. saAmfHealthcheckPeriod = 3000
  85. saAmfHealthcheckMaxDuration = 350
  86. }
  87. }
  88. }
  89. }
  90. safSi = SI_1 {
  91. saAmfSINumCSIs=2
  92. safCsi = csi_ax_in_si_1 {
  93. saAmfCSTypeName=for_comp_a_x
  94. }
  95. safCsi = csi_ay_in_si_1 {
  96. saAmfCSTypeName = for_comp_a_y
  97. saAmfCsiDependencies {
  98. saAmfCSIDependency = csi_ax_in_si_1
  99. }
  100. safCSIAttr = attr1 {
  101. val1
  102. val2
  103. }
  104. safCSIAttr = good_health_limit {
  105. 10
  106. }
  107. }
  108. safRankedSu = SU_1 {
  109. saAmfRank = 1
  110. }
  111. safRankedSu = SU_2 {
  112. saAmfRank = 2
  113. }
  114. }
  115. safSi = SI_2 {
  116. saAmfSINumCSIs=1
  117. safCsi = csi_b_in_si_2 {
  118. saAmfCSTypeName=for_comp_a_x
  119. }
  120. safDepend = SI_1 {
  121. saAmfToleranceTime=10000
  122. }
  123. }
  124. safCSType = for_comp_a_y {
  125. safAmfCSAttrName = attr1
  126. safAmfCSAttrName = good_health_limit
  127. }
  128. safCSType = for_comp_a_x {
  129. }
  130. }
  131. }