Software based load balancers

Source: Internet
Author: User
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 balancersI believe it is a common practice to use Apache as the websever and also the Load balancer on your iselevel 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 cocould 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 PoundIs my choice as it is the onlyone support HTTPS. BTW, the executable is only 140 K. 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 support Pound @ 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, retriable priority
High Availability: it check all nodes status at a retriable Time Interval
Fail-over: If underlying nodes are clustered and support session replication
HTTP: Yes
Https: Yes Pure 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 retriable Time Interval
Fail-over: If underlying nodes are clustered and support session replication
HTTP: Yes
Https: Not support

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.