Solved

Squid proxy server (performance / configuration)

Posted on 2010-11-29
2
437 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

726 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