UltraMonkey-L7 V3(multi-thread implementation)
Revision | 7c7c32d0790a0ec4395a673c8cb702a1ba42a0fa (tree) |
---|---|
Zeit | 2013-06-13 15:36:56 |
Autor | Hiroaki Nakano <nakano.hiroaki@nttc...> |
Commiter | Hiroaki Nakano |
For merge v3.1.0
Signed-off-by: Hiroaki Nakano <nakano.hiroaki@nttcom.co.jp>
@@ -37,34 +37,34 @@ group grpUltraMonkey \ | ||
37 | 37 | ### Primitive Configuration ### |
38 | 38 | primitive prmVIPcheck ocf:heartbeat:VIPcheck \ |
39 | 39 | params \ |
40 | - target_ip="" \ | |
40 | + target_ip="MODIFY_TARGET_VIP" \ | |
41 | 41 | count="1" \ |
42 | 42 | wait="10" \ |
43 | - op start interval="0s" timeout="90s" on-fail="restart" start_delay="4s“ | |
43 | + op start interval="0s" timeout="90s" on-fail="restart" start_delay="4s" | |
44 | 44 | |
45 | -primitive prmVIP1 ocf:heartbeat:IPaddr2 \ | |
45 | +primitive prmVIP ocf:heartbeat:IPaddr2 \ | |
46 | 46 | params \ |
47 | - ip="" \ | |
48 | - nic="" \ | |
49 | - cidr_netmask="" \ | |
47 | + ip="MODIFY_VIP_IP" \ | |
48 | + nic="MODIFY_VIP_NIC" \ | |
49 | + cidr_netmask="MODIFY_VIP_NETMASK" \ | |
50 | 50 | op start interval="0s" timeout="60s" on-fail="restart" \ |
51 | 51 | op monitor interval="10s" timeout="60s" on-fail="restart" \ |
52 | - op stop interval="0s" timeout="60s" on-fail="fence" | |
52 | + op stop interval="0s" timeout="60s" on-fail="block" | |
53 | 53 | |
54 | 54 | primitive prmL7directord ocf:heartbeat:L7directord \ |
55 | 55 | op start interval="0s" timeout="60s" on-fail="restart" \ |
56 | 56 | op monitor interval="10s" timeout="60s" on-fail="restart" \ |
57 | - op stop interval="0s" timeout="60s" on-fail="fence" | |
57 | + op stop interval="0s" timeout="60s" on-fail="block" | |
58 | 58 | |
59 | 59 | primitive prmL7vsd ocf:heartbeat:L7vsd \ |
60 | 60 | op start interval="0s" timeout="60s" on-fail="restart" \ |
61 | 61 | op monitor interval="10s" timeout="60s" on-fail="restart" \ |
62 | - op stop interval="0s" timeout="60s" on-fail="fence" | |
62 | + op stop interval="0s" timeout="60s" on-fail="block" | |
63 | 63 | |
64 | 64 | primitive prmPingd ocf:pacemaker:pingd \ |
65 | 65 | params \ |
66 | 66 | name="default_ping_set" \ |
67 | - host_list="" \ | |
67 | + host_list="MODIFY_PING_TARGET_IP" \ | |
68 | 68 | multiplier="100" \ |
69 | 69 | op start interval="0s" timeout="60s" on-fail="restart" \ |
70 | 70 | op monitor interval="10s" timeout="60s" on-fail="restart" \ |
@@ -73,7 +73,7 @@ primitive prmPingd ocf:pacemaker:pingd \ | ||
73 | 73 | primitive prmDiskd ocf:pacemaker:diskd \ |
74 | 74 | params \ |
75 | 75 | name="diskcheck_status_internal" \ |
76 | - device="" \ | |
76 | + device="MODIFY_TARGET_DISK_DEV" \ | |
77 | 77 | interval="10" \ |
78 | 78 | op start interval="0s" timeout="60s" on-fail="restart" \ |
79 | 79 | op monitor interval="10s" timeout="60s" on-fail="restart" \ |
@@ -83,8 +83,8 @@ primitive prmDiskd ocf:pacemaker:diskd \ | ||
83 | 83 | # params \ |
84 | 84 | # priority="1" \ |
85 | 85 | # stonith-timeout="40s" \ |
86 | -# hostlist="" \ | |
87 | -# dead_check_target="" \ | |
86 | +# hostlist="MODIFY_PRYMARY_HOST" \ | |
87 | +# dead_check_target="MODIFY_TARGET_IP MODIFY_TARGET_IP ..." \ | |
88 | 88 | # standby_check_command="/usr/sbin/crm_resource -r prmVIP -W | grep -q `hostname`" \ |
89 | 89 | # op start interval="0s" timeout="60s" \ |
90 | 90 | # op monitor interval="10s" timeout="60s" \ |
@@ -92,12 +92,12 @@ primitive prmDiskd ocf:pacemaker:diskd \ | ||
92 | 92 | |
93 | 93 | #primitive prmStonith1-2 stonith:external/ipmi \ |
94 | 94 | # params \ |
95 | -# passwd="" \ | |
96 | -# ipaddr="" \ | |
95 | +# passwd="MODIFY_IPMI_PASSWORD" \ | |
96 | +# ipaddr="MODIFY_IPMI_IP" \ | |
97 | 97 | # priority="2" \ |
98 | -# userid="" \ | |
99 | -# hostname="" \ | |
100 | -# interface="" \ | |
98 | +# userid="MODIFY_IPMI_USER" \ | |
99 | +# hostname="MODIFY_PRYMARY_HOST" \ | |
100 | +# interface="MODIFY_IPMI_INTERFACE" \ | |
101 | 101 | # stonith-timeout="60s" \ |
102 | 102 | # op start interval="0s" timeout="60s" \ |
103 | 103 | # op monitor interval="3600s" timeout="60s" \ |
@@ -107,7 +107,7 @@ primitive prmDiskd ocf:pacemaker:diskd \ | ||
107 | 107 | # params \ |
108 | 108 | # priority="3" \ |
109 | 109 | # stonith-timeout="600s" \ |
110 | -# hostlist="" \ | |
110 | +# hostlist="MODIFY_PRYMARY_HOST" \ | |
111 | 111 | # op start interval="0s" timeout="60s" \ |
112 | 112 | # op monitor interval="3600s" timeout="60s" \ |
113 | 113 | # op stop interval="0s" timeout="60s" |
@@ -116,8 +116,8 @@ primitive prmDiskd ocf:pacemaker:diskd \ | ||
116 | 116 | # params \ |
117 | 117 | # priority="1" \ |
118 | 118 | # stonith-timeout="40s" \ |
119 | -# hostlist="" \ | |
120 | -# dead_check_target="" \ | |
119 | +# hostlist="MODIFY_SECONDARY_HOST" \ | |
120 | +# dead_check_target="MODIFY_TARGET_IP MODIFY_TARGET_IP ..." \ | |
121 | 121 | # standby_check_command="/usr/sbin/crm_resource -r prmVIP -W | grep -q `hostname`" \ |
122 | 122 | # op start interval="0s" timeout="60s" \ |
123 | 123 | # op monitor interval="10s" timeout="60s" \ |
@@ -125,12 +125,12 @@ primitive prmDiskd ocf:pacemaker:diskd \ | ||
125 | 125 | |
126 | 126 | #primitive prmStonith2-2 stonith:external/ipmi \ |
127 | 127 | # params \ |
128 | -# passwd="" \ | |
129 | -# ipaddr="" \ | |
128 | +# passwd="MODIFY_IPMI_PASSWORD" \ | |
129 | +# ipaddr="MODIFY_IPMI_IP" \ | |
130 | 130 | # priority="2" \ |
131 | -# userid="" \ | |
132 | -# hostname="" \ | |
133 | -# interface="" \ | |
131 | +# userid="MODIFY_IPMI_USER" \ | |
132 | +# hostname="MODIFY_SECONDARY_HOST" \ | |
133 | +# interface="MODIFY_IPMI_INTERFACE" \ | |
134 | 134 | # stonith-timeout="60s" \ |
135 | 135 | # op start interval="0s" timeout="60s" \ |
136 | 136 | # op monitor interval="3600s" timeout="60s" \ |
@@ -140,21 +140,21 @@ primitive prmDiskd ocf:pacemaker:diskd \ | ||
140 | 140 | # params \ |
141 | 141 | # priority="3" \ |
142 | 142 | # stonith-timeout="600s" \ |
143 | -# hostlist="" \ | |
143 | +# hostlist="MODIFY_SECONDARY_HOST" \ | |
144 | 144 | # op start interval="0s" timeout="60s" \ |
145 | 145 | # op monitor interval="3600s" timeout="60s" \ |
146 | 146 | # op stop interval="0s" timeout="60s" |
147 | 147 | |
148 | 148 | ### Resource Location ### |
149 | 149 | location rsc_location-grpUltraMonkey-1 grpUltraMonkey \ |
150 | - rule 200: #uname eq \ | |
151 | - rule 100: #uname eq \ | |
150 | + rule 200: #uname eq MODIFY_PRYMARY_HOST \ | |
151 | + rule 100: #uname eq MODIFY_SECONDARY_HOST \ | |
152 | 152 | rule -INFINITY: not_defined default_ping_set or default_ping_set lt 100 \ |
153 | 153 | rule -INFINITY: not_defined diskcheck_status_internal or diskcheck_status_internal eq ERROR |
154 | 154 | #location rsc_location-grpStonith1-2 grpStonith1 \ |
155 | -# rule -INFINITY: #uname eq | |
155 | +# rule -INFINITY: #uname eq MODIFY_PRYMARY_HOST | |
156 | 156 | #location rsc_location-grpStonith2-3 grpStonith2 \ |
157 | -# rule -INFINITY: #uname eq | |
157 | +# rule -INFINITY: #uname eq MODIFY_SECONDARY_HOST | |
158 | 158 | |
159 | 159 | ### Resource Colocation ### |
160 | 160 | colocation rsc_colocation-grpUltraMonkey-clnPingd-1 INFINITY: grpUltraMonkey clnPingd |