[Pacemaker] Failover configuration with apache

Uwe Schmeling u.schmeling at online.de
Fri Feb 11 03:19:11 EST 2011


On 02/09/11 22:44, Raoul Bhatia [IPAX] wrote:
> hi,
>
> On 09.02.2011 08:43, u.schmeling at online.de wrote:
>> I don't use ocf:heartbeat:apache because of my special configuration:
>>
>> apache is active on both nodes, the access is via haproxy, we have an
>> url http://localhost:80 which accesses the local apache via ssl and
>> delivers a static page (returning a fix text).
>
> ok - i do not fully understand what you're exactly doing - but
> as ocf:heartbeat:apache is highly configurable (binary, port, config
> file, testurl, test regex, envfiles, statusurl, etc.),
> it should be possible to use it.
>
> if not, we should probably adapt the ra ;)
>
>> So if we switch over, the stop action does an apache_force_reload and
>> sets the current node to standby. The new active node performs an
>> apache_start (to be sure apache is running) and a force_reload to
>>
>> establish the virtual ips. /etc/init.d/apache2 without any parameter
>> gives no output. The output of file -k /etc/init.d/apache2 gives
>> /etc/init.d/apache2: ASCII English text
>
> it seems like /etc/init.d/apache2 is not an lsb compatibly init script.
> can you post the script to a pastebin service and/or verify if it
> is actually doing what you expect it to do (read: check against [1])
>
> cheers,
> raoul
>
> [1]
> http://www.clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/ap-lsb.html
>
>
> _______________________________________________
> 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
Hi Raoul,

thanks for the hints. Created a new script from scratch based on the
Dummy heartbeat script which is working.

regards Uwe




More information about the Pacemaker mailing list