Administration
  Home arrow Administration arrow Page 4 - 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? 
ADMINISTRATION

Load-Balanced Clusters
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 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:
      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


    Load-Balanced Clusters - Configuring the Realservers (Apache Nodes)
    ( Page 4 of 4 )

    On each realserver (web1 and web2), do the following:

    1. If the server doesn’t already have Apache installed, install it:

        # apt-get install apache2

      If you haven’t installed the content files for your web site, you can do it now or after load balancing is set up.
    2. Install iproute (a Linux networking package with more features than older utilities such as ifconfig and route):

        # apt-get install iproute 
    3. Add these lines to /etc/sysctl.conf:

        net.ipv4.conf.all.arp_ignore = 1 
        net.ipv4.conf.eth0.arp_ignore = 1
        net.ipv4.conf.all.arp_announce = 2
        net.ipv4.conf.eth0.arp_announce = 2 
    4. Get the changes into the kernel:

        # sysctl -p
        net.ipv4.conf.all.arp_ignore = 1
        net.ipv4.conf.eth0.arp_ignore = 1
        net.ipv4.conf.all.arp_announce = 2
        net.ipv4.conf.eth0.arp_announce = 2 
    5. Assuming that your realserver is a Debian system, edit the /etc/network/interfaces file, associating the VIP (70.253.15.42) with the loopback alias lo:0 :

        auto lo:0
        iface lo:0 inet static
            address 70.253.15.42
            netmask 255.255.255.255
            pre-up sysctl -p > /dev/null 
    6.  Enable the loopback alias:

        # ifup lo:0 
    7. Create the file /var/www/ldirector.html with the contents:

        I'm alive! 
    8. On web1:

        # echo "I'm web1" > /var/www/which.html 
    9. On web2

        # echo "I'm web2" > /var/www/which.html 
    10. Start Apache, or restart it if it’s already running:

        # /etc/init.d/apache2 restart

    The Apache access logs should not yet show any activity, because lb is not talking to them yet.

    Please check back next week for the conclusion to this article.



     
     
    >>> 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 3 hosted by Hostway
    Stay green...Green IT