Re: [squid-users] how can i get squid max performance

From: Denis Vlasenko <vda@dont-contact.us>
Date: Thu, 25 Mar 2004 16:24:13 +0200

On Thursday 25 March 2004 12:17, blade wrote:
> 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

You need to find out where is the bottleneck.
Are your squid boxes CPU bound? (Seems like not). Disk bound? Network bound?
Maybe you just reached your outbound connection's bandwidth?

> visit static pages but the total traffic is about 40M . and every squid

40M/min? 40M/sec?

> 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

Here is a little tool I use to find out various statistics
of my boxes.

In case you will have difficulty compiling it,
I included static binary too.

-- 
vda


Received on Thu Mar 25 2004 - 07:32:58 MST

This archive was generated by hypermail pre-2.1.9 : Thu Apr 01 2004 - 12:00:03 MST