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

Mailing List Archive: Linux-HA: Dev

How HA monitors services

 

 

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


tanveer.chowdhury at gmail

Nov 11, 2008, 11:47 PM

Post #1 of 8 (2503 views)
Permalink
How HA monitors services

Hello all,

I have installed HA in RHEL5 machines and its working fine when
someone pulls out NIC card cable or did manual network service stop.

In haresources file I added httpd and mysqld service both to monitor.
Now for testing when I manually use kill command to kill all mysql
process for example the passice machine doesn't take over while I just
killed mysql process of primary. Then what is actually HA monitoring
only the Network connectivity?

thanks in advance.
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


achapela.rexistros at gmail

Nov 12, 2008, 3:43 AM

Post #2 of 8 (2382 views)
Permalink
Re: How HA monitors services [In reply to]

Tanveer Chowdhury escribió:
> Hello all,
>
> I have installed HA in RHEL5 machines and its working fine when
> someone pulls out NIC card cable or did manual network service stop.
>
> In haresources file I added httpd and mysqld service both to monitor.
> Now for testing when I manually use kill command to kill all mysql
> process for example the passice machine doesn't take over while I just
> killed mysql process of primary. Then what is actually HA monitoring
> only the Network connectivity?
>
No, Hearbeat monitors resources as you want. The problem could be in the
mysql resource agent monitoring section. It could be testing only if pid
file exists. You need to look the RA to know if it is doing well things.

> thanks in advance.
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>
>

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


dejanmm at fastmail

Nov 12, 2008, 4:36 AM

Post #3 of 8 (2380 views)
Permalink
Re: How HA monitors services [In reply to]

Hi,

On Wed, Nov 12, 2008 at 12:43:01PM +0100, Adrian Chapela wrote:
> Tanveer Chowdhury escribi?:
>> Hello all,
>>
>> I have installed HA in RHEL5 machines and its working fine when
>> someone pulls out NIC card cable or did manual network service stop.
>>
>> In haresources file I added httpd and mysqld service both to monitor.
>> Now for testing when I manually use kill command to kill all mysql
>> process for example the passice machine doesn't take over while I just
>> killed mysql process of primary. Then what is actually HA monitoring
>> only the Network connectivity?
>>
> No, Hearbeat monitors resources as you want. The problem could be in the
> mysql resource agent monitoring section. It could be testing only if pid
> file exists. You need to look the RA to know if it is doing well things.

Looks like this is a v1/haresources configuration. There's no
monitoring in v1.

Thanks,

Dejan

>
>> thanks in advance.
>> _______________________________________________________
>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
>>
>>
>
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


tanveer.chowdhury at gmail

Nov 17, 2008, 1:10 AM

Post #4 of 8 (2357 views)
Permalink
Re: How HA monitors services [In reply to]

Thanks.
No, I am using heartbeat-2.1.3 rpm files from centos-5.2 repository.
Just putting the resources in haresources is not enough I think. Do it
have anything to do with CRM, as I have no idea about that.


On Wed, Nov 12, 2008 at 6:36 PM, Dejan Muhamedagic <dejanmm [at] fastmail> wrote:
> Hi,
>
> On Wed, Nov 12, 2008 at 12:43:01PM +0100, Adrian Chapela wrote:
>> Tanveer Chowdhury escribi?:
>>> Hello all,
>>>
>>> I have installed HA in RHEL5 machines and its working fine when
>>> someone pulls out NIC card cable or did manual network service stop.
>>>
>>> In haresources file I added httpd and mysqld service both to monitor.
>>> Now for testing when I manually use kill command to kill all mysql
>>> process for example the passice machine doesn't take over while I just
>>> killed mysql process of primary. Then what is actually HA monitoring
>>> only the Network connectivity?
>>>
>> No, Hearbeat monitors resources as you want. The problem could be in the
>> mysql resource agent monitoring section. It could be testing only if pid
>> file exists. You need to look the RA to know if it is doing well things.
>
> Looks like this is a v1/haresources configuration. There's no
> monitoring in v1.
>
> Thanks,
>
> Dejan
>
>>
>>> thanks in advance.
>>> _______________________________________________________
>>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>> Home Page: http://linux-ha.org/
>>>
>>>
>>
>> _______________________________________________________
>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


beekhof at gmail

Nov 17, 2008, 2:26 AM

Post #5 of 8 (2359 views)
Permalink
Re: How HA monitors services [In reply to]

On Mon, Nov 17, 2008 at 10:10, Tanveer Chowdhury
<tanveer.chowdhury [at] gmail> wrote:
> Thanks.
> No, I am using heartbeat-2.1.3 rpm files from centos-5.2 repository.

You're using v2 of the software, but in V1 mode.
And as dejan said, V1 can't do that. You need to look into the crm/pacemaker.

> Just putting the resources in haresources is not enough I think. Do it
> have anything to do with CRM, as I have no idea about that.
>
>
> On Wed, Nov 12, 2008 at 6:36 PM, Dejan Muhamedagic <dejanmm [at] fastmail> wrote:
>> Hi,
>>
>> On Wed, Nov 12, 2008 at 12:43:01PM +0100, Adrian Chapela wrote:
>>> Tanveer Chowdhury escribi?:
>>>> Hello all,
>>>>
>>>> I have installed HA in RHEL5 machines and its working fine when
>>>> someone pulls out NIC card cable or did manual network service stop.
>>>>
>>>> In haresources file I added httpd and mysqld service both to monitor.
>>>> Now for testing when I manually use kill command to kill all mysql
>>>> process for example the passice machine doesn't take over while I just
>>>> killed mysql process of primary. Then what is actually HA monitoring
>>>> only the Network connectivity?
>>>>
>>> No, Hearbeat monitors resources as you want. The problem could be in the
>>> mysql resource agent monitoring section. It could be testing only if pid
>>> file exists. You need to look the RA to know if it is doing well things.
>>
>> Looks like this is a v1/haresources configuration. There's no
>> monitoring in v1.
>>
>> Thanks,
>>
>> Dejan
>>
>>>
>>>> thanks in advance.
>>>> _______________________________________________________
>>>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>>> Home Page: http://linux-ha.org/
>>>>
>>>>
>>>
>>> _______________________________________________________
>>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>> Home Page: http://linux-ha.org/
>> _______________________________________________________
>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
>>
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


tanveer.chowdhury at gmail

Nov 19, 2008, 1:49 AM

Post #6 of 8 (2332 views)
Permalink
Re: How HA monitors services [In reply to]

Hi thanks.

Is there any well documentation on configuring Heartbeat 2 with apache
& mysql as resource to monitor using two node active passive system?

In the website the documents are scattered. I couldn't make a complete
through list of steps from there.

Thanks in advance.

On Mon, Nov 17, 2008 at 4:26 PM, Andrew Beekhof <beekhof [at] gmail> wrote:
> On Mon, Nov 17, 2008 at 10:10, Tanveer Chowdhury
> <tanveer.chowdhury [at] gmail> wrote:
>> Thanks.
>> No, I am using heartbeat-2.1.3 rpm files from centos-5.2 repository.
>
> You're using v2 of the software, but in V1 mode.
> And as dejan said, V1 can't do that. You need to look into the crm/pacemaker.
>
>> Just putting the resources in haresources is not enough I think. Do it
>> have anything to do with CRM, as I have no idea about that.
>>
>>
>> On Wed, Nov 12, 2008 at 6:36 PM, Dejan Muhamedagic <dejanmm [at] fastmail> wrote:
>>> Hi,
>>>
>>> On Wed, Nov 12, 2008 at 12:43:01PM +0100, Adrian Chapela wrote:
>>>> Tanveer Chowdhury escribi?:
>>>>> Hello all,
>>>>>
>>>>> I have installed HA in RHEL5 machines and its working fine when
>>>>> someone pulls out NIC card cable or did manual network service stop.
>>>>>
>>>>> In haresources file I added httpd and mysqld service both to monitor.
>>>>> Now for testing when I manually use kill command to kill all mysql
>>>>> process for example the passice machine doesn't take over while I just
>>>>> killed mysql process of primary. Then what is actually HA monitoring
>>>>> only the Network connectivity?
>>>>>
>>>> No, Hearbeat monitors resources as you want. The problem could be in the
>>>> mysql resource agent monitoring section. It could be testing only if pid
>>>> file exists. You need to look the RA to know if it is doing well things.
>>>
>>> Looks like this is a v1/haresources configuration. There's no
>>> monitoring in v1.
>>>
>>> Thanks,
>>>
>>> Dejan
>>>
>>>>
>>>>> thanks in advance.
>>>>> _______________________________________________________
>>>>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>>>> Home Page: http://linux-ha.org/
>>>>>
>>>>>
>>>>
>>>> _______________________________________________________
>>>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>>> Home Page: http://linux-ha.org/
>>> _______________________________________________________
>>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>> Home Page: http://linux-ha.org/
>>>
>> _______________________________________________________
>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
>>
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


beekhof at gmail

Nov 19, 2008, 3:24 AM

Post #7 of 8 (2337 views)
Permalink
Re: How HA monitors services [In reply to]

On Wed, Nov 19, 2008 at 10:49, Tanveer Chowdhury
<tanveer.chowdhury [at] gmail> wrote:
> Hi thanks.
>
> Is there any well documentation on configuring Heartbeat 2 with apache
> & mysql as resource to monitor using two node active passive system?
>
> In the website the documents are scattered. I couldn't make a complete
> through list of steps from there.

Its not specific to those two services, but if you search google for
"configuration explained pdf", you should find something helpful.

>
> Thanks in advance.
>
> On Mon, Nov 17, 2008 at 4:26 PM, Andrew Beekhof <beekhof [at] gmail> wrote:
>> On Mon, Nov 17, 2008 at 10:10, Tanveer Chowdhury
>> <tanveer.chowdhury [at] gmail> wrote:
>>> Thanks.
>>> No, I am using heartbeat-2.1.3 rpm files from centos-5.2 repository.
>>
>> You're using v2 of the software, but in V1 mode.
>> And as dejan said, V1 can't do that. You need to look into the crm/pacemaker.
>>
>>> Just putting the resources in haresources is not enough I think. Do it
>>> have anything to do with CRM, as I have no idea about that.
>>>
>>>
>>> On Wed, Nov 12, 2008 at 6:36 PM, Dejan Muhamedagic <dejanmm [at] fastmail> wrote:
>>>> Hi,
>>>>
>>>> On Wed, Nov 12, 2008 at 12:43:01PM +0100, Adrian Chapela wrote:
>>>>> Tanveer Chowdhury escribi?:
>>>>>> Hello all,
>>>>>>
>>>>>> I have installed HA in RHEL5 machines and its working fine when
>>>>>> someone pulls out NIC card cable or did manual network service stop.
>>>>>>
>>>>>> In haresources file I added httpd and mysqld service both to monitor.
>>>>>> Now for testing when I manually use kill command to kill all mysql
>>>>>> process for example the passice machine doesn't take over while I just
>>>>>> killed mysql process of primary. Then what is actually HA monitoring
>>>>>> only the Network connectivity?
>>>>>>
>>>>> No, Hearbeat monitors resources as you want. The problem could be in the
>>>>> mysql resource agent monitoring section. It could be testing only if pid
>>>>> file exists. You need to look the RA to know if it is doing well things.
>>>>
>>>> Looks like this is a v1/haresources configuration. There's no
>>>> monitoring in v1.
>>>>
>>>> Thanks,
>>>>
>>>> Dejan
>>>>
>>>>>
>>>>>> thanks in advance.
>>>>>> _______________________________________________________
>>>>>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>>>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>>>>> Home Page: http://linux-ha.org/
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________________
>>>>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>>>> Home Page: http://linux-ha.org/
>>>> _______________________________________________________
>>>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>>> Home Page: http://linux-ha.org/
>>>>
>>> _______________________________________________________
>>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>> Home Page: http://linux-ha.org/
>>>
>> _______________________________________________________
>> Linux-HA-Dev: Linux-HA-Dev [at] lists
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
>>
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


r.bhatia at ipax

Nov 19, 2008, 5:01 AM

Post #8 of 8 (2331 views)
Permalink
Re: How HA monitors services [In reply to]

Tanveer Chowdhury wrote:
> Hi thanks.
>
> Is there any well documentation on configuring Heartbeat 2 with apache
> & mysql as resource to monitor using two node active passive system?
>
> In the website the documents are scattered. I couldn't make a complete
> through list of steps from there.

thou a little outdated on the recent syntax, and not exactly applying to
your resource configuration, you can start reading at [1].

feel free to alter/update/rewrite the tutorials, but please publish them
in the correct wiki.

means: if you're using the combined heartbeat-2.x.y packages, i think
that [2] is appropriate. if you're using pacemaker with heartbeat-2.99.x
then you can post to [3].

cheers,
raoul

[1] http://www.linux-ha.org/v2
[1] http://wiki.linux-ha.org/ - e.g. http://wiki.linux-ha.org/v2
[3] http://www.clusterlabs.org/
--
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc. email. r.bhatia [at] ipax
Technischer Leiter

IPAX - Aloy Bhatia Hava OEG web. http://www.ipax.at
Barawitzkagasse 10/2/2/11 email. office [at] ipax
1190 Wien tel. +43 1 3670030
FN 277995t HG Wien fax. +43 1 3670030 15
____________________________________________________________________
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Linux-HA dev 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.