amf.conf 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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_AMF {
  8. saAmfClusterStartupTimeout=3000
  9. safAmfNode = NODE1 {
  10. saAmfNodeSuFailOverProb=1000
  11. saAmfNodeSuFailoverMax=1
  12. saAmfNodeClmNode=pollux
  13. }
  14. safAmfNode = NODE2 {
  15. saAmfNodeSuFailOverProb=1000
  16. saAmfNodeSuFailoverMax=1
  17. saAmfNodeClmNode=castor
  18. }
  19. safApp = APP-1 {
  20. safSg = RAID {
  21. saAmfSGRedundancyModel=nplusm
  22. saAmfSGNumPrefActiveSUs=1
  23. saAmfSGMaxActiveSIsperSUs=2
  24. saAmfSGNumPrefStandbySUs=1
  25. saAmfSGMaxStandbySIsperSUs=2
  26. saAmfSGCompRestartProb=100000
  27. saAmfSGCompRestartMax=1
  28. saAmfSGSuRestartProb=20000
  29. saAmfSGSuRestartMax=1
  30. saAmfSGAutoAdjustProb=5000
  31. safSu = SERVICE_X_1 {
  32. saAmfSUHostedByNode=NODE1
  33. saAmfSUNumComponents=1
  34. safComp = A {
  35. saAmfCompCategory=sa_aware
  36. saAmfCompCapability=x_active_or_y_standby
  37. saAmfCompNumMaxActiveCsi=1
  38. saAmfCompNumMaxStandbyCsi=1
  39. saAmfCompDefaultClcCliTimeout = 500
  40. saAmfCompDefaultCallbackTimeOut = 500
  41. saAmfCompInstantiateCmd = /root/openais/trunk/test/clc_cli_script
  42. saAmfCompInstantiateCmdArgv= instantiate /root/openais/trunk/test/test_amf
  43. saAmfCompTerminateCmd = /root/openais/trunk/test/clc_cli_script
  44. saAmfCompTerminateCmdArgv = terminate
  45. saAmfCompCleanupCmd = /root/openais/trunk/test/clc_cli_script
  46. saAmfCompCleanupCmdArgv = cleanup
  47. saAmfCompCsTypes {
  48. A
  49. }
  50. saAmfCompCmdEnv {
  51. COMP_BINARY_PATH=/root/openais/trunk/test/
  52. COMP_BINARY_NAME=test_amf
  53. }
  54. saAmfCompRecoveryOnError=component_restart
  55. safHealthcheckKey = takeoverInvoked {
  56. saAmfHealthcheckPeriod = 1000
  57. saAmfHealthcheckMaxDuration = 350
  58. }
  59. }
  60. }
  61. safSu = SERVICE_X_2 {
  62. clccli_path=/root/openais/trunk/test/
  63. saAmfSUHostedByNode=NODE2
  64. saAmfSUNumComponents=1
  65. safComp = A {
  66. saAmfCompCategory=sa_aware
  67. saAmfCompCapability=x_active_or_y_standby
  68. saAmfCompNumMaxActiveCsi=1
  69. saAmfCompNumMaxStandbyCsi=1
  70. saAmfCompDefaultClcCliTimeout = 500
  71. saAmfCompDefaultCallbackTimeOut = 500
  72. saAmfCompInstantiateCmd = clc_cli_script
  73. saAmfCompInstantiateCmdArgv= instantiate
  74. saAmfCompTerminateCmd = clc_cli_script
  75. saAmfCompTerminateCmdArgv = terminate
  76. saAmfCompCleanupCmd = clc_cli_script
  77. saAmfCompCleanupCmdArgv = cleanup
  78. saAmfCompCsTypes {
  79. A
  80. }
  81. saAmfCompCmdEnv {
  82. COMP_BINARY_PATH=/root/openais/trunk/test/
  83. COMP_BINARY_NAME=test_amf
  84. }
  85. saAmfCompRecoveryOnError=component_restart
  86. safHealthcheckKey = takeoverInvoked {
  87. saAmfHealthcheckPeriod = 1000
  88. saAmfHealthcheckMaxDuration = 350
  89. }
  90. }
  91. }
  92. }
  93. safSi = WL1 {
  94. saAmfSINumCSIs=2
  95. safCsi = WL1-1 {
  96. saAmfCSTypeName = A
  97. safCSIAttr = interface {
  98. eth0:0
  99. }
  100. safCSIAttr = ip_addr {
  101. 10.0.0.100
  102. }
  103. }
  104. }
  105. safCSType = A {
  106. safAmfCSAttrName = interface
  107. safAmfCSAttrName = ip_addr
  108. }
  109. }
  110. }