Hello,
[Ganglia 3.1.2]
[Annoyance + FIX]
[Inspired by the thread
http://www.mail-archive.com/[email protected]/msg03226.html
]
I've got a cluster where the DNS is faulty. So the host names of the machines
in the ganglia web front end appear with IP, instead of hostname. It's a bit
annoying, mostly because the gmond on each host correctly outputs something like
<HOST NAME="node01" IP="192.168.127.149"
To solve this, I had to myself add a DNS resolution (one line for every host)
in /etc/hosts of the gmetad+web front end node.
Is there any plan to correctly import the hostname information from the gmond?
Cheers
Igor
-----Original Message-----
From: Brad Nicholes [mailto:[email protected]]
Sent: jueves, 28 de mayo de 2009 16:17
To: David Birdsong; [email protected]
Subject: Re: [Ganglia-general] metric_cleanup not being called in mypythonmodule
You might want to add the following to main() in gmond.c and try it out
apr_signal(SIGTERM, sig_handler);
Try adding this with the other apr_signal() calls in main(). This should
instruct SIGTERM to gracefully shutdown in the same way that SIGINT does.
Brad
>>> On 5/27/2009 at 4:11 PM, in message
<[email protected]>, David Birdsong
<[email protected]> wrote:
> ok, so i just backed up into testing things i have a better grasp on.
>
> i wrote a super simple python module that conforms to the template for
> python modules. metric_cleanup gets called when gmond receives a
> SIGINT but not when it receives a SIGTERM.
>
> the gmond init script installed by default from a fedora rpm will call
> 'killproc' which is defined by the distro. killproc defaults to send
> a SIGTERM first, wait then send a SIGKILL.
>
> shouldn't gmond catch a SIGTERM and exit gracefully?
>
> On Wed, May 27, 2009 at 1:40 PM, David Birdsong
> <[email protected]> wrote:
>> thanks bernard, that sped me along.
>>
>> i'm admittedly pretty green to debugger's in general, and i'm not
>> quite sure if there's special kung fu in debugging a process's signal
>> handler as it, if i understand signals correctly, is installed on a
>> different stack.
>>
>> i:
>> - start gmond -d2 in one term
>> - attach to the running gmond process
>> - set a breakpoint for both apr_terminate and apr_pool_destroy
>> - continue
>>
>> ....gdb will hang while gmond runs it's loop, the non-forked gmond
>> window confirms that it's looping periodically collecting metrics and
>> sending them off
>>
>> - send gmond a TERM signal, i get this from gdb:
>>
>> Program received signal SIGTERM, Terminated.
>> [Switching to Thread 140540029593328 (LWP 11780)]
>> 0x0000003121ed50d8 in epoll_wait () from /lib64/libc.so.6
>>
>> ...maybe that thread is the signal handler? not sure.
>>
>> it occurred to me that gdb could be interfering with the SIGTERM, so i
> added:
>> (gdb) handle SIGTERM nostop
>> ...but this changed nothing.
>>
>> i also notice that if i set the breakpoints and left gmond running in
>> gdb longer, i'd start hitting apr_pool_destroy.c:716 for every metric
>> as it was being sent out(as confirmed by the interactive gmond window)
>>
>> i could continue for each breakpoint, but this just repeated...i'm not
>> sure if i'm actually discovering anything here.
>>
>> On Wed, May 27, 2009 at 12:41 PM, Bernard Li <[email protected]> wrote:
>>> Hi David:
>>>
>>> On Tue, May 26, 2009 at 6:22 PM, David Birdsong
>>> <[email protected]> wrote:
>>>
>>>> I've been searching around for awhile now, any suggestions on where I
>>>> can get apr-debug ...or is it apr-util-debug? I'm on Fedora 8, but
>>>> source is fine.
>>>
>>> Perhaps you are looking for the apr-debuginfo RPM?
>>>
>>>
> http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/8/Everyth
> ing/i386/debug/apr-debuginfo-1.2.11-2.i386.rpm
>>>
>>> Cheers,
>>>
>>> Bernard
>>>
>>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> Ganglia-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ganglia-general
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general
------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive
this e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin
group liability cannot be triggered for the message content. Although
the sender endeavours to maintain a computer virus-free network,
the sender does not warrant that this transmission is virus-free and
will not be liable for any damages resulting from any virus transmitted.
Este mensaje y los ficheros adjuntos pueden contener informacion confidencial
destinada solamente a la(s) persona(s) mencionadas anteriormente
pueden estar protegidos por secreto profesional.
Si usted recibe este correo electronico por error, gracias por informar
inmediatamente al remitente y destruir el mensaje.
Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin
no se hace responsable por su contenido. Su contenido no constituye ningun
compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas
partes.
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
no puede garantizar nada al respecto y no sera responsable de cualesquiera
danos que puedan resultar de una transmision de virus.
------------------------------------------------------------------
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general