Solved

Squid proxy server (performance / configuration)

Posted on 2010-11-29
2
424 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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

713 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