In testing I've found that as long as Apache binds to 0.0.0.0, any IP takeovers 
will work smoothly without Apache restarts.

There are three  reasons why I want the Apache resource to run all the time on 
both nodes:
1. We monitor the Apache services on these two hosts with a service monitoring 
app that can't be told "only one of these two must be running".
2. We may someday put sites on these Apache servers that are not bound to the 
cluster in any way and we don't want the fact that it's a passive node turning 
off Apache.
3. For some reason, it takes a good 5-10 seconds for Apache to start after a 
failover occurs.  The IPAddr2 and MailTo resources start within 2 seconds, but 
Apache takes longer.  (This may be a separate issue that I can solve some other 
way, but a "hot spare" kind of scenario seemed to be the shortest distance from 
here to there.)

I did glimpse a bit of the active/active IP discussion, but I don't think I'm 
quite ready to venture there yet...

Does it have discussion of how to make the Apache resource active on both nodes 
simultaneously that I should look over?

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.


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Dimitri Maziuk
Sent: Tuesday, August 21, 2012 12:00 PM
To: [email protected]
Subject: Re: [Linux-HA] Leave Apache running on both active and passive nodes?

On 08/21/2012 12:48 PM, Jon Heese wrote:

> 
> 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.

Why? Most daemons do not re-bind when another ip address is added to the
system. So once your ip's migrated you need to restart apache (kill -HUP
may do it, I'm not sure).

In general if you want to do that you also want to clone the ip --
currently being discussed in the other thread, take a look.

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- 
https://console.mxlogic.com/redir/?5OWbP5PhOOrppjvKesjdw0y2Ii769kJTEdCXYyMCY-ehojd79KVI-k6MYKjQKgGT2TQ1hYGjFNYEdxVsDL00jr3zX9J5BxZYsDtMsrsd79I5-Aq83iS5pgr3OUn43iWq80H-Cvd40wJJyvCy2bs8iwhd45o6y0xmpcQgrqszfCy3o86y1rqkApYQggGxZ2hKvxYYmfSk3q9J4SOOC_ssyyriTzw

_______________________________________________
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