Search squid archive

RE: [squid-users] 2 squid processes

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

 



>> -----Original Message-----
>> From: Chris Robertson [mailto:crobertson@xxxxxxx] 
>> Sent: Friday, April 29, 2005 10:55 AM
>> To: squid-users@xxxxxxxxxxxxxxx
>> Subject: RE: [squid-users] 2 squid processes
>> 
>> 
>> > -----Original Message-----
>> > From: Discussion Lists [mailto:discussions@xxxxxxxxxxxxxx]
>> > Sent: Friday, April 29, 2005 8:16 AM
>> > To: squid-users@xxxxxxxxxxxxxxx
>> > Subject: [squid-users] 2 squid processes
>> > 
>> > 
>> > All,
>> > Obscure question here: Has anyone been able to get 2 squid 
>> processes 
>> > running?  I remember corresponding to a gentleman a while 
>> back who was 
>> > able to get it to work, and he gave me his init-scripts, and conf 
>> > files. Since then I have been unable to find that stuff try 
>> as I may, 
>> > so I wanted to check with you good folks to see if any of you have 
>> > something like that which can help me?  The problem is that 
>> the single 
>> > squid process can't handle all of what I want:
>> > 
>> > -Internal squid listener for proxy clients
>> > -External squid listener to publish our websites Port 80. -External 
>> > squid listener to publish SSL Port 443.
>> > 
>> > I found the following link (scroll down a third of the way) and it 
>> > describes how to do this, but it would be really helpful to 
>> see config 
>> > files, and init files.
>> > 
>> > 
>> http://66.102.7.104/search?q=cache:OwnNlpbABqgJ:www.swelltech.com/supp
>> > or
>> > 
>> t/webminguide/ch03.html+%22two+squid+processes%22&hl=en&client
>> =firefox-a
>> > 
>> > Thanks!
>> 
>> I have two squid processes running on one box, but only to 
>> take advantage of a second processor.  One instance Squid is 
>> capable of running as both a caching proxy, and a 
>> web-accelerator (http://www.squid-cache.org/Doc/FAQ/FAQ-20.html).  
>> 
>> In any case, if you want to follow the path of running two 
>> processes, then you just need to follow the FAQ on setting up 
>> each conf file.  The directives that MUST be different for 
>> each conf file are http_port, icp_port (if it's not set to 
>> 0), cache_dir, cache_access_log (if not set to /dev/null), 
>> cache_log, cache_swap_log, pid_filename, and snmp_port (if 
>> squid was compiled with snmp support).
>> 
>> You can use the same squid binary for both processes, just 
>> specify a different conf file for them to use (e.g. squid -f 
>> /path/to/accelerator.conf && squid -f /path/to/cache.conf).
>> 
>> Chris
>> 
> -----Original Message-----
> From: Discussion Lists [mailto:discussions@xxxxxxxxxxxxxx]
> Sent: Tuesday, May 03, 2005 11:24 AM
> To: squid-users@xxxxxxxxxxxxxxx
> Subject: RE: [squid-users] 2 squid processes
> 
> 
> Okay I read your adivice and finally was able to find blurb about it in
> the FAQ.  So my question is this . . . How do I get the second process
> to create its own cache?  I can see how to set it up in init to use a
> different cache location, but it still needs to know how to create it.
> How would I go about doing that?
> 
> Thanks!
> 

"squid -f /path/to/second/squid.conf -z" ought to do it.

Chris

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

  Powered by Linux