Administration
  Home arrow Administration arrow Page 2 - Configuring Load-Balanced Clusters
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
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? 
ADMINISTRATION

Configuring Load-Balanced Clusters
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 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:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb 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

    PCmover - $15 Off with Coupon Code CJPH7Q

    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 ifchecktypeischeck.

    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


       · This article is an excerpt from the book "Linux System Administration," published by...
     

    Buy this book now. This article is excerpted from chapter seven of Linux System Administration, written by Tom Adelstein and Bill Lubanovic (O'Reilly, 2007; ISBN: 0596009526). Check it out today at your favorite bookstore. Buy this book now.

       

    ADMINISTRATION ARTICLES

    - 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
    - Advanced Concepts on Dealing with Files and ...
    - Dealing with Files and Filesystems
    - More Hacks for the User Environment in BSD
    - Personalizing the User Environment in BSD
    - Customizing the User Environment in BSD

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway