Re: [squid-users] Using CARP

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 07 Oct 2011 14:57:09 +1300

On 07/10/11 11:54, Igor Rafael wrote:
> I am wanting to use the CARP instead of ICP.
>
> My scenario is this:
>
>
> # RAM
> cache_mem 1024 MB
> maximum_object_size_in_memory 64 KB
>
> #cache_replacement_policy heap LRU
>
> # HD
> cache_dir aufs /var/spool/squid 1024 16 256
> #maximum_object_size 128 MB
> maximum_object_size 16 MB
> minimum_object_size 0 KB
>
> # Cache Threshold limits
> cache_swap_low 90
> cache_swap_high 100
>
> log_icp_queries on
> digest_generation off # Disables cache digest
>
> icp_port 3130 # 0 disables ICP
> acl cloud src 192.168.15.0/24
> icp_access allow cloud
>
> cache_peer 192.168.15.200 parent 3128 0 no-query round-robin
> cache_peer 192.168.15.253 parent 3128 3130 no-digest proxy-only
> cache_peer 192.168.15.252 parent 3128 3130 no-digest proxy-only
> cache_peer 192.168.15.251 parent 3128 3130 no-digest proxy-only
> #prefer_direct off
> ### END Scenario 3 ###
> # Cache Uploads
> refresh_pattern ^ftp: 1440 20% 10080
> refresh_pattern ^gopher: 1440 0% 1440
> refresh_pattern . 0 20% 4320
>
> # Basic configuration
> http_port 3128 transparent
> visible_hostname mc2-frontend
>
> acl all src 0.0.0.0/0.0.0.0
> icp_access deny all
> http_access allow all
>
> ------------------------------------------------------------------------------------
> What must change?

Add "carp" to your cache_peer lines. That is all.

>
> What port should I use?

any.

>
> To balance the filling of the cache I use the tag carp-load-factor?
>

carp-load-factor was removed years ago. Use weight= instead.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.15
   Beta testers wanted for 3.2.0.12
Received on Fri Oct 07 2011 - 01:57:25 MDT

This archive was generated by hypermail 2.2.0 : Fri Oct 07 2011 - 12:00:03 MDT