Re: [squid-users] Maximum disk cache size per worker

From: Sokvantha Youk <sokvantha_at_gmail.com>
Date: Sat, 23 Mar 2013 18:52:51 +0700

On 3/23/2013 11:19 AM, Amos Jeffries wrote:
> On 22/03/2013 11:05 p.m., Amos Jeffries wrote:
>> On 22/03/2013 7:21 p.m., Sokvantha YOUK wrote:
>>> Dear Amos,
>>>
>>> I am pretty sure love to go down to try SMP equivalent of a CARP
>>> peering. Please guide me.
>>
>> The design is laid out here with config files for the pre-SMP
>> versions of Squid:
>> http://wiki.squid-cache.org/ConfigExamples/MultiCpuSystem
>>
>> The SMP worker version of that is only slightly different. There is
>> only one "squid" started using a single main squid.conf containing a
>> series of if-conditions assigning each worker to a frontend or
>> backend configuration file like so:
>
> I've added a slightly better form of this configuration to the wiki at:
> http://wiki.squid-cache.org/ConfigExamples/SmpCarpCluster
>
> Amos
Dear Amos,

I have tried SmpCarpCluster for my squid server but I got this error:
1. frontend cache_log
2013/03/23 18:24:25 kid1| WARNING: disk-cache maximum object size is
unlimited but mem-cache maximum object size is 32.00 KB
2. Which configuration file should I add WCCP info (squid.conf,
frontend.conf...)?

Squid started with three process numbers + a squid coordinator + squid
logfile daemon. Squid coordinator process and logfile daemon seems
access to cache_dir and logfiles.

Below is the error log:

2013/03/23 18:42:38 kid4| DNS Socket created at [::], FD 8
2013/03/23 18:42:38 kid4| DNS Socket created at 0.0.0.0, FD 9
2013/03/23 18:42:38 kid4| Adding nameserver 119.82.248.67 from /etc/resolv.
conf
2013/03/23 18:42:38 kid5| ERROR opening swap log /cache2/squid/cache5/swap.
state: (2) No such file or directory
FATAL: UFSSwapDir::openLog: Failed to open swap log.
Squid Cache (Version 3.3.3-20130318-r12517): Terminated abnormally.
2013/03/23 18:42:38 kid4| ERROR opening swap log /cache2/squid/cache4/swap.
state: (2) No such file or directory

Note:
1. My server has 32 GB of physical Ram
2. # ps ax | grep squid
10209 pts/0 S 0:00 tailf /var/log/squid/cache.log
16840 ? Ss 0:00 squid -f /etc/squid/squid.conf
16844 ? S 0:00 (squid-3) -f /etc/squid/squid.conf
16845 ? S 0:00 (squid-2) -f /etc/squid/squid.conf
16846 ? S 0:00 (squid-1) -f /etc/squid/squid.conf
17337 ? S 0:00 (squid-coord-5) -f /etc/squid/squid.conf
17339 ? S 0:00 (squid-disk-4) -f /etc/squid/squid.conf
17819 pts/0 S+ 0:00 grep squid

----
Regards,
Vantha
Received on Sat Mar 23 2013 - 11:53:18 MDT

This archive was generated by hypermail 2.2.0 : Sat Mar 23 2013 - 12:00:05 MDT