Web Hosting How-Tos
  Home arrow Web Hosting How-Tos arrow Page 3 - A Primer on J2EE Clusters for Webhosti...
Web Hosting Articles  
Web Hosting FAQs  
Web Hosting How-Tos  
Web Hosting News  
Web Hosting Security  
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
ASP Web Hosting  
ASP.NET Web Hosting 
Budget Hosting 
Coldfusion 
Colocation 
Mobile Linux 
APP Generation ROI 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Reseller Web Hosting 
Shared Hosting 
Small Business Hosting 
Virtual Private Servers 
Windows Web Hosting
 
 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? 
WEB HOSTING HOW-TOS

A Primer on J2EE Clusters for Webhosting
By: Blue Moon
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2005-04-20

    Table of Contents:
  • A Primer on J2EE Clusters for Webhosting
  • Advantages of Clusters
  • Cluster Architecture and Communication In a Cluster
  • Multi-Tier Architecture With a Dispatcher

  • 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


    A Primer on J2EE Clusters for Webhosting - Cluster Architecture and Communication In a Cluster


    (Page 3 of 4 )

    Determining the cluster architecture is the first step in configuring the cluster. Since there are many diverse deployment scenarios, it is logical that the possible configurations are also diverse. Although there is no universally recommended cluster architecture, there are some universally valid rules to keep in mind when configuring the cluster.

    First, you need to consider what kind of applications will be deployed. Then, taking into account the available hardware resources, consider how you will implement load balancing and fail over. It is also very important to think in advance about which objects will be clustered and how exactly you plan to do it. As you have already guessed, there are so many possible cluster architectures that there is hardly one that fits all cases. The next three diagrams present three very basic architectures.

    A Combined Tier Cluster Without a Dispatcher

    The next diagram presents a basic confuguration for a cluster solution without a dispatcher. This is a combined tier architecture and each server runs the same objects (HTTP pages, servlets, EJBs, etc.) as the other servers in the cluster. No server instance communicates directly with clients, but all servers can communicate directly with each other and with the backend (the database) when needed to service a client's request.


    Figure 1 – A Combined Tier Cluster Without a Dispatcher

    The advantages of a combined tier without a dispatcher configuration are its simplicity and robustness, and this is absolutely enough in many situations, although it does not fully utilize the load balancing and fail over capabilities of clusters. In some cases you will choose hardware load balancing, which needs additional configuration for faultless communication with the cluster.

    Combined Tier Cluster With a Dispatcher

    The combined cluster tier with a dispatcher is basically the same as the one without a dispatecher in regard to the way objects (HTTP pages, EJBs, JSPs, etc.) are deployed. In this case, the dispatcher is part of the cluster itself, and no external hardware or software is necessary to ensure load balancing and fail over. Again, simplicity and ease of administration are among its major advantages, but the dispatcher itself could turn into a bottleneck and a single point of failure.

    Of course, it is not mandatory to have only one dispatcher. If the load is heavy, you could easily set up two or more dispatchers, and it is possible for each of them to communicate with all the servers in the cluster. It is true that several dispatchers in a cluster are like several managers of a team; it takes more communication and synchronization efforts to avoid each dispatcher giving contradicting requests to the the servers, but for servicing millions or billions of clients' requests, this is the escape from the single point of failure trap.


    Figure 2 - A Combined Tier Cluster With a Dispatcher

    More Web Hosting How-Tos Articles
    More By Blue Moon


       · Sometimes getting just a basic idea about a particular technology is what is...
     

    WEB HOSTING HOW-TOS ARTICLES

    - Choosing a Web Host for Your WordPress Blog
    - Connecting to a Server using SSH: the Fundam...
    - How to Expand a Simple Website
    - Practical Virtualization with VirtualBox
    - Other Uses for Your Web Hosting Server
    - Hosting Your Own Website: Reliability
    - Introduction to Hosting Websites
    - Choosing a Website Host
    - How to Choose a Budget Web Host
    - URL Redirection
    - How to Link a Domain Name to a Dynamic IP
    - How to Set up a Simple Website
    - Choosing the Right Kind of Web Hosting
    - Introduction to Choosing the Right Web Host
    - Strategies for Creating Domain Names






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