Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

Apache resource

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


cyruspy at gmail

Aug 7, 2007, 6:46 AM

Post #1 of 15 (1288 views)
Permalink
Apache resource

Hi,

Is there any advantage in using an apache resource of
class="heartbeat" or the one from /etc/init.d/apache2 ?

Ciro
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


lars at forseth

Aug 7, 2007, 8:47 AM

Post #2 of 15 (1237 views)
Permalink
Re: Apache resource [In reply to]

Do you mean the heartbeat resource agent or the OCF resource agent for
apache?

OCF resource agents have the advantage of offering a monitoring
option... details here: http://www.linux-ha.org/OCFResourceAgent


greets Lars.


Ciro Iriarte schrieb:
> Hi,
>
> Is there any advantage in using an apache resource of
> class="heartbeat" or the one from /etc/init.d/apache2 ?
>
> Ciro
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


cyruspy at gmail

Aug 7, 2007, 11:01 PM

Post #3 of 15 (1235 views)
Permalink
Re: Apache resource [In reply to]

2007/8/7, Lars Daniel Forseth <lars [at] forseth>:
> Do you mean the heartbeat resource agent or the OCF resource agent for
> apache?
>
> OCF resource agents have the advantage of offering a monitoring
> option... details here: http://www.linux-ha.org/OCFResourceAgent
>
>
> greets Lars.
>
Well, now that you mention it, there are 3 scripts to chose from

/etc/init.d/apache2
/etc/ha.d/resource.d/apache
/usr/lib/ocf/resource.d/heartbeat/apache

In our case, apache config is pretty static, wouldn't the
"/etc/init.d/apache2 status" be enought to monitor it?, i hadn't seen
(in our case) a situation where apache would be running but i couldn't
handle a request (what seems to check the monitor action from
/usr/lib/ocf/resource.d/heartbeat/apache)

Ciro
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


beekhof at gmail

Aug 8, 2007, 12:13 AM

Post #4 of 15 (1233 views)
Permalink
Re: Apache resource [In reply to]

On 8/8/07, Ciro Iriarte <cyruspy [at] gmail> wrote:
> 2007/8/7, Lars Daniel Forseth <lars [at] forseth>:
> > Do you mean the heartbeat resource agent or the OCF resource agent for
> > apache?
> >
> > OCF resource agents have the advantage of offering a monitoring
> > option... details here: http://www.linux-ha.org/OCFResourceAgent
> >
> >
> > greets Lars.
> >
> Well, now that you mention it, there are 3 scripts to chose from
>
> /etc/init.d/apache2

generally less flexible (cant pass parameters)
also, depending on your system it may not be truly LSB compliant (and
thus cant be used with heartbeat)

> /etc/ha.d/resource.d/apache

this is included for v1 compatibility only (most scripts in this
location are simply wrappers for OCF scripts)

> /usr/lib/ocf/resource.d/heartbeat/apache

definitely the most preferred option

>
> In our case, apache config is pretty static, wouldn't the
> "/etc/init.d/apache2 status" be enought to monitor it?, i hadn't seen
> (in our case) a situation where apache would be running but i couldn't
> handle a request (what seems to check the monitor action from
> /usr/lib/ocf/resource.d/heartbeat/apache)
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


cyruspy at gmail

Aug 8, 2007, 12:22 AM

Post #5 of 15 (1234 views)
Permalink
Re: Apache resource [In reply to]

2007/8/8, Andrew Beekhof <beekhof [at] gmail>:
> On 8/8/07, Ciro Iriarte <cyruspy [at] gmail> wrote:
> > 2007/8/7, Lars Daniel Forseth <lars [at] forseth>:
> > > Do you mean the heartbeat resource agent or the OCF resource agent for
> > > apache?
> > >
> > > OCF resource agents have the advantage of offering a monitoring
> > > option... details here: http://www.linux-ha.org/OCFResourceAgent
> > >
> > >
> > > greets Lars.
> > >
> > Well, now that you mention it, there are 3 scripts to chose from
> >
> > /etc/init.d/apache2
>
> generally less flexible (cant pass parameters)

What kind of parameter would i need starting apache with the stock
script?, it already knows where are the config files.

> also, depending on your system it may not be truly LSB compliant (and
> thus cant be used with heartbeat)

It's stock apache2 from SLES9SP3, as far as i know, SUSE people try
their best to follow LSB

>
> > /etc/ha.d/resource.d/apache
>
> this is included for v1 compatibility only (most scripts in this
> location are simply wrappers for OCF scripts)

Interesting

>
> > /usr/lib/ocf/resource.d/heartbeat/apache
>
> definitely the most preferred option

I'll check it out (i'm still more confortable with the stock script :p)

>
> >
> > In our case, apache config is pretty static, wouldn't the
> > "/etc/init.d/apache2 status" be enought to monitor it?, i hadn't seen
> > (in our case) a situation where apache would be running but it couldn't
> > handle a request (what seems to check the monitor action from
> > /usr/lib/ocf/resource.d/heartbeat/apache)
> _______________________________________________

Thanks!

Ciro
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


beekhof at gmail

Aug 8, 2007, 12:30 AM

Post #6 of 15 (1235 views)
Permalink
Re: Apache resource [In reply to]

On 8/8/07, Ciro Iriarte <cyruspy [at] gmail> wrote:
> 2007/8/8, Andrew Beekhof <beekhof [at] gmail>:
> > On 8/8/07, Ciro Iriarte <cyruspy [at] gmail> wrote:
> > > /etc/init.d/apache2
> >
> > generally less flexible (cant pass parameters)
>
> What kind of parameter would i need starting apache with the stock
> script?, it already knows where are the config files.

If you had multiple instances
But it was a general statement regarding LSB scripts - not specific to apache

> > also, depending on your system it may not be truly LSB compliant (and
> > thus cant be used with heartbeat)
>
> It's stock apache2 from SLES9SP3, as far as i know, SUSE people try
> their best to follow LSB

In recent times, Debian seems to be the worst for this (based on
people reporting problems).
SUSE is generally ok. I dont have much experience with other distros.
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


cyruspy at gmail

Aug 8, 2007, 12:40 AM

Post #7 of 15 (1234 views)
Permalink
Re: Apache resource [In reply to]

2007/8/8, Andrew Beekhof <beekhof [at] gmail>:
> On 8/8/07, Ciro Iriarte <cyruspy [at] gmail> wrote:
> > 2007/8/8, Andrew Beekhof <beekhof [at] gmail>:
> > > On 8/8/07, Ciro Iriarte <cyruspy [at] gmail> wrote:
> > > > /etc/init.d/apache2
> > >
> > > generally less flexible (cant pass parameters)
> >
> > What kind of parameter would i need starting apache with the stock
> > script?, it already knows where are the config files.
>
> If you had multiple instances
> But it was a general statement regarding LSB scripts - not specific to apache
>
> > > also, depending on your system it may not be truly LSB compliant (and
> > > thus cant be used with heartbeat)
> >
> > It's stock apache2 from SLES9SP3, as far as i know, SUSE people try
> > their best to follow LSB
>
> In recent times, Debian seems to be the worst for this (based on
> people reporting problems).

Haven't played with debian in a while :D

> SUSE is generally ok. I dont have much experience with other distros.

So, basically, in my specific case, not running more than one
instance, with a pretty much static configuration and a decent lsb
script, would be fine to use it instead of the OCF one?

PS: Offtopic, given the package at BuildService didn't move from
2.1.0, means that it's still safe to use them?

Ciro
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


beekhof at gmail

Aug 8, 2007, 12:52 AM

Post #8 of 15 (1240 views)
Permalink
Re: Apache resource [In reply to]

On 8/8/07, Ciro Iriarte <cyruspy [at] gmail> wrote:
> 2007/8/8, Andrew Beekhof <beekhof [at] gmail>:
> > On 8/8/07, Ciro Iriarte <cyruspy [at] gmail> wrote:
> > > 2007/8/8, Andrew Beekhof <beekhof [at] gmail>:
> > > > On 8/8/07, Ciro Iriarte <cyruspy [at] gmail> wrote:
> > > > > /etc/init.d/apache2
> > > >
> > > > generally less flexible (cant pass parameters)
> > >
> > > What kind of parameter would i need starting apache with the stock
> > > script?, it already knows where are the config files.
> >
> > If you had multiple instances
> > But it was a general statement regarding LSB scripts - not specific to apache
> >
> > > > also, depending on your system it may not be truly LSB compliant (and
> > > > thus cant be used with heartbeat)
> > >
> > > It's stock apache2 from SLES9SP3, as far as i know, SUSE people try
> > > their best to follow LSB
> >
> > In recent times, Debian seems to be the worst for this (based on
> > people reporting problems).
>
> Haven't played with debian in a while :D
>
> > SUSE is generally ok. I dont have much experience with other distros.
>
> So, basically, in my specific case, not running more than one
> instance, with a pretty much static configuration and a decent lsb
> script, would be fine to use it instead of the OCF one?

yeah. should be fine. though i dont know how the status commands compare.

> PS: Offtopic, given the package at BuildService didn't move from
> 2.1.0, means that it's still safe to use them?

Nod.
I'll be refreshing them in the next day or so.
I'd have done so last week but a number of important bugs came to my
attention and I wanted to fix them first.
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


lars at forseth

Aug 8, 2007, 12:52 AM

Post #9 of 15 (1242 views)
Permalink
Re: Apache resource [In reply to]

well, I recommend sticking to the OCF in any case and as far as I
understood Andrew's previous mails re recommends it too.

Using the lsb script should work though...


To make it short: your choice! ;)

greets Lars.


> So, basically, in my specific case, not running more than one
> instance, with a pretty much static configuration and a decent lsb
> script, would be fine to use it instead of the OCF one?

[...]

> Ciro
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


lars at forseth

Aug 8, 2007, 12:58 AM

Post #10 of 15 (1240 views)
Permalink
Re: Apache resource [In reply to]

crap, Andrew was faster... ;)



Lars Daniel Forseth schrieb:
> well, I recommend sticking to the OCF in any case and as far as I
> understood Andrew's previous mails re recommends it too.
>
> Using the lsb script should work though...
>
>
> To make it short: your choice! ;)
>
> greets Lars.
>
>
>> So, basically, in my specific case, not running more than one
>> instance, with a pretty much static configuration and a decent lsb
>> script, would be fine to use it instead of the OCF one?
>
> [...]
>
>> Ciro
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


cyruspy at gmail

Aug 8, 2007, 1:00 AM

Post #11 of 15 (1234 views)
Permalink
Re: Apache resource [In reply to]

2007/8/8, Andrew Beekhof <beekhof [at] gmail>:
> On 8/8/07, Ciro Iriarte <cyruspy [at] gmail> wrote:
> > 2007/8/8, Andrew Beekhof <beekhof [at] gmail>:
> > > On 8/8/07, Ciro Iriarte <cyruspy [at] gmail> wrote:
> > > > 2007/8/8, Andrew Beekhof <beekhof [at] gmail>:
> > > > > On 8/8/07, Ciro Iriarte <cyruspy [at] gmail> wrote:
> > > > > > /etc/init.d/apache2
> > > > >
> > > > > generally less flexible (cant pass parameters)
> > > >
> > > > What kind of parameter would i need starting apache with the stock
> > > > script?, it already knows where are the config files.
> > >
> > > If you had multiple instances
> > > But it was a general statement regarding LSB scripts - not specific to apache
> > >
> > > > > also, depending on your system it may not be truly LSB compliant (and
> > > > > thus cant be used with heartbeat)
> > > >
> > > > It's stock apache2 from SLES9SP3, as far as i know, SUSE people try
> > > > their best to follow LSB
> > >
> > > In recent times, Debian seems to be the worst for this (based on
> > > people reporting problems).
> >
> > Haven't played with debian in a while :D
> >
> > > SUSE is generally ok. I dont have much experience with other distros.
> >
> > So, basically, in my specific case, not running more than one
> > instance, with a pretty much static configuration and a decent lsb
> > script, would be fine to use it instead of the OCF one?
>
> yeah. should be fine. though i dont know how the status commands compare.
>
> > PS: Offtopic, given the package at BuildService didn't move from
> > 2.1.0, means that it's still safe to use them?
>
> Nod.
> I'll be refreshing them in the next day or so.
> I'd have done so last week but a number of important bugs came to my
> attention and I wanted to fix them first.
I thought so, i preffered to wait after 2.1.1 release problems. I'll
be waiting..

Thanks!

Ciro
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


cyruspy at gmail

Aug 8, 2007, 1:02 AM

Post #12 of 15 (1232 views)
Permalink
Re: Apache resource [In reply to]

2007/8/8, Lars Daniel Forseth <lars [at] forseth>:
> well, I recommend sticking to the OCF in any case and as far as I
> understood Andrew's previous mails re recommends it too.
>
> Using the lsb script should work though...
>

Already have other resource running on a lsb script (nagios) and works fine

>
> To make it short: your choice! ;)
>
> greets Lars.

Ok! :D

Ciro
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


achim.hensel at cosinex

Aug 8, 2007, 1:32 AM

Post #13 of 15 (1237 views)
Permalink
Re: Apache resource [In reply to]

I would strongly recommend the OCF script (but I have not that much
knowledge of HA).

Due to different system configurations, once I used the static one (with
a v2 HA-system and a v1 config )and got into troubles.

If you have a slightly dynamic situation, the static version might not
be sufficiant.
The referred "slightly dynamic situation" in our case was a dynamic
activation and deactivation of interfaces, which should be done before
start apache resp. after stop apache.
Here the OCF script would ensure that the environment is correctly
established.

Sincerily,
Achim Hensel
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


dejanmm at fastmail

Aug 8, 2007, 7:42 AM

Post #14 of 15 (1219 views)
Permalink
Re: Apache resource [In reply to]

On Wed, Aug 08, 2007 at 04:02:01AM -0400, Ciro Iriarte wrote:
> 2007/8/8, Lars Daniel Forseth <lars [at] forseth>:
> > well, I recommend sticking to the OCF in any case and as far as I
> > understood Andrew's previous mails re recommends it too.
> >
> > Using the lsb script should work though...
> >
>
> Already have other resource running on a lsb script (nagios) and works fine

These are the reasons why you'd want to go with the resource
agents distributed with Heartbeat (in particular the OCF class):

- designed to work with Heartbeat
- better support
- better configuration
- typically better monitoring capabilities (for example, the
apache RA tests that the server is really working instead of
just checking if the process exists)

> >
> > To make it short: your choice! ;)

Right. But bear in mind that you should still prefer the OCF
resource agents. Go with LSB agents only in case there's no
corresponding OCF agent.

> >
> > greets Lars.
>
> Ok! :D
>
> Ciro
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


cyruspy at gmail

Aug 8, 2007, 7:53 AM

Post #15 of 15 (1224 views)
Permalink
Re: Re: Apache resource [In reply to]

2007/8/8, Achim Hensel <achim.hensel [at] cosinex>:
> I would strongly recommend the OCF script (but I have not that much
> knowledge of HA).
>
> Due to different system configurations, once I used the static one (with
> a v2 HA-system and a v1 config )and got into troubles.
>
> If you have a slightly dynamic situation, the static version might not
> be sufficiant.
> The referred "slightly dynamic situation" in our case was a dynamic
> activation and deactivation of interfaces, which should be done before
> start apache resp. after stop apache.

You can do that with order and colocation restrictions, whether you
use a ocf or lsb resource

> Here the OCF script would ensure that the environment is correctly
> established.
>
> Sincerily,
> Achim Hensel

Ciro
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.