Search squid archive

Re: Avoid squid-coord to spawn rewrite_children

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/27/2013 11:30 AM, Luciano Ruete wrote:
> Hi,
> 
> In a multiple workers setup, it is safe to avoid
> rewrite_children/url_rewrite_program/url_rewrite_access lines for the
> squid-coord proccess?

Yes, it should be safe.


> Because real request are only going to reach workers and not
> coordinator, right?

Right.


> So in my squid.conf i have:
> 
> if ${process_number} = 1
>   url_rewrite_program ...
>   url_rewrite_children 30 startup=5 idle=5
>   ...
> endif
> if ${process_number} = 2
>   url_rewrite_program ...
>   url_rewrite_children 30 startup=5 idle=5
>   ...
> endif

You may find it easier to use an else clause. For example, assuming your
Coordinator process is process #3:

if ${process_number} = 3
   # no helpers for Coordinator
else
   url_rewrite_program ...
   url_rewrite_children 30 startup=5 idle=5
endif


HTH,

Alex.



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux