Important Apache LoadBalancing Question

Discussion in 'HOWTO-Related Questions' started by thefusa, Nov 11, 2009.

  1. thefusa

    thefusa New Member

    Hi,
    I’ve 2 Web Server and a LoadBalancer with UltraMonkey
    Web Server 1: 10.14.10.92
    WebServer 2: 10.14.10.93


    I wish to know if it’s possible to redirect ALL THE REQUEST ALWAYS to the SAME Server and ONLY if the Primary is down the request will be redirected to the second one.

    It’s possible?

    This is my actual configuration:

    # Global Directives
    checkinterval=2
    autoreload=no
    logfile="local0"
    quiescent=yes
    virtual=10.14.10.99:80
    service=http
    real=10.14.10.92:80 gate 500000
    real=10.14.10.93:80 gate 1
    fallback=10.14.10.105 gate
    checktype=negotiate
    request="ldirector.html"
    receive="Test Page"
    scheduler=lblc


    Thanks a Lot!!!!:D
     
  2. fazi_puri

    fazi_puri New Member

    need help related to ultramonkey

    hey i want to know that your load balancer is redirecting your request toward the real server or not because i am facing this problem. my all tests went fine the only problem is in test#7 when i wrote http://(virtual ip) in my browser it shows page cannot be display.........

    plz solve my problem if u can
     
  3. thefusa

    thefusa New Member

    yes,
    my lb redirects the request correctly!
    I've solve my problem in this way:
    I've have only ONE real server; the second one is the fallback.
    So when the primary goes down the fallback take place of it.
    Tested and it works! GREAT!;)

    # Global Directives
    checkinterval=2
    autoreload=no
    logfile="local0"
    quiescent=yes
    virtual=10.14.10.99:80
    service=http
    real=10.14.10.92:80 gate
    fallback=10.14.10.93 gate
    checktype=negotiate
    request="ldirector.html"
    receive="Test Page"
    scheduler=lblc


    fazi_puri: Are you suce that the LB take the Virtual ip ?

    If you type:
    Code:
    ipvsadm -L -n
    what it show? Something like this?
    Code:
    Prot LocalAddress:Port Scheduler Flags
      -> RemoteAddress:Port           Forward Weight ActiveConn InActConn      
    TCP  10.14.10.99:80 wlc
      -> 10.14.10.93:80               Route   1      0          0         
      -> 10.14.10.92:80               Route   5      0          0  
    
     
  4. fazi_puri

    fazi_puri New Member

    hey dear thankz for reply

    when i wrote ipvsadm -l -n
    remaining things are exactly match with ur output but fall back ip is not displaying on the output.and the weight of real server is displaying 1.
     
  5. fazi_puri

    fazi_puri New Member

    hey can u plz elaborate a bit about fallback ip that what it do??????? and also that wht should be its value??????????
     

Share This Page