[Gluster-users] Monitoring Gluster availability
Tejas N. Bhise
tejas at gluster.com
Tue May 11 02:03:11 UTC 2010
Phil,
We are developing the dynamic volume features for the next release. To be able to do dynamic volume management, we are putting in some infrastructure that will provide list of volumes and what servers/exports the volume is spread across.
We would be happy to try and provide an interface for the kind of information you want. Please let us know in detail ( like some sort of specification, examples ) what all information you need to make your monitoring task easier.
I would like to encourage others also to pitch in with more information on how you monitor health of your system and if there is any specific information that your system would like to be presented natively from gluster. I will go through the requests and see what can be accommodated.
Regards,
Tejas.
----- Original Message -----
From: "phil cryer" <phil at cryer.us>
To: "Kelvin Westlake" <Kelvin at netbasic.co.uk>
Cc: gluster-users at gluster.org
Sent: Tuesday, May 11, 2010 1:33:03 AM
Subject: Re: [Gluster-users] Monitoring Gluster availability
On Fri, May 7, 2010 at 3:13 AM, Kelvin Westlake <Kelvin at netbasic.co.uk> wrote:
> Can anybody recommend away of monitoring gluster availability, I need to
> be made aware of a server or client crashes out. Is there some port or
> system component that can be monitored?
I use monit [ttp://mmonit.com/monit/] extensively, and have written a
simple config snippet to watch glusterfds and restart it if it has
failed.
from /etc/monit/monitrc
check process glusterfsd with pidfile /var/run/glusterfsd.pid
start program = "/etc/init.d/glusterfsd start"
stop program = "/etc/init.d/glusterfsd stop"
if failed host 127.0.0.1 port 6996 then restart
if loadavg(5min) greater than 10 for 8 cycles then restart
if 5 restarts within 5 cycles then timeout
Today I was looking for a more 'gluster native' way of checking all
the nodes to see if each of them in the cluster are up, but haven't
gotten very far, save for pulling the hostnames out of the volfile:
grep "option remote-host" /etc/glusterfs/glusterfs.vol | uniq | cut -d" " -f7
but from there you'd need to do a shared ssh key setup for a script to
loop through those entries and check things in the logs on all the
servers...
Does anyone have a way they do it?
P
On Fri, May 7, 2010 at 3:13 AM, Kelvin Westlake <Kelvin at netbasic.co.uk> wrote:
> Hi Guys
>
>
>
> Can anybody recommend away of monitoring gluster availability, I need to
> be made aware of a server or client crashes out. Is there some port or
> system component that can be monitored?
>
>
>
> Cheers
>
> Kelvin
>
>
>
>
> This email with any attachments is for the exclusive and confidential use of the addressee(s) and may contain legally privileged information. Any other distribution, use or reproduction without the senders prior consent is unauthorised and strictly prohibited. If you receive this message in error please notify the sender by email and delete the message from your computer.
>
> Netbasic Limited registered office and business address is 9 Funtley Court, Funtley Hill, Fareham, Hampshire PO16 7UY. Company No. 04906681. Netbasic Limited is authorised and regulated by the Financial Services Authority in respect of regulated activities. Please note that many of our activities do not require FSA regulation.
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://gluster.org/cgi-bin/mailman/listinfo/gluster-users
>
>
--
http://philcryer.com
_______________________________________________
Gluster-users mailing list
Gluster-users at gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users
More information about the Gluster-users
mailing list