I have been use squid iptables to get load balance and reverse proxy and it works for half a year.
But now traffic goes up . and i use five squid box to load balance.
when traffic high ,squid use 50% cpu , and it is slow to visit static pages
but the total traffic is about 40M . and every squid box has about 1800 ESTABLISHED .
i did some optimize such as ,
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.ip_local_port_range = 16384 65534
use ulimit −HSn 8192
−−enable−async−io diskd
configure squid-2.5.STABLE5 and use refer log patch
--prefix=/data/squid --enable-useragent-log --enable-referer-log --enable-default-err-language=Simplify_Chinese '--enable-err-languages=Simplify_Chinese English' --disable-internal-dns --enable-storeio=ufs,diskd,aufs --enable-cache-digests --disable-ident-lookups --enable-async-io=160
I wanna to know what is the squid high performance and how can i get it ?
Thanks in advance
Received on Thu Mar 25 2004 - 03:18:03 MST
This archive was generated by hypermail pre-2.1.9 : Thu Apr 01 2004 - 12:00:03 MST