• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

UltraMonkey-L7 V3(multi-thread implementation)


Commit MetaInfo

修訂26e16112b77d2e9b14084427d6c6079a8a285f57 (tree)
時間2013-03-18 17:16:34
作者Hiroaki Nakano <nakano.hiroaki@nttc...>
CommiterHiroaki Nakano

Log Message

#30846 Pacemaker用crmサンプルファイルinstall

Pacemakerで冗長化構成を構築するときに参考になる
crmファイルのサンプルをinstallする。

Signed-off-by: Hiroaki Nakano <nakano.hiroaki@nttcom.co.jp>

Change Summary

差異

--- a/doc/heartbeat-ra/Makefile.am
+++ b/doc/heartbeat-ra/Makefile.am
@@ -8,6 +8,7 @@ install:
88 $(INSTALL) -b -m 644 -D ./ha.cf $(HB2_TEMPDIR)/ha.cf
99 $(INSTALL) -b -m 600 -D ./authkeys $(HB2_TEMPDIR)/authkeys
1010 $(INSTALL) -b -m 600 -D ./cib.xml-sample $(HB2_TEMPDIR)/cib.xml
11+ $(INSTALL) -b -m 600 -D ./sample.crm $(HB2_TEMPDIR)/sample.crm
1112 $(INSTALL) -b -m 755 -D ./L7vsd $(HB2_TEMPDIR)/L7vsd
1213 $(INSTALL) -b -m 755 -D ./L7directord $(HB2_TEMPDIR)/L7directord
1314 $(INSTALL) -b -m 755 -D ./VIPcheck $(HB2_TEMPDIR)/VIPcheck
--- /dev/null
+++ b/doc/heartbeat-ra/sample.crm
@@ -0,0 +1,167 @@
1+### Cluster Option ###
2+property no-quorum-policy="ignore" \
3+ stonith-enabled="false" \
4+ startup-fencing="false" \
5+ stonith-timeout="750s" \
6+ crmd-transition-delay=2s
7+
8+### Resource Defaults ###
9+rsc_defaults resource-stickiness="INFINITY" \
10+ migration-threshold="1"
11+
12+### Clone Configuration ###
13+clone clnL7vsd \
14+ prmL7vsd
15+
16+clone clnPingd \
17+ prmPingd
18+
19+clone clnDiskd \
20+ prmDiskd
21+
22+### Group Configuration ###
23+group grpUltraMonkey \
24+ prmVIPcheck \
25+ prmVIP \
26+ prmL7directord
27+#group grpStonith1 \
28+# prmStonith1-1 \
29+# prmStonith1-2 \
30+# prmStonith1-3
31+
32+#group grpStonith2 \
33+# prmStonith2-1 \
34+# prmStonith2-2 \
35+# prmStonith2-3
36+
37+### Primitive Configuration ###
38+primitive prmVIPcheck ocf:heartbeat:VIPcheck \
39+ params \
40+ target_ip="MODIFY_TARGET_VIP" \
41+ count="1" \
42+ wait="10" \
43+ op start interval="0s" timeout="90s" on-fail="restart" start_delay="4s"
44+
45+primitive prmVIP ocf:heartbeat:IPaddr2 \
46+ params \
47+ ip="MODIFY_VIP_IP" \
48+ nic="MODIFY_VIP_NIC" \
49+ cidr_netmask="MODIFY_VIP_NETMASK" \
50+ op start interval="0s" timeout="60s" on-fail="restart" \
51+ op monitor interval="10s" timeout="60s" on-fail="restart" \
52+ op stop interval="0s" timeout="60s" on-fail="block"
53+
54+primitive prmL7directord ocf:heartbeat:L7directord \
55+ op start interval="0s" timeout="60s" on-fail="restart" \
56+ op monitor interval="10s" timeout="60s" on-fail="restart" \
57+ op stop interval="0s" timeout="60s" on-fail="block"
58+
59+primitive prmL7vsd ocf:heartbeat:L7vsd \
60+ op start interval="0s" timeout="60s" on-fail="restart" \
61+ op monitor interval="10s" timeout="60s" on-fail="restart" \
62+ op stop interval="0s" timeout="60s" on-fail="block"
63+
64+primitive prmPingd ocf:pacemaker:pingd \
65+ params \
66+ name="default_ping_set" \
67+ host_list="MODIFY_PING_TARGET_IP" \
68+ multiplier="100" \
69+ op start interval="0s" timeout="60s" on-fail="restart" \
70+ op monitor interval="10s" timeout="60s" on-fail="restart" \
71+ op stop interval="0s" timeout="60s" on-fail="ignore"
72+
73+primitive prmDiskd ocf:pacemaker:diskd \
74+ params \
75+ name="diskcheck_status_internal" \
76+ device="MODIFY_TARGET_DISK_DEV" \
77+ interval="10" \
78+ op start interval="0s" timeout="60s" on-fail="restart" \
79+ op monitor interval="10s" timeout="60s" on-fail="restart" \
80+ op stop interval="0s" timeout="60s" on-fail="ignore"
81+
82+#primitive prmStonith1-1 stonith:external/stonith-helper \
83+# params \
84+# priority="1" \
85+# stonith-timeout="40s" \
86+# hostlist="MODIFY_PRYMARY_HOST" \
87+# 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+
93+#primitive prmStonith1-2 stonith:external/ipmi \
94+# params \
95+# passwd="MODIFY_IPMI_PASSWORD" \
96+# ipaddr="MODIFY_IPMI_IP" \
97+# priority="2" \
98+# userid="MODIFY_IPMI_USER" \
99+# hostname="MODIFY_PRYMARY_HOST" \
100+# 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"
114+
115+#primitive prmStonith2-1 stonith:external/stonith-helper \
116+# params \
117+# priority="1" \
118+# stonith-timeout="40s" \
119+# hostlist="MODIFY_SECONDARY_HOST" \
120+# 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"
125+
126+#primitive prmStonith2-2 stonith:external/ipmi \
127+# params \
128+# passwd="MODIFY_IPMI_PASSWORD" \
129+# ipaddr="MODIFY_IPMI_IP" \
130+# priority="2" \
131+# userid="MODIFY_IPMI_USER" \
132+# hostname="MODIFY_SECONDARY_HOST" \
133+# interface="MODIFY_IPMI_INTERFACE" \
134+# stonith-timeout="60s" \
135+# op start interval="0s" timeout="60s" \
136+# op monitor interval="3600s" timeout="60s" \
137+# op stop interval="0s" timeout="60s"
138+
139+#primitive prmStonith2-3 stonith:meatware \
140+# params \
141+# priority="3" \
142+# stonith-timeout="600s" \
143+# 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"
147+
148+### Resource Location ###
149+location rsc_location-grpUltraMonkey-1 grpUltraMonkey \
150+ rule 200: #uname eq MODIFY_PRYMARY_HOST \
151+ rule 100: #uname eq MODIFY_SECONDARY_HOST \
152+ rule -INFINITY: not_defined default_ping_set or default_ping_set lt 100 \
153+ rule -INFINITY: not_defined diskcheck_status_internal or diskcheck_status_internal eq ERROR
154+#location rsc_location-grpStonith1-2 grpStonith1 \
155+# rule -INFINITY: #uname eq MODIFY_PRYMARY_HOST
156+#location rsc_location-grpStonith2-3 grpStonith2 \
157+# rule -INFINITY: #uname eq MODIFY_SECONDARY_HOST
158+
159+### Resource Colocation ###
160+colocation rsc_colocation-grpUltraMonkey-clnPingd-1 INFINITY: grpUltraMonkey clnPingd
161+colocation rsc_colocation-grpUltraMonkey-clnDiskd-2 INFINITY: grpUltraMonkey clnDiskd
162+colocation rsc_colocation-grpUltraMonkey-clnL7vsd-3 INFINITY: grpUltraMonkey clnL7vsd
163+
164+### Resource Order ###
165+order rsc_order-clnPingd-grpUltraMonkey-1 0: clnPingd grpUltraMonkey symmetrical=false
166+order rsc_order-clnDiskd-grpUltraMonkey-2 0: clnDiskd grpUltraMonkey symmetrical=false
167+order rsc_order-clnL7vsd-grpUltraMonkey-3 0: clnL7vsd grpUltraMonkey symmetrical=true