AW: Aw: [squid-users] Running two squid3 process, Why?

From: Zeller, Jan <jan.zeller_at_id.unibe.ch>
Date: Tue, 4 Aug 2009 10:56:58 +0200

Hi all,

would like to know if from user perspective the signal 6 will have a significant http service interruption.
I've tested this with wget and sent a kill -6 to the child process and to my surprise wget was still downloading without any service interruption.

How would loadbalancers handle this behaviour ? Do they notice this signal 6 ?

By the way is signal 6 really

$ kill -l
6) SIGABRT ?

e.g.

Aug 4 10:19:25 mybox squid[13220]: http.cc(542) cacheableReply: HttpStateData:
:cacheableReply: unexpected http status code 604
Aug 4 10:19:25 mybox squid[13220]: ctx: exit level 0
Aug 4 10:27:27 mybox squid[13220]: assertion failed: store_client.cc:430: "STO
RE_DISK_CLIENT == getType()"
Aug 4 10:27:27 mybox squid[11814]: Squid Parent: child process 13220 exited du
e to signal 6 with status 0
Aug 4 10:27:30 mybox squid[11814]: Squid Parent: child process 14441 started
Aug 4 10:27:30 mybox squid[14441]: Starting Squid Cache version 3.1.0.12-20090
803 for x86_64-unknown-linux-gnu...
Aug 4 10:27:30 mybox squid[14441]: Process ID 14441

Is this observation right ?

kind regards,

Jan

> -----Ursprüngliche Nachricht-----
> Von: Amos Jeffries [mailto:squid3_at_treenet.co.nz]
> Gesendet: Sonntag, 2. August 2009 02:46
> An: Jeff Pang
> Cc: sachinmalave_at_gmail.com; squid-users_at_squid-cache.org
> Betreff: Re: Aw: [squid-users] Running two squid3 process, Why?
>
> Jeff Pang wrote:
> >
> >
> >
> > ----- Original Nachricht ----
> > Von: Sachin Malave <sachinmalave_at_gmail.com>
> > An: squid-users_at_squid-cache.org
> > Datum: 01.08.2009 14:37
> > Betreff: [squid-users] Running two squid3 process, Why?
> >
> >> I am using squid3, After starting squid It creates two process
> >>
> >> $sudo squid3
> >> $ps -A
> >>
> >> It displays something like......
> >> .
> >> .
> >> 6325 ? 00:00:00 squid3
> >> 6327 ? 00:00:25 squid3
> >> 6328 ? 00:00:00 unlinkd
> >> 6367 ? .
> >> .
> >> .
> >>
> >> Can anybody tell me why it has created two processes?
> >>
> >
> >
> > Well, from my looking at the sources years ago, one process is the
> parent, who does nothing but monitor the child, another process is the
> child, who does the actual http request handling. When child dies due
> to some exception, parent will re-launch another new child.
> >
> > Jeff.
>
> Correct. And the third one handles the disk deletions.
>
> Amos
> --
> Please be using
> Current Stable Squid 2.7.STABLE6 or 3.0.STABLE17
> Current Beta Squid 3.1.0.12
Received on Tue Aug 04 2009 - 08:57:33 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 04 2009 - 12:00:03 MDT