Solved

Squid proxy server (performance / configuration)

Posted on 2010-11-29
2
418 Views
Last Modified: 2012-05-10
I've setup squid as a proxy server on one of my servers. It has about 120 IP addresses on it. When it is handling a lot of connections, cpu/mem usage goes up quite high (as one would expect). I also believe I/O is hit hard. I've had to increase the number of file descriptors at one point.

My question is, by default, is squid caching all of the requests users are making through these IP addresses? If so, is this necessary? Is there a way to disable it?

The entire goal of this squid installation is simply to provide a proxy/tunnel to users, not improve website performance or anything. Maybe I am wrong but isn't writing to cache files unnecessary and just wasting resources?

I just want to clarify this before I end up having to buy a new server.
0
Comment
Question by:mcainc
2 Comments
 
LVL 18

Accepted Solution

by:
Sanga Collins earned 500 total points
ID: 34236473
You can disable caching for a squid proxy. i use the following for my squid proxy server. I set it up with dansguardian to filter web content so i didnt need the caching and only wanted the filter. i use the following commands in the config.

cache deny all
cache_dir null /tmp

This will prevent caching as well as eliminate the need for a cache directory. You can also read more details on the squid faq. There is also a usefull option to prevent users from dowloading large files which may help your overall performance.

http://wiki.squid-cache.org/SquidFaq/ConfiguringSquid
0
 

Author Closing Comment

by:mcainc
ID: 34236501
Thanks that's what I was looking for!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question