667514 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

News News News Messages: 7 Messages: 7 Messages: 7 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

Elastica: A free rules-based EJB load balancer for JBoss

Posted by: Bob Stasyszyn on August 14, 2008 DIGG
Elastica is a highly efficient and extensible, rules-based load-balancer for JBoss 4 that adds dynamic behavior to EJB load balancing. Rules can be defined to redirect EJB requests according to request data, server performance data, or even the time of day. For example, ClientX may be conducting a promotion which will result in a flood of traffic during a certain time window. To ensure that this promotion does not affect the performance of Client Y's applications, you can configure the load-balancing rules so that requests for Client X during the time window are redirected to an isolated node group.

Load-balancing behavior is defined in an XML document as a set of rules. Elastica comes with load-balance policies such as round-robin and load-factor. The load-factor policy uses real-time server performance metrics to choose nodes with the lightest loads.

Elastica also provides enhanced node state management. A node may be in one of the following states: unavailable, offline, standby, online, and busy. For example, if a server is in standby state then all client requests are rejected but management requests are still allowed. The busy state is triggered by a throttling mechanism which sets the node to busy if it gets too many concurrent requests. In this case the call is rejected and the load-balancer automatically picks a new node to service the request. This results in a more even distribution of requests among nodes in the cluster by preventing a backlog of client requests on one node while other nodes in the cluster remain idle.

Elastica 1.3.0 is free and available for download.

Threaded replies

·  Elastica: A free rules-based EJB load balancer for JBoss by Bob Stasyszyn on Thu Aug 14 11:42:07 EDT 2008
  ·  Looks great! What's the background? by Timothy High on Fri Aug 15 15:14:05 EDT 2008
    ·  Re: Looks great! What's the background? by Bob Stasyszyn on Fri Aug 15 16:31:32 EDT 2008
    ·  Re: Looks great! What's the background? by Bela Ban on Sat Aug 16 04:21:43 EDT 2008
  ·  Very Interesting by Sacha Labourey on Sun Aug 17 04:05:41 EDT 2008
    ·  Re: Very Interesting by Bob Stasyszyn on Mon Aug 18 10:33:19 EDT 2008
  ·  Message-driven Beans by Eduardo Bobsin on Tue Aug 19 11:02:28 EDT 2008
    ·  Re: Message-driven Beans by Bob Stasyszyn on Tue Aug 19 13:46:02 EDT 2008
  Message #266267 Post reply Post reply Post reply Go to top Go to top Go to top

Looks great! What's the background?

Posted by: Timothy High on August 15, 2008 in response to Message #266219
I'm looking for exactly this type of load balancing for JBoss. The straight round-robin approach poses several problems for real scalability. I'd really be interested in giving this project a shot.

However, it looks like you just put it on SourceForge today. Is this open source? By the package names, it looks like a proprietary project that you have just decided to donate. What's the background on this project, and what are the intentions?

Also, does anyone know about any other projects that provide advanced load balancing for JBoss?

  Message #266268 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Looks great! What's the background?

Posted by: Bob Stasyszyn on August 15, 2008 in response to Message #266267
This is an open source project. ReserveAmerica is a strong believer in open source and uses a lot of open source products. Elastica was developed at ReserveAmerica with every intention of giving it back to the community.

ReserveAmerica provides services for a number of large clients in the US. Their clients conduct 'on-sales' during certain time windows throughout the year. This generates a great deal of traffic for those customers and Elastica attempts to maintain a certain QoS for their other customers during those windows. It's been in production for about a year, so it's a fairly mature product.

  Message #266284 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Looks great! What's the background?

