Administration
  Home arrow Administration arrow Page 3 - 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

Load-Balanced Clusters
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2008-05-01

    Table of Contents:
  • Load-Balanced Clusters
  • Load-Balancing Software
  • ldirectord
  • Configuring the Realservers (Apache Nodes)

  • 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

    Dell PowerEdge Servers

    Load-Balanced Clusters - ldirectord
    (Page 3 of 4 )

    Although we could obtain ldirectord on its own, we’ll get it as part of the Ultra Monkey package, which includes the heartbeat software for HA. Because Ultra Monkey isn’t a part of the standard Debian distribution, you’ll need to add these two lines to your Debian repository file (/etc/apt/sources.list) on the lb machine:

      deb http://www.ultramonkey.org/download/3/ sarge main
      deb-src http://www.ultramonkey.org/download/3 sarge main

    Then update the repository and get the package:

      # apt-get update
      #
    apt-get install ultramonkey

    The installation process will ask you some questions:

      Do you want to automatically load IPVS rules on boot?
     
    No
      Select a daemon method.
      none

    Our configuration will have one virtual server (the address that clients see, running ldirectord), which we’ll call the director, and two realservers (running Apache). The realservers can be connected to the director in one of three ways:

    LVS-NAT

    The realservers are in a NAT subnet behind the director and route their responses back through the director.

    LVS-DR

    The realservers route their responses directly back to the client. All machines are on the same subnet and can find each other’s level-2 (Ethernet) addresses. They do not need to be pingable from outside their subnet.

    LVS-TUN

    The realservers can be on a different network from the director. They communicate by tunneling with IP-over-IP (IPIP) encapsulation.

    We’re going to use DR, because it’s easy, it’s fast, and it scales well. With this method, we designate a VIP that is shared by the load balancer and the realservers. This causes an immediate problem: if all machines share the same VIP, how do we resolve the VIP to a single physical MAC address? This is called the ARP problem, because systems on the same LAN use the Address Resolution Protocol (ARP) to find each other, and ARP expects each system to have a unique IP address.

    Many solutions require kernel patches or modules, and change along with changes to the Linux kernel. In 2.6 and above, a popular solution is to let the load balancer handle the ARP for the VIP and, on the realservers, to configure the VIP on aliases of the loopback device. The reason is that loopback devices do not respond to ARP requests.

    That’s the approach we’ll take. We’ll configure the web servers first.

    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 5 hosted by Hostway