keyword:Load Balanceref: http://www.networkworld.com/reviews/0614rev.htmlref: http://www.networkcomputing.com/showitem.jhtml?docid=1517f15ref: http://www.theserverside.com/articles/article.tss?l=Tomcat
Software Based Load Balancers I believe it is a common practice to use apache as the websever and also the load balancer on enterpriselevel web application. however, sometimes it may be an overkill for a small scale project. e.g. in my previousproject, all we need is a easy-to-config, easy-to-use and https-enabled small daemon which could be runningon our not-so-good server (doubled as a mysql ndb cluster management node). I have tried quite a few, and following are which I made them work. and
pound is my choice as it is the onlyone support https. btw, the executable is only 140k. Balance @ http://www.inlab.de/balance
1>install gcc
apt-get install gcc
apt-get install build-essential
2>get balance src
wget http://www.inlab.de/balance-3.34.tar.gz
3>make balance
make install
4>start balance
balance -f 8888 10.0.0.116:8080 10.0.0.117:8080 load-balance: round-robin, client ip based hashing
high availability: balance keeps track of nodes status
fail-over: if underlying nodes are clustered and support session replication
http: if underlying nodes are clustered and support session replication
https: not supportPound @ http://www.apsis.ch/pound
1>pound require SSL with multi-thread support
wget http://www.openssl.org/source/openssl-0.9.8a.tar.gz
make install2>get pound src
wget http://www.apsis.ch/pound/Pound-2.0.4.tgz
3>install pound
4>create pound.cfg at /usr/local/etc/
ListenHTTP
Cert "/usr/local/ssl/cert/pound.pem"
Address 10.0.0.56
Port 8888 Service
BackEnd
Address 10.0.0.197
Port 8080
End
BackEnd
Address 10.0.0.198
Port 8080
End
End
End
5>start pound load-balance: round-robin, configurable priority
high availability: it check all nodes status at a configurable time interval
fail-over: if underlying nodes are clustered and support session replication
http: yes
https: YESPure Load Balancer @ http://plb.sunsite.dk/download.html
1>get PLB src
wget http://plb.sunsite.dk/files/plb-0.3.tar.gz
2>install libevent, as PLB use it for async event handling
wget http://monkey.org/~provos/libevent-1.1.tar.gz
3>install PLB
./configure
make install
4>create plb.conf at /etc/
5>start plb load-balance: round-robin
high availability: it check all nodes status at a configurable time interval
fail-over: if underlying nodes are clustered and support session replication
http: yes
https: not support