[Pacemaker] Single Node Cluster and Resource Management

Andrew Beekhof andrew at beekhof.net
Mon Jan 17 09:30:40 UTC 2011


On Sat, Dec 11, 2010 at 11:11 AM,  <ant1spamz-pacemaker at yahoo.com> wrote:
>
>> now when I simulate a network failure (iptables -s web1.testcluster -j
>> DROP)
>> apache is correctly failed.  When pingd re-establishes connection the
>> Apache constraint must be reversed and Apache simply started.
>> how do I achieve the automatic resource restart?
>
> it will happen whenever the pingd resource redetects network
> connectivity (up to 15s later) based on your monitor interval
>
>>> So this means setting my timeout detection to a higher value in order to
>>> give the Apache resource enough time to start?

No.
We wont try to start apache until pingd establishes the connectivity metrics.
Apache timeouts have nothing to do with this.

I also recommend using ocf:pacemaker:ping not ocf:pacemaker:pingd

>>> Would imagine similar to this: In first stages, my heartbeat would hard
>>> reset the server because Corosync didnt start in time.
>
>
>> Could my monitor constraint on the apache resource be in conflict with
>> pingd?
>
> shouldn't be, did you wait long enough for connectivity to return and
> the next monitor op to happen?
>
> Above?
>
> what would be a good time out 60s? (light starting, typical php box with
> mysql backend)
>
> Conf File  - Because my mouse scroller doesn't like to be used for walls of
> text, SysAdmins need only SHIFT + PgUp or PgDown
>
>> ================
>> conf
>> ====
>> primitive pingdnet1 ocf:pacemaker:pingd params host_list=192.168.0.69
>> name=pingdnet1 op monitor interval=15s timeout=5s
>> primitive pingdnet2 ocf:pacemaker:pingd params host_list=192.168.0.68
>> name=pingdnet2 op monitor interval=15s timeout=5s
>> primitive apache lsb::httpd op monitor interval=15s
>> location apache-ping-constraint apache rule -inf: not_defined pingdnet1 or
>> pingdnet1 lte 0
>> location apache-ping-constraint2 apache rule -inf: not_defined pingdnet2
>> or
>> pingdnet2 lte 0
>> order ping-then-apache inf: pingdnet1 pingdnet2 apache
>> ===============================================
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs:
> http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>
>



More information about the Pacemaker mailing list