On Wed, Oct 31, 2012 at 2:10 AM, Nuno Pratas <[email protected]> wrote:
> Hello,
>
> I am trying to run  a two cluster node (active/passive) with apache and a
> ruby application on it. It is supposed that when one of the nodes fails the
> other start serving our application.
> When i issue a crm node standby or online on one of my cluster nodes the
> apache resource starts flapping and only starts on the other
> node after several failed counts.
>
>
> My configuration is very simple, actually.
>
> nodes:
> harvest1
> harvest2
>
> resoureces:
> app_ip and apacheha
>
> crm configure:
> node harvest1 \
>         attributes standby="off"
> node harvest2 \
>         attributes standby="off"
> primitive apacheha lsb:apache2 \
>         operations $id="apacheha-operations" \
>         op monitor interval="15"
> primitive app_ip ocf:heartbeat:IPaddr2 \
>         params ip="192.168.200.249" nic="eth0" cidr_netmask="24" \
>         operations $id="app_ip-operations" \
>         op monitor start-delay="0" interval="15"
> colocation apacheha-app_ip inf: app_ip apacheha
> property $id="cib-bootstrap-options" \
>         expected-quorum-votes="2" \
>         stonith-enabled="false" \
>         dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b" \
>         no-quorum-policy="ignore" \
>         cluster-infrastructure="openais" \
>         last-lrm-refresh="1351608723"
>
>
> For same reason i cant understand why pacemaker made harvest2
> the preferred node and i don't understand why apache flaps all the time
> when switching from one node to the other.
> Can someone help me?

Not without logs.
Presumably apache is failing and the "flapping" is Pacemaker trying to
recover it.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to