On 24/03/2013 12:52 a.m., Sokvantha Youk wrote:
> 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
Okay. You can ignore this for now. I will update the config in the next
day or two with some memory settings that should fix it.
> 2. Which configuration file should I add WCCP info (squid.conf,
> frontend.conf...)?
All the user-facing services and such are frontend. The backend only
handles caching and upstream network fetches.
>
> 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
Log access is fine they do have things to log.
Cache dir is the side effect of a minor bug. For now you are going to
have to create a cache_dir #5, and allow it to be initialized. Don't
worry about space the coordinator does not save anything there.
>
> 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 - 13:04:56 MDT
This archive was generated by hypermail 2.2.0 : Sun Mar 24 2013 - 12:00:05 MDT