Administration
  Home arrow Administration arrow Page 2 - Configuring Load-Balanced Clusters
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
ADMINISTRATION

Configuring Load-Balanced Clusters
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 1
    2008-05-08


    Table of Contents:
  • Configuring Load-Balanced Clusters
  • Testing the System
  • Testing the System continued
  • Adding HA to LB

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Configuring Load-Balanced Clusters - Testing the System
    ( Page 2 of 4 )

    Let’s check that the load balancer is running on lb:

      # ldirectord ldirectord.cf status

    You should see something like this:

      ldirectord for /etc/ha.d/ldirectord.cf is running with pid:
      1455

    If you see something like this instead:

      ldirectord is stopped for /etc/ha.d/ldirectord.cf

    there’s some problem. You can stop the director and restart it with the debug flag -d, and see whether any errors appear in the output:

      # /usr/sbin/ldirectord /etc/ha.d/ ldirectord.cf stop 
      # /usr/sbin/ldirectord -d /etc/ha.d/ldirectord.cf start
     
    DEBUG2: Running exec(/usr/sbin/ldirectord -d /etc/ha.d/ldirectord.cf start)
      Running exec(/usr/sbin/ldirectord -d /etc/ha.d/ldirectord.cf start)
      DEBUG2: Starting Linux Director v1.77.2.32 with pid: 12984
      Starting Linux Director v1.77.2.32 with pid: 12984
      DEBUG2: Running system(/sbin/ipvsadm -A -t 70.253.158.42:80 -s rr )
      Running system(/sbin/ipvsadm -A -t 70.253.158.42:80 -s rr )
      DEBUG2: Added virtual server: 70.253.158.42:80
      Added virtual server: 70.253.158.42:80
      DEBUG2: Disabled server=70.253.158.45
      DEBUG2: Disabled server=70.253.158.41
      DEBUG2: Checking negotiate: real 
     server=negotiate:http:tcp:70.253.158.41:80:::\/
    director\.html:I\'m\ alive\!
      (virtual=tcp:70.253.158.42:80)
      DEBUG2: check_http: url="http://70.253.158.41:80/director.html"
      virtualhost="70.253.158.41"
      LWP::UserAgent::new: ()
      LWP::UserAgent::request: ()
      LWP::UserAgent::send_request: GET http://70.253.158.41:80/director.html
      LWP::UserAgent::_need_proxy: Not proxied
      LWP::Protocol::http::request: ()
      LWP::Protocol::collect: read 11 bytes
      LWP::UserAgent::request: Simple response: OK
      45:80/director.html is up

    The output is shorter if checktype is check .

    Just to be nosy, we’ll see what the lower-level IP virtual server says:

      # ipvsadm -L -n
      IP Virtual Server version 1.2.0 (size=4096)
      Prot LocalAddress:Port Scheduler Flags

      -> RemoteAddress:Port

    Forward Weight ActiveConn InActConn

    TCP

    70.253.158.42:80 rr

     

      -> 70.253.158.45:80

    Route

    1

    1

    2

      -> 70.253.158.41:80

    Route

    1

    0

    3

    This shows that our first realserver is active, but the second is not.



     
     
    >>> More Administration Articles          >>> More By O'Reilly Media
     

       

    ADMINISTRATION ARTICLES

    - Network Booting via PXE: the Basics
    - Scalix: Linux Administrator`s Guide
    - Network Administration with FreeBSD 7
    - Components of an Information Architecture
    - The Anatomy of an Information Architecture
    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek