[squid-dev] Moved PID file management from Coordinator to Master

Amos Jeffries squid3 at treenet.co.nz
Fri Jan 16 15:51:46 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 16/01/2015 11:29 a.m., Alex Rousskov wrote:
> On 01/14/2015 03:09 AM, Amos Jeffries wrote:
>>> On 01/14/2015 11:25 AM, Amos Jeffries wrote:
>>>> Does the master process get exit status of *all* worker
>>>> processes and the sub-childs down N levels? It was my
>>>> understanding that in SMP each worker disker etc is a fork()
>>>> and the child becomes new coordinator.
> 
> 
> Hi Amos,
> 
> In SMP, there is only one Coordinator process, created by the
> Master process.
> 
> 
>> I suspect we will find that some diskers etc are in fact spawned
>> by either coordinator or a worker and one level deeper than the
>> master can see.
> 
> 
> All SMP kids (Coordinator, workers, and diskers) are started by
> the Master process. There are no multiple levels as far as kid
> startup and waiting are concerned and, hence, there is no "level
> deeper than the master can see".
> 
> Needless to say, there are processes that are not SMP kids. For
> example, all helpers do not run Squid code and, hence, they are not
> kids and are not affected by the proposed fix.
> 
> 
> HTH,
> 
> Alex.
> 


Hmm, okay. Then I have no problem per-se to this change of esponsibility.

I do still think the coordinator needs to remain active until last out
of the kids though, so they can still use it to coordinate during
their shutdowns. Having it be the first up and last down would solve a
few architectural problems where kids need to to collaborate on
things, like log rotations or broadcasting their availability.

Amos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJUuTOSAAoJELJo5wb/XPRj76UIAJk+f4O4aiIp4Hmw7bZpD5zV
3MGcai6k7kTG8/4ncvnsZCT9lG1shgA41JeNpoUzCMvo9kfRJ7wHYpwXZT0UNeEW
mwE2TZXjwt1cWewyfwnb24Pph5vCBEhI7wqgANH3/+duZkAYzHuEl09G62LEpAR3
KBrmAJUP468brWXMLdDAJAUNo4c1e5U74vqI2k2Dnn25NjCxg1yLLx3RB4oDNGqI
WbLAR8hR4ni4gl5jkJwdFb9yFgROaciQxVrLchj/ub73j2yoPF4hBgwwx2hola+f
rJDRDiQugVbTlDl4jyv3QjRc3NLMA27qZKV0DCIxEIYZ7F+3niG4VVTo6mQhgEo=
=Naou
-----END PGP SIGNATURE-----


More information about the squid-dev mailing list