Hello,EveryOne. here, I wanna use the freebsd the balance the load of servers. I have two server.One is (SERVER-B)windows 2003 Enterprise Version.the other is(SERVER-A) FreeBSD4.9-stable. the two is providing the MP3 stream to the client. Can I Use the IpFw or IPFLITER to implement the" HTTP REQUEST redirect", that is ,when client subscribe some request like: HTTP://SERVER-A/REMOTE/SOME.FILE I wanna this is request si redirect to HTTP://SERVER-B/REMOTE/SOME.FILE in order to decrease the load of server-A but the other requests should not be redirected,servered by server-A. Here I have implement this using the apache's modules "mod_rewrite",but I think it is not more efficient. because ,when I do "netstat -n " there si so much tcp connectting with state "TIME_WAIT",as this ,When I increase the " MaxClients "in the httpd.conf ,when I do some other programme like"FTP,/usr/local/apache2/bin/ab ",I got an error"Socket:no buffer space available", How can I avoid this ? How can I make the freebsd more powerfull? Thanks for your kindly reply. =09 =09=09=09=09 =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1freebsdkid =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1freebsdkid@tom.com =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A12004-03-18
On Thu, Mar 18, 2004 at 09:44:00PM +0800, apache wrote:> Hello,EveryOne. > here, I wanna use the freebsd the balance the load of servers. > > Here I have implement this using the apache's modules "mod_rewrite",but I think it is not more > efficient. because ,when I do "netstat -n " there si so much tcp connectting with > state "TIME_WAIT",as this ,When I increase the " MaxClients "in the httpd.conf ,when I do some other > programme like"FTP,/usr/local/apache2/bin/ab ",I got an error"Socket:no buffer space available", > How can I avoid this ?see "man tuning". "no buffer space available" is a FAQ. -- -- -- see http://www.freebsd.org/cgi/man.cgi?query=ipnat&sektion=5#LOAD-BALANCING for load balancing using ipnat. -- -- -- see the ports /usr/ports/www/pound /usr/ports/net/plb /usr/ports/net/pen /usr/ports/net/haproxy /usr/ports/net/balance if any of those do what you actually need. if both webservers shall have approximately the same load and serve the same pages, then even a simple dns round robin might be all you need. -- -- -- for explanation of TIME_WAIT, the following link might be useful: http://www.softlab.ntua.gr/facilities/documentation/unix/unix-socket-faq/unix-socket-faq-2.html Regards, Holger Kipp