LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Squid cache setup? Need some advice (https://www.linuxquestions.org/questions/linux-server-73/squid-cache-setup-need-some-advice-862041/)

iuselinux 02-11-2011 07:29 AM

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???

iuselinux 02-11-2011 07:57 AM

2 Attachment(s)
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

iuselinux 02-11-2011 03:31 PM

bump? :(


All times are GMT -5. The time now is 03:36 PM.