Re: [squid-users] refresh patterns!

From: Manoj_Rajkarnikar <manoj@dont-contact.us>
Date: Sun, 12 Aug 2007 13:57:28 +0545 (NPT)

On Wed, 8 Aug 2007, Adrian Chadd wrote:

>
> G'day,
>
> My next question!
>
> What are people using as refresh_patterns for normal ISP forward
> caching? I'd like to put up a wiki page with a list of useful
> refresh patterns, especially if you've managed to enable caching
> of content such as streaming http media/flv, google earth, etc.
>
> Basically, anything you've got that increases Squid caching of
> traffic above the default of ~10% would be great.
>
> I'll summarise and write up a wiki article.
>
> Thanks!

here's ours...

refresh_pattern windowsupdate.com/.*\.(cab|exe) 4320 100% 43200
reload-into-ims
refresh_pattern update.microsoft.com/.*\.(cab|exe) 4320 100% 43200
reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe) 4320 100% 43200
reload-into-ims
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.exe$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.zip$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.tar\.gz$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.tgz$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.mp3$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.ram$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.jpeg$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.gif$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.wav$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.avi$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.mpeg$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.mpg$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.pdf$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.ps$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.Z$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.doc$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.ppt$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.tiff$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.snd$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.jpe$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.midi$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.ico$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.mp3$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.bin$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.jpg$ 10080 90% 999999 reload-into-ims
refresh_pattern -i \.wmv$ 10080 90% 999999 reload-into-ims
refresh_pattern . 0 35% 6480

with 64GB cache_dir and 18MB max_obj_size, we get around 35% Byte hit and
48% request hit for client_http.requests = 141.127786/sec.

Thanks
Manoj

>
>
>
> Adrian
>

-- 
Received on Sun Aug 12 2007 - 02:13:08 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Sep 01 2007 - 12:00:03 MDT