zoukankan      html  css  js  c++  java
  • Software Based Load Balancers

    keyword:Load Balance
     
    Software Based Load Balancers
     
    I believe it is a common practice to use apache as the websever and also the load balancer on enterprise
    level web application. however, sometimes it may be an overkill for a small scale project. e.g. in my previous
    project, all we need is a easy-to-config, easy-to-use and https-enabled small daemon which could be running
    on 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 only
    one 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 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 install
    2>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: 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 configurable time interval
    fail-over: if underlying nodes are clustered and support session replication
    http: yes
    https: not support
  • 相关阅读:
    POJ 3417 Network
    指针动态开空间的板子
    fread()的板子
    luguo P1970 花匠
    Uva
    Uva
    Uva
    Uva
    Uva
    什么才算是真正的编程能力?
  • 原文地址:https://www.cnblogs.com/Safe3/p/1388044.html
Copyright © 2011-2022 走看看