Hi all,
I have a Heartbeat/Pacemaker cluster for the purposes of HA between two reverse
proxy servers (both running Ubuntu 10.04 x64, Heartbeat 3.0.3-1ubuntu1, and
Pacemaker 1.0.8+hg15494-2ubuntu2), with the following config running:
node $id="0b89373b-9df4-4276-bad1-fd56b6d6c37b" proxy-dmz1 \
attributes standby="off"
node $id="bbfab80c-4c98-4625-8b7e-902131f8e4e2" proxy-dmz2 \
attributes standby="off"
primitive res_IPaddr2_ip ocf:heartbeat:IPaddr2 \
params ip="192.168.202.55" \
operations $id="res_IPaddr2_ip-operations" \
op start interval="0" timeout="20" \
op stop interval="0" timeout="20" \
op monitor interval="10" timeout="20" start-delay="0" \
meta is-managed="true"
primitive res_MailTo_ha_alert ocf:heartbeat:MailTo \
params email="[email protected]" subject="Proxy Cluster" \
operations $id="res_MailTo_ha_alert-operations" \
op start interval="0" timeout="10" \
op stop interval="0" timeout="10" \
op monitor interval="10" timeout="10" start-delay="0"
primitive res_apache2_apache lsb:apache2 \
operations $id="res_apache2_apache-operations" \
op start interval="0" timeout="15" \
op stop interval="0" timeout="15" \
op monitor interval="5" timeout="15" start-delay="15"
colocation col_res_MailTo_ha_alert_res_IPaddr2_ip inf: res_MailTo_ha_alert
res_IPaddr2_ip
colocation col_res_apache2_apache_res_IPaddr2_ip inf: res_apache2_apache
res_IPaddr2_ip
property $id="cib-bootstrap-options" \
stonith-enabled="false" \
dc-version="1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd" \
cluster-recheck-interval="30" \
cluster-infrastructure="Heartbeat" \
last-lrm-refresh="1345566669"
rsc_defaults $id="rsc-options" \
resource-stickiness="2" \
failure-timeout="30"
So you can see that I've got three resources:
- Shared IP address
- Apache2 LSB
- Mail alert for cluster failovers
Everything's working properly on failover and all that, but I'd like for the
apache2 service to remain running on both nodes all the time, but for a
failover to be triggered if it goes down on the active node.
1a. Can I accomplish that using the LSB Apache2 resource type?
1b. If so, how?
2a. If not, can I accomplish it using the OCF Apache resource type?
2b. If so, do I need mod_status enabled for the failure detection to work?
I did try to enable the OCF Apache resource before settling for the LSB
version, but everything blew up (even though I set the conf file and apache
binary properly first), so I had to drop back (this is unfortunately a
production system).
Thanks in advance for any help!
Jon Heese
Systems Administrator
Weld County Computer Services
ACS Government Systems, Inc., A Xerox Company
tel: 970-304-6570 x2552
[email protected]
Confidentiality Notice: This electronic transmission and any attached documents
or other writings are intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. If you have received this communication in
error, please immediately notify sender by return e-mail and destroy the
communication. Any disclosure, copying, distribution or the taking of any
action concerning the contents of this communication or any attachments by
anyone other than the named recipient is strictly prohibited.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems