UltraMonkey-L7 V3(multi-thread implementation)
Revision | 5e9c4a68ee73d49bd931b6d36dbaf9fd87c1289b (tree) |
---|---|
Zeit | 2015-10-22 17:09:28 |
Autor | Michiro Hibari <l05102@shib...> |
Commiter | Michiro Hibari |
CRMファイルのサンプルをPM1.1系に対応
@@ -1,9 +1,7 @@ | ||
1 | 1 | ### Cluster Option ### |
2 | 2 | property no-quorum-policy="ignore" \ |
3 | 3 | stonith-enabled="false" \ |
4 | - startup-fencing="false" \ | |
5 | - stonith-timeout="750s" \ | |
6 | - crmd-transition-delay=2s | |
4 | + startup-fencing="false" | |
7 | 5 | |
8 | 6 | ### Resource Defaults ### |
9 | 7 | rsc_defaults resource-stickiness="INFINITY" \ |
@@ -26,13 +24,16 @@ group grpUltraMonkey \ | ||
26 | 24 | prmL7directord |
27 | 25 | #group grpStonith1 \ |
28 | 26 | # prmStonith1-1 \ |
29 | -# prmStonith1-2 \ | |
30 | -# prmStonith1-3 | |
27 | +# prmStonith1-2 | |
31 | 28 | |
32 | 29 | #group grpStonith2 \ |
33 | 30 | # prmStonith2-1 \ |
34 | -# prmStonith2-2 \ | |
35 | -# prmStonith2-3 | |
31 | +# prmStonith2-2 | |
32 | + | |
33 | +### Fencing Topology ### | |
34 | +#fencing_topology \ | |
35 | +# MODIFY_PRYMARY_HOST: prmStonith1-1 prmStonith1-2 \ | |
36 | +# MODIFY_SECONDARY_HOST: prmStonith2-1 prmStonith2-2 | |
36 | 37 | |
37 | 38 | ### Primitive Configuration ### |
38 | 39 | primitive prmVIPcheck ocf:heartbeat:VIPcheck \ |
@@ -61,11 +62,14 @@ primitive prmL7vsd ocf:heartbeat:L7vsd \ | ||
61 | 62 | op monitor interval="10s" timeout="60s" on-fail="restart" \ |
62 | 63 | op stop interval="0s" timeout="60s" on-fail="block" |
63 | 64 | |
64 | -primitive prmPingd ocf:pacemaker:pingd \ | |
65 | +primitive prmPing ocf:pacemaker:ping \ | |
65 | 66 | params \ |
66 | 67 | name="default_ping_set" \ |
67 | 68 | host_list="MODIFY_PING_TARGET_IP" \ |
68 | 69 | multiplier="100" \ |
70 | + attempts="2" \ | |
71 | + timeout="2" \ | |
72 | + debug="true" \ | |
69 | 73 | op start interval="0s" timeout="60s" on-fail="restart" \ |
70 | 74 | op monitor interval="10s" timeout="60s" on-fail="restart" \ |
71 | 75 | op stop interval="0s" timeout="60s" on-fail="ignore" |
@@ -81,58 +85,47 @@ primitive prmDiskd ocf:pacemaker:diskd \ | ||
81 | 85 | |
82 | 86 | #primitive prmStonith1-1 stonith:external/stonith-helper \ |
83 | 87 | # params \ |
84 | -# priority="1" \ | |
88 | +# pcmk_reboot_retries="1" \ | |
85 | 89 | # stonith-timeout="40s" \ |
86 | 90 | # hostlist="MODIFY_PRYMARY_HOST" \ |
87 | 91 | # dead_check_target="MODIFY_TARGET_IP MODIFY_TARGET_IP ..." \ |
88 | -# standby_check_command="/usr/sbin/crm_resource -r prmVIP -W | grep -q `hostname`" \ | |
89 | -# op start interval="0s" timeout="60s" \ | |
90 | -# op monitor interval="10s" timeout="60s" \ | |
91 | -# op stop interval="0s" timeout="60s" | |
92 | +# standby_check_command="/usr/sbin/crm_resource -r prmL7directord -W | grep -q `hostname`" \ | |
93 | +# run_online_check="yes" \ | |
94 | +# op start interval="0s" timeout="60s" on-fail="restart" \ | |
95 | +# op stop interval="0s" timeout="60s" on-fail="ignore" | |
92 | 96 | |
93 | 97 | #primitive prmStonith1-2 stonith:external/ipmi \ |
94 | 98 | # params \ |
99 | +# pcmk_reboot_timeout="60s" \ | |
95 | 100 | # passwd="MODIFY_IPMI_PASSWORD" \ |
96 | 101 | # ipaddr="MODIFY_IPMI_IP" \ |
97 | -# priority="2" \ | |
98 | 102 | # userid="MODIFY_IPMI_USER" \ |
99 | 103 | # hostname="MODIFY_PRYMARY_HOST" \ |
100 | 104 | # interface="MODIFY_IPMI_INTERFACE" \ |
101 | -# stonith-timeout="60s" \ | |
102 | -# op start interval="0s" timeout="60s" \ | |
103 | -# op monitor interval="3600s" timeout="60s" \ | |
104 | -# op stop interval="0s" timeout="60s" | |
105 | - | |
106 | -#primitive prmStonith1-3 stonith:meatware \ | |
107 | -# params \ | |
108 | -# priority="3" \ | |
109 | -# stonith-timeout="600s" \ | |
110 | -# hostlist="MODIFY_PRYMARY_HOST" \ | |
111 | -# op start interval="0s" timeout="60s" \ | |
112 | -# op monitor interval="3600s" timeout="60s" \ | |
113 | -# op stop interval="0s" timeout="60s" | |
105 | +# op start interval="0s" timeout="60s" on-fail="restart" \ | |
106 | +# op monitor interval="3600s" timeout="60s" on-fail="restart" \ | |
107 | +# op stop interval="0s" timeout="60s" on-fail="ignore" | |
114 | 108 | |
115 | 109 | #primitive prmStonith2-1 stonith:external/stonith-helper \ |
116 | 110 | # params \ |
117 | -# priority="1" \ | |
111 | +# pcmk_reboot_retries="1" \ | |
118 | 112 | # stonith-timeout="40s" \ |
119 | 113 | # hostlist="MODIFY_SECONDARY_HOST" \ |
120 | 114 | # dead_check_target="MODIFY_TARGET_IP MODIFY_TARGET_IP ..." \ |
121 | -# standby_check_command="/usr/sbin/crm_resource -r prmVIP -W | grep -q `hostname`" \ | |
122 | -# op start interval="0s" timeout="60s" \ | |
123 | -# op monitor interval="10s" timeout="60s" \ | |
124 | -# op stop interval="0s" timeout="60s" | |
115 | +# standby_check_command="/usr/sbin/crm_resource -r prmL7directord -W | grep -q `hostname`" \ | |
116 | +# run_online_check="yes" \ | |
117 | +# op start interval="0s" timeout="60s" on-fail="restart" \ | |
118 | +# op stop interval="0s" timeout="60s" on-fail="ignore" | |
125 | 119 | |
126 | 120 | #primitive prmStonith2-2 stonith:external/ipmi \ |
127 | 121 | # params \ |
122 | +# pcmk_reboot_timeout="60s" \ | |
128 | 123 | # passwd="MODIFY_IPMI_PASSWORD" \ |
129 | 124 | # ipaddr="MODIFY_IPMI_IP" \ |
130 | -# priority="2" \ | |
131 | 125 | # userid="MODIFY_IPMI_USER" \ |
132 | 126 | # hostname="MODIFY_SECONDARY_HOST" \ |
133 | 127 | # interface="MODIFY_IPMI_INTERFACE" \ |
134 | -# stonith-timeout="60s" \ | |
135 | -# op start interval="0s" timeout="60s" \ | |
128 | +# op start interval="0s" timeout="60s" onfail\ | |
136 | 129 | # op monitor interval="3600s" timeout="60s" \ |
137 | 130 | # op stop interval="0s" timeout="60s" |
138 | 131 |
@@ -141,9 +134,9 @@ primitive prmDiskd ocf:pacemaker:diskd \ | ||
141 | 134 | # priority="3" \ |
142 | 135 | # stonith-timeout="600s" \ |
143 | 136 | # hostlist="MODIFY_SECONDARY_HOST" \ |
144 | -# op start interval="0s" timeout="60s" \ | |
145 | -# op monitor interval="3600s" timeout="60s" \ | |
146 | -# op stop interval="0s" timeout="60s" | |
137 | +# op start interval="0s" timeout="60s" on-fail="restart" \ | |
138 | +# op monitor interval="3600s" timeout="60s" on-fail="restart" \ | |
139 | +# op stop interval="0s" timeout="60s" on-fail="ignore" | |
147 | 140 | |
148 | 141 | ### Resource Location ### |
149 | 142 | location rsc_location-grpUltraMonkey-1 grpUltraMonkey \ |