Posted by: Bela Ban on August 16, 2008 in response to Message #266267
Another load balancing mechanism in the works is mod_cluster (http://wiki.jboss.org/wiki/ModClusterDesign). It will work in conjunction with apache and JBossWeb

  Message #266291 Post reply Post reply Post reply Go to top Go to top Go to top

Very Interesting

Posted by: Sacha Labourey on August 17, 2008 in response to Message #266219
This is very interesting, you should definitively reach out to the JBoss Clustering project team to see if you could combine efforts!

BTW what did you use for the rules?

Cheers,


Sacha
CTO of JBoss a division of Red Hat

  Message #266329 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Very Interesting

Posted by: Bob Stasyszyn on August 18, 2008 in response to Message #266291
This is very interesting, you should definitively reach out to the JBoss Clustering project team to see if you could combine efforts!
I haven’t done too much work on this since early 2007 so I’ll have to get back up to speed with what’s happening in the clustering projects.
BTW what did you use for the rules?
Rules are defined either in XML (using a home-grown schema) or programmatically - I was anticipating a graphical rules-editor. At execution time, the rules are shipped over to the client and 'compiled' into efficient runtime objects.

Bob.

  Message #266401 Post reply Post reply Post reply Go to top Go to top Go to top

Message-driven Beans

Posted by: Eduardo Bobsin on August 19, 2008 in response to Message #266219
Bob,
Does it work with MDBs?

  Message #266411 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Message-driven Beans

Posted by: Bob Stasyszyn on August 19, 2008 in response to Message #266401
I haven't tried Elastica with anything other than stateless session beans. JBossMQ (the standard JMS provider in JBoss 4) does not support distributed destinations so load-balancing would not work. Although, after reading a bit about JBoss Messaging (the standard in JBoss 5) I see that custom load balance policy factories are supported, in which case Elastica could (in theory) be used.

I'll put it on my TODO list to research this more.

New content on TheServerSide.comNew content on TheServerSide.comNew content on TheServerSide.com

Dependency Injection in Java EE 6 - Part 1

Reza Rahman explores the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (November 2, Article)

SAML: It's Not just for Web services

SAML is an XML-based standard for exchanging authentication and authorization data between security domains. The single most important problem that SAML was created to solve is the Web browser Single Sign-On problem. Many organizations are debating whether to stay with version 1.1 or move to 2.0. This article makes observations about both options. (September 28, Article)

Programming is Also Teaching Your Team

Joe Ottinger takes a look at how people learn, and applies it to the practice of programming. He notes that understanding how people learn is an essential part of working in a programming team. (September 22, Article)

Can Java EE Deliver The Asynchronous Web?

Stephen Maryka gave us an article about the Asynchronous Web and posed a number of questions that get examined like an approach to delivering Asynchronous Web capabilities through extensions to existing Java EE technologies. (July 14, Article)

JSF Flex

JavaServer Faces Flex goal is to provide users capability in creating standard Flex components, part of flexSDK which is open sourced through MPL license, as normal JSF components. This article by Ji Hoon Kim will provide an overview of creating a simple multilingual JSF page consisting of JSF Flex tags. (June 29, Article)

The Rules of SOA - A Road to a Successful SOA Implementation

In this session Jeff explores the key characteristics of successful SOA projects. He covers some of the patterns, and anti-patterns, tool sets, and strategies that he himself learned the hard way. Last, he provides a strategy and blueprint for achieving a high likelihood of success in your SOA project. (June 23, Tech Talk)

Ari Zilka Talks About Terracotta 3.1

Ari Zilka, CTO of Terracotta, Inc., talks about the new features in Terracotta 3.1, announced during JavaOne and available now. (June 15, Tech Talk)

Enterprise Application Integration, and Spring

In this Tech Talk, Josh Long explores an integration challenge using Spring Integration and walks through the implementation, employing and expanding on the basic patterns of Enterprise Application Integration to tie together components into a function integration solution, and then demonstrates how Spring Integration helps address the integration requirements. (June 15, Tech Talk)

Google Web Toolkit: An Introduction

In this Tech Talk, David Geary teaches you: The basics of Google Web Toolkit; How to implement Ajax-enabled applications in Java; Internationalization; Hooking into the browser history mechanism; Remote procedure calls. (June 4, Tech Talk)

Just Enough Early Architecture to Guide Development

Jon Kern discusses the best architecture/technical solutions and ensure that they are repeated by all developers. By tackling the architecture up-front in a serial manner, subsequent parallel development will be much more manageable and predictable. (May 28, Tech Talk)

Productive Programmer: On the Lam from the Furniture Police

This keynote describes the frustrations of modern knowledge workers in their quest to actually get some work done, and solutions for how to guard yourself against all those distractions. Neal Ford talks about environments, coding, acceleration, automation, and avoiding repetition as ways to defeat the misguided attempts to sap your ability to produce good work. (May 26, Tech Talk)

Auto-Scaling Your Existing Web Application

Gil demonstrates how new, aggressive uses of already abundant compute capacity by common applications offer competitive value for application designers. (May 21, Tech Talk)

Automating Hibernate Mapping and Queries For Java Web Development

Chris Keene introduces WaveMaker as a new way to automate the ability to generate Hibernate classes in order to more quickly bring OR mapping into an application. (May 19, Article)

Auto-Scaling Your Existing Web Application

In this session Nati Shalom demonstrates how to take a standard Java EE web application and scale it out or down dynamically without changes to the application code. Seeing as most web applications are over-provisioned to meet infrequent peak loads, this is a dramatic change because it enables growing your application as needed, when needed, without paying for unutilized resources. (May 19, Tech Talk)

Free Book: Jakarta-Struts Live

Download the entire book of Jakarta-Struts Live and learn about Struts MVC, Tiles, the Validator, DynaActionForms, plug-ins, internationalization, and more.
(Book PDF Download)

Application Server Matrix

The Application Server Matrix is a detailed listing of J2EE vendors and their application server products, with information on latest version numbers, J2EE spec support and licensing, pricing, platform support, and links to product downloads and reviews.
(Application Server Comparison Matrix)

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map