Software Based Load Balancers

來源:互聯網
上載者: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 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
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.