Patch to remove segfault on the exiting of a service.
[openais.git] / conf / amf.conf
blobec3220b672a467041e39767d2607527d50f6c48f
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
8 safAmfCluster = TEST_CLUSTER {
9         saAmfClusterStartupTimeout=3000
10         safAmfNode = AMF1 {
11                 saAmfNodeSuFailOverProb=2000
12                 saAmfNodeSuFailoverMax=2
13                 saAmfNodeClmNode=p01
14         }
15         safAmfNode = AMF2 {
16                 saAmfNodeSuFailOverProb=2000
17                 saAmfNodeSuFailoverMax=2
18                 saAmfNodeClmNode=p02
19         }
20         safApp = APP-1 {
21                 safSg = RAID {
22                         saAmfSGRedundancyModel=nplusm   
23                         saAmfSGNumPrefActiveSUs=1
24                         saAmfSGMaxActiveSIsperSUs=2
25                         saAmfSGNumPrefStandbySUs=1
26                         saAmfSGMaxStandbySIsperSUs=2
27                         saAmfSGCompRestartProb=100000
28                         saAmfSGCompRestartMax=1
29                         saAmfSGSuRestartProb=20000      
30                         saAmfSGSuRestartMax=1
31                         saAmfSGAutoAdjustProb=5000
32                         safSu = SERVICE_X_1 {
33                                 saAmfSUHostedByNode=AMF1
34                                 saAmfSUNumComponents=1
35                                 safComp = A {
36                                         saAmfCompCategory=sa_aware
37                                         saAmfCompCapability=x_active_or_y_standby
38                                         saAmfCompNumMaxActiveCsi=1
39                                         saAmfCompNumMaxStandbyCsi=1
40                                         saAmfCompDefaultClcCliTimeout = 500
41                                         saAmfCompDefaultCallbackTimeOut = 500
42                                         saAmfCompInstantiateCmd = /tmp/aistest/clc_cli_script
43                                         saAmfCompInstantiateCmdArgv= instantiate /tmp/aistest/testamf1
44                                         saAmfCompTerminateCmd = /tmp/aistest/clc_cli_script
45                                         saAmfCompTerminateCmdArgv = terminate
46                                         saAmfCompCleanupCmd = /tmp/aistest/clc_cli_script
47                                         saAmfCompCleanupCmdArgv = cleanup
48                                         saAmfCompCsTypes {
49                                                 A
50                                         }
51                                         saAmfCompCmdEnv {
52                                                 var1=val1
53                                                 var2=val2
54                                         }
55                                         saAmfCompRecoveryOnError=component_restart
56                                         safHealthcheckKey = amfInvoked {
57                                                 saAmfHealthcheckPeriod = 4000
58                                                 saAmfHealthcheckMaxDuration = 350
59                                         }
60                                         safHealthcheckKey = compInvoked {
61                                                 saAmfHealthcheckPeriod = 5000
62                                         }
63                                 }
64                                 safComp = B {
65                                         saAmfCompCategory=sa_aware
66                                         saAmfCompCapability=x_active_or_y_standby
67                                         saAmfCompNumMaxActiveCsi=1
68                                         saAmfCompNumMaxStandbyCsi=1
69                                         saAmfCompDefaultClcCliTimeout = 500
70                                         saAmfCompDefaultCallbackTimeOut = 500
71                                         saAmfCompInstantiateCmd = /tmp/aistest/clc_cli_script
72                                         saAmfCompInstantiateCmdArgv= instantiate /tmp/aistest/testamf1
73                                         saAmfCompTerminateCmd = /tmp/aistest/clc_cli_script
74                                         saAmfCompTerminateCmdArgv = terminate
75                                         saAmfCompCleanupCmd = /tmp/aistest/clc_cli_script
76                                         saAmfCompCleanupCmdArgv = cleanup
77                                         saAmfCompCsTypes {
78                                                 B
79                                         }
80                                         saAmfCompCmdEnv {
81                                                 var1=val1
82                                                 var2=val2
83                                         }
84                                         saAmfCompRecoveryOnError=component_restart
85                                         safHealthcheckKey = amfInvoked {
86                                                 saAmfHealthcheckPeriod = 4000
87                                                 saAmfHealthcheckMaxDuration = 350
88                                         }
89                                         safHealthcheckKey = compInvoked {
90                                                 saAmfHealthcheckPeriod = 5000
91                                         }
92                                 }
93                         }
94                         safSu = SERVICE_X_2 {
95                                 clccli_path=/tmp/aistest
96                                 saAmfSUHostedByNode=AMF2
97                                 saAmfSUNumComponents=1
98                                 safComp = A {
99                                         saAmfCompCategory=sa_aware
100                                         saAmfCompCapability=x_active_or_y_standby
101                                         saAmfCompNumMaxActiveCsi=1
102                                         saAmfCompNumMaxStandbyCsi=1
103                                         saAmfCompDefaultClcCliTimeout = 500
104                                         saAmfCompDefaultCallbackTimeOut = 500
105                                         saAmfCompInstantiateCmd = clc_cli_script
106                                         saAmfCompInstantiateCmdArgv= instantiate
107                                         saAmfCompTerminateCmd = clc_cli_script
108                                         saAmfCompTerminateCmdArgv = terminate
109                                         saAmfCompCleanupCmd = clc_cli_script
110                                         saAmfCompCleanupCmdArgv = cleanup
111                                         saAmfCompCsTypes {
112                                                 A
113                                         }
114                                         saAmfCompCmdEnv {
115                                                 COMP_BINARY_PATH=/tmp/aistest
116                                                 COMP_BINARY_NAME=testamf1
117                                                 var1=val1
118                                                 var2=val2
119                                         }
120                                         saAmfCompRecoveryOnError=component_restart
121                                         safHealthcheckKey = amfInvoked {
122                                                 saAmfHealthcheckPeriod = 4000
123                                                 saAmfHealthcheckMaxDuration = 350
124                                         }
125                                         safHealthcheckKey = compInvoked {
126                                                 saAmfHealthcheckPeriod = 5000
127                                         }
128                                 }
129                                 safComp = B {
130                                         saAmfCompCategory=sa_aware
131                                         saAmfCompCapability=x_active_or_y_standby
132                                         saAmfCompNumMaxActiveCsi=1
133                                         saAmfCompNumMaxStandbyCsi=1
134                                         saAmfCompDefaultClcCliTimeout = 500
135                                         saAmfCompDefaultCallbackTimeOut = 500
136                                         saAmfCompInstantiateCmd = /tmp/aistest/clc_cli_script
137                                         saAmfCompInstantiateCmdArgv= instantiate /tmp/aistest/testamf1
138                                         saAmfCompTerminateCmd = /tmp/aistest/clc_cli_script
139                                         saAmfCompTerminateCmdArgv = terminate
140                                         saAmfCompCleanupCmd = /tmp/aistest/clc_cli_script
141                                         saAmfCompCleanupCmdArgv = cleanup
142                                         saAmfCompCsTypes {
143                                                 B
144                                         }
145                                         saAmfCompCmdEnv {
146                                                 var1=val1
147                                                 var2=val2
148                                         }
149                                         saAmfCompRecoveryOnError=component_restart
150                                         safHealthcheckKey = amfInvoked {
151                                                 saAmfHealthcheckPeriod = 4000
152                                                 saAmfHealthcheckMaxDuration = 350
153                                         }
154                                         safHealthcheckKey = compInvoked {
155                                                 saAmfHealthcheckPeriod = 5000
156                                         }
157                                 }
158                         }
159                 }
160                 safSi = WL1 {
161                         saAmfSINumCSIs=2
162                         safCsi = WL1-1 {
163                                 saAmfCSTypeName = A
164                         }
165                         safCsi = WL1-2 {
166                                 saAmfCSTypeName = B
167                                 safCSIAttr = attr1 {
168                                         val1
169                                         val2
170                                 }
171                                 safCSIAttr = good_health_limit {
172                                         100000
173                                 }
174                         }
175                 }
176                 safSi = WL2 {
177                         saAmfSINumCSIs=2
178                         safCsi = WL2-1 {
179                                 saAmfCSTypeName = A
180                         }
181                         safCsi = WL2-2 {
182                                 saAmfCSTypeName = B
183                                 safCSIAttr = attr1 {
184                                         val1
185                                         val2
186                                 }
187                                 safCSIAttr = good_health_limit {
188                                         100000
189                                 }
190                         }
191                 }
192                 safCSType = A {
193                         safAmfCSAttrName = attr1
194                         safAmfCSAttrName = good_health_limit
195                 }
196                 safCSType = B {
197                 }
198         }