LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Defunt Process

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] Defunt Process
From: Henrique Fernandes <sf.rique@xxxxxxxxx>
Date: Mon, 9 Aug 2010 21:30:02 -0300
I am not sure i am just giving you an opinion, cause i have not skills
enough to look into the code!

I am just saying, when the time out is smaller than the external comand it
becames a defunct process.

Setting the timeout to a higher value, will only fix for a moment, once the
real server get a high load, it will give a slower response, in that case
ldirectord timeout will make an defunct process anyway.

I guess the best solution is to set ldiretord timeout to 0 and let the
external comand see the timeout.  Is that right ?

Bytheway, sorry about my english i am from Brazil.


Anyway, i will send the script, so you might know why it is becaming an
defunct.

Thanks!

#!/usr/bin/python
> # Autor: Sfrique
> # Nome: Chega-email
> # Descricao: Script em python para testar o servico de email.
> # Data: 06/08/2010
> # Versao: 0.0.2
> # Pre-requisitos: Pyhton2.4 ou superiror
>
> import sys
> import smtplib
> import logging
>
> # Configurando as variavies do servico de log
> logging.basicConfig(filename='/var/log/chega-email.log',
>                     format='%(asctime)s - %(name)s - %(levelname)s -
> %(message)s',
>                     level=logging.DEBUG)
>
> # Criando uma lista com os argumentos passados. O sys.argv[0] e o nome do
> script chamado, por isso nao queremos.
> args = sys.argv[1:]
>
> try:
>     server = smtplib.SMTP(args[2])
>     server.set_debuglevel(0)
>     server.sendmail('example@xxxxxx','example2@xxxxxx','oi')
>     server.quit()
> except:
>     logging.exception("SERVIDOR VIRTUAL: %s  SERVIDOR REAL: %s " ,
> args[0],args[2] )
>     sys.exit( 1 )
>


[]'sf.rique


On Mon, Aug 9, 2010 at 6:16 PM, Simon Horman <horms@xxxxxxxxxxxx> wrote:

> On Mon, Aug 09, 2010 at 05:56:15PM -0300, Henrique Fernandes wrote:
> > But the points is to use the checktimeout toghetter with my script.
> >
> > My script does not consider timeout, or it is to long, i raise the
> timeout
> > and the problem stop, but with this solution, someother tie it will have
> the
> > checktime higher than checktimeout, then it will became defunct again.
> >
> > But the point is that i wnat to use the timeout of ldirectord, you are
> > saying i can't use togetter with an script ?
> >
> > So i am gonna probally set time out per virtual section and set this
> > especific to 0, an dlet my script hanlde timeout.
> >
> > There is no other solution ? Like ldiretord kill the process properlly so
> > they don't became defunct?
>
> Sorry, I miss-understood the problem. Yes, I will fix ldirectord
> to kill the process properly. Will that solve the problem you have?
>
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

<Prev in Thread] Current Thread [Next in Thread>