[Linux-HA] Re: active/active/passive w/2 apaches seemingly clobbering each other on 3rd node ?

Dejan Muhamedagic dejanmm at fastmail.fm
Mon Sep 4 04:26:02 MDT 2006


On Fri, Sep 01, 2006 at 04:09:26PM -0600, Alan Robertson wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Andrew Beekhof wrote:
> > On 8/30/06, Dejan Muhamedagic <dejanmm at fastmail.fm> wrote:
> >> On Wed, Aug 30, 2006 at 09:32:40AM +0200, Andrew Beekhof wrote:
> >> > On 8/29/06, Karl Hanzel <karl at ucar.edu> wrote:
> >> > >> ...
> >> > >
> >> > >To my modestly trained eyes, it seems like the core of the problem
> >> is that
> >> > >a generic /var/run/httpd.pid is created for any/all httpd
> >> processes, so
> >> > >there's no sense of "instances".
> >> >
> >> > You might want to log a bugzilla entry
> >> > (http://www.osdl.org/developer_bugzilla/buglist.cgi) for this and
> >> > include the information you found.
> >>
> >> I don't think that this is a heartbeat bug. Isn't the PID file
> >> location defined in the apache configuration files? This has
> >> nothing to do with heartbeat. You should configure all your apache
> >> instances with different PID file locations.
> > 
> > Can it be set on the command line?  If so, it would make more sense if
> > it was an RA option (which could then be used when it checks status)

Looks like any option can be set on the command line. From the
apache's man page:

       -C directive
                   Process the configuration directive before reading  config
                   files.

       -c directive
                   Process  the  configuration  directive after reading config
                   files.

At any rate, whoever is setting up the cluster must take care of
the pid option.

I think we need more documentation on the apache resource and in
particular about how to run more than one apache in the cluster.

Cheers,

Dejan

> 
> The status/monitor looks in the config file to check the status.  This
> is all taken care of.
> 
> The problem is that the config files probably didn't set different pid
> files - then - http://linux-ha.org/BadThingsWillHappen ;-)
> 
> /me adds a note about this to his slides for Nuremberg ;-)
>
> 
> 
> 
> - --
>     Alan Robertson <alanr at unix.sh>
> 
> "Openness is the foundation and preservative of friendship...  Let me
> claim from you at all times your undisguised opinions." - William
> Wilberforce
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
> Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
> 
> iD8DBQFE+K+WNkLhYXF6ZA4RAtrRAJ9SCe6usTbcXn8ZhF38fjQxxMLz5gCeL8+w
> Nm0ZGLIeefUl9KJApXLjTe0=
> =TUYt
> -----END PGP SIGNATURE-----


More information about the Linux-HA mailing list