Solved

Squid proxy server (performance / configuration)

Posted on 2010-11-29
2
402 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
Comment Utility
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
Comment Utility
Thanks that's what I was looking for!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MySql Database Installation 5 75
What is ISQL? 6 99
Linux operating system 12 63
Trying to make SNMP connection work 7 39
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now