LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-11-2011, 07:29 AM   #1
iuselinux
LQ Newbie
 
Registered: Sep 2010
Posts: 23

Rep: Reputation: 4
Squid cache setup? Need some advice


Im trying to get multiple squid servers to act as front-end web servers for my main central apache web server, here is my setup so far...

I have changed the IP of the apache server that this sends traffic to, to 123.123.123.123, fyi
Code:
# egrep -v "^#" squid.conf | sed -e '/^$/d'
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80		# http
acl Safe_ports port 21		# ftp
acl Safe_ports port 443		# https
acl Safe_ports port 70		# gopher
acl Safe_ports port 210		# wais
acl Safe_ports port 1025-65535	# unregistered ports
acl Safe_ports port 280		# http-mgmt
acl Safe_ports port 488		# gss-http
acl Safe_ports port 591		# filemaker
acl Safe_ports port 777		# multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow all
icp_access allow all
http_port 80 accel defaultsite=123.123.123.123 vhost
cache_peer 123.123.123.123 parent 80 0 no-query originserver name=myAccel 
cache_peer_access myAccel allow all
hierarchy_stoplist cgi-bin ?
cache_dir ufs /var/spool/squid 2000 16 256
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
refresh_pattern ^ftp:		1440	20%	10080
refresh_pattern ^gopher:	1440	0%	1440
refresh_pattern .		0	20%	4320
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
always_direct allow all
coredump_dir /var/spool/squid
This works wonders.. for about 4 minutes. then the requests go from 2 seconds per a page load, to 5 to 10, then it wont even process, the tail -f access_logs shows that its not even hitting apache any longer on the central server, so its like squid freezes up, any idea???
 
Old 02-11-2011, 07:57 AM   #2
iuselinux
LQ Newbie
 
Registered: Sep 2010
Posts: 23

Original Poster
Rep: Reputation: 4
I have turned off the firewall on the squid server as well as the central apache server, and still doesn't help much. I read through http://squidproxy.wordpress.com/2007...s-are-hanging/ and did all of it, with no avail.

I have attached the 2 images of load times with and without squid from internetsupervision, just to give you an idea of the load time

P.S. I doubt this is a connection issue between the servers, as the website WITH squid loads just as fast as apache for a few minutes, then slowly goes to a hault
Attached Thumbnails
Click image for larger version

Name:	load_time_without_squid.png
Views:	17
Size:	32.8 KB
ID:	6112   Click image for larger version

Name:	load_time_with_squid.png
Views:	18
Size:	32.1 KB
ID:	6113  

Last edited by iuselinux; 02-11-2011 at 07:59 AM.
 
Old 02-11-2011, 03:31 PM   #3
iuselinux
LQ Newbie
 
Registered: Sep 2010
Posts: 23

Original Poster
Rep: Reputation: 4
bump?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] squid cache fernfrancis Linux - Newbie 2 05-24-2010 12:21 AM
Using Active directory Authentication of parent non-squid cache to child squid cache espiya7 Linux - Server 0 05-05-2009 08:04 AM
Need advice on Network setup, for a small SOHO type setup bdutta Linux - Networking 8 08-25-2008 11:11 PM
squid cache dablew Linux - Software 2 07-13-2007 11:45 AM
squid cache JJX Linux - Server 2 07-01-2007 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration