Re: [squid-users] squidaio_queue_request: WARNING - Queue congestion

From: Aditya Budi <aditya_budi@dont-contact.us>
Date: Sun, 9 Jun 2002 11:16:34 -0700 (PDT)

thanks for the suggestion folks ..
... finally my problem has disappear..
i've moving all my traffic to this server, and i guess
that message in my logs because too little traffic ;)

> In this case, the difference between 32 and the 50
> threads that have
> been specified isn't going to be very big. There
> are probably other
> issues causing troubles, but using the default
> number of threads is a
> good place to start...

and may i ask few more question.. ?

if my memory serve mine ,right.. you ever mentioned
in squid user or squid devel list, that for increasing

request/second .. you use some iptables rules for
load balancing request to a few squid process
(i assume using one box) that listen on spesific ip or

spesific port if using one ip..

is that rules is something like this... ?
(if using 3 squid listen on some ip
eg :
squid a = aa:bb:cc:aa
squid b = aa:bb:cc:ab
squid c = aa:bb:cc:ac
#begin rules..
/sbin/iptables -t nat -A PREROUTING -p TCP \
-d ! $local_net --dport 80 -m nth --counter 7 \
--every 3 --packet 0 -j DNAT --to aa:bb:cc:aa:8080

/sbin/iptables -t nat -A PREROUTING -p TCP \
-d ! $local_net --dport 80 -m nth --counter 7 \
--every 3 --packet 1 -j DNAT --to aa:bb:cc:ab:8080

/sbin/iptables -t nat -A PREROUTING -p TCP \
-d ! $local_net --dport 80 -m nth --counter 7 \
--every 3 --packet 2 -j DNAT --to aa:bb:cc:ac:8080
 
#end rules

and if i want balancing the incoming request to
spesific port..
eg : i have 3 squid listen on aa:bb:cc:dd port
8080,8081,8082 respectively

#begin rules..

iptables -t nat -A PREROUTING -p tcp --dport 80 \
-m nth --counter 7 --every 3 --packet 0 \
-j REDIRECT --to-port 8080

iptables -t nat -A PREROUTING -p tcp --dport 80 \
-m nth --counter 7 --every 3 --packet 1 \
-j REDIRECT --to-port 8081

iptables -t nat -A PREROUTING -p tcp --dport 80 \
-m nth --counter 7 --every 3 --packet 2 \
-j REDIRECT --to-port 8082

#end rules..

sorry for asking long question..
because i'm still doesn't understand to get more
performance out from my box....

thanks a lot

best regards
Budi Aditya

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
Received on Sun Jun 09 2002 - 12:16:36 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:08:37 MST