amf.conf 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. # WL - WorkLoad
  7. safAmfCluster = TEST_CLUSTER {
  8. saAmfClusterStartupTimeout=3000
  9. safAmfNode = seasc0036 {
  10. saAmfNodeSuFailOverProb=2000
  11. saAmfNodeSuFailoverMax=2
  12. }
  13. safApp = APP-1 {
  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 = SERVICE_X_1 {
  26. saAmfSUHostedByNode=seasc0036
  27. saAmfSUNumComponents=1
  28. safComp = A {
  29. saAmfCompCategory=sa_aware
  30. saAmfCompCapability=x_active_or_y_standby
  31. saAmfCompNumMaxActiveCsi=1
  32. saAmfCompNumMaxStandbyCsi=1
  33. saAmfCompDefaultClcCliTimeout = 500
  34. saAmfCompDefaultCallbackTimeOut = 500
  35. saAmfCompInstantiateCmd = /tmp/aistest/clc_cli_script
  36. saAmfCompInstantiateCmdArgv= instantiate /tmp/aistest/testamf1
  37. saAmfCompTerminateCmd = /tmp/aistest/clc_cli_script
  38. saAmfCompTerminateCmdArgv = terminate
  39. saAmfCompCleanupCmd = /tmp/aistest/clc_cli_script
  40. saAmfCompCleanupCmdArgv = cleanup
  41. saAmfCompCsTypes {
  42. A-1
  43. A-2
  44. }
  45. saAmfCompCmdEnv {
  46. var1=val1
  47. var2=val2
  48. }
  49. saAmfCompRecoveryOnError=component_restart
  50. safHealthcheckKey = key1 {
  51. saAmfHealthcheckPeriod = 3000
  52. saAmfHealthcheckMaxDuration = 350
  53. }
  54. }
  55. }
  56. safSu = SERVICE_X_2 {
  57. clccli_path=/tmp/aistest
  58. saAmfSUHostedByNode=seasc0036
  59. saAmfSUNumComponents=1
  60. safComp = A {
  61. saAmfCompCategory=sa_aware
  62. saAmfCompCapability=x_active_or_y_standby
  63. saAmfCompNumMaxActiveCsi=1
  64. saAmfCompNumMaxStandbyCsi=1
  65. saAmfCompDefaultClcCliTimeout = 500
  66. saAmfCompDefaultCallbackTimeOut = 500
  67. saAmfCompInstantiateCmd = clc_cli_script
  68. saAmfCompInstantiateCmdArgv= instantiate
  69. saAmfCompTerminateCmd = clc_cli_script
  70. saAmfCompTerminateCmdArgv = terminate
  71. saAmfCompCleanupCmd = clc_cli_script
  72. saAmfCompCleanupCmdArgv = cleanup
  73. saAmfCompCsTypes {
  74. A-1
  75. A-2
  76. }
  77. saAmfCompCmdEnv {
  78. COMP_BINARY_PATH=/tmp/aistest
  79. COMP_BINARY_NAME=testamf1
  80. }
  81. saAmfCompRecoveryOnError=component_restart
  82. safHealthcheckKey = key1 {
  83. saAmfHealthcheckPeriod = 3000
  84. saAmfHealthcheckMaxDuration = 350
  85. }
  86. safHealthcheckKey = key2 {
  87. saAmfHealthcheckPeriod = 3000
  88. saAmfHealthcheckMaxDuration = 350
  89. }
  90. }
  91. }
  92. }
  93. safSi = WL1 {
  94. saAmfSINumCSIs=2
  95. safCsi = WL1-1 {
  96. saAmfCSTypeName = A-1
  97. }
  98. safCsi = WL1-2 {
  99. saAmfCSTypeName = A-2
  100. saAmfCsiDependencies {
  101. saAmfCSIDependency = WL1-1
  102. }
  103. safCSIAttr = attr1 {
  104. val1
  105. val2
  106. }
  107. safCSIAttr = good_health_limit {
  108. 10
  109. }
  110. }
  111. safRankedSu = SU_1 {
  112. saAmfRank = 1
  113. }
  114. safRankedSu = SU_2 {
  115. saAmfRank = 2
  116. }
  117. }
  118. safSi = WL2 {
  119. saAmfSINumCSIs=1
  120. safCsi = WL2-1 {
  121. saAmfCSTypeName = A-1
  122. }
  123. safCsi = WL2-2 {
  124. saAmfCSTypeName = A-2
  125. }
  126. safDepend = WL1 {
  127. saAmfToleranceTime=10000
  128. }
  129. }
  130. safCSType = A-1 {
  131. safAmfCSAttrName = attr1
  132. safAmfCSAttrName = good_health_limit
  133. }
  134. safCSType = A-2 {
  135. }
  136. }
  137. }