InfoQ

News

Terracotta improves failover support, adds clustering for 5 more frameworks

Posted by Floyd Marinescu on May 01, 2007 03:40 PM

Community
Java
Topics
Clustering & Caching
Tags
iBATIS ,
Lucene ,
RIFE ,
Terracotta
Open source JVM heap-level clustering/replication solution Terracotta released version 2.3 yesterday, adding TCP/IP-based active/passive failover, cluster-membership notification events, and a new pre-configured module system for quick clustering of Tomcat, Weblogic, Spring, Lucene, RIFE, Struts 1, Cglib, and iBatis.  Also, the Jetty founders have been working on clustering Ajax cometd applications, and Wicket leads are enabling Wicket clustering, both with Terracotta. RIFE lead developer Geert Bevin has also been hired by Terracotta recently. VC-backed Terracotta went open source this past December under MPL-based license.  InfoQ spoke to Terracotta CTO Ari Zilka and VP Product Operations Jeff Hartley to find out more. Terracotta is getting about 5000 downloads/month, according to Ari.

Terracotta uses a hub and spoke architecture where the central server to coordinates heap changes across JVMs, pushing field-level changes to each server on an as-needed basis.  The Terracotta "hub" prior to v2.3 was itself clusterable for fault-tolerance using an active/passive solution using shared disk (such as clustered NFS or SAN),  which can be expensive. As of v2.3 Terracotta can cluster via multi-cast cluster of peer 2 peer Terracotta hub-servers (a separate tier from the actual application servers that are being clustered with Terracottta). Ari Zilka explained:
"Previously, the passive would come up and try to acquire the disk lock that the active was holding, the active would hold it until it crashed, then the passive would take over. You could even chain passives in any order.  In 2.3 the definition of the active or passive is not based only who starts first and acquires a lock, it's based on a vote in a peer 2 peer cluster of Terracotta servers. Whoever is voted active becomes the active in an election process, and then evreything that is sent to him via the appserver tier he sends to the other guys multicast. They heartbeat each other and when he dies they all find out and start another election. Any one of the other passives can become the new active.
The other major notable technical addition to v2.3 is the addition of cluster-membership notifications.  According to Jeff Hartley, "if a node joins or leaves a cluster, a developer can make use of this information for example in grid computing type configurations,"  Ari continued: "this is helpful for our own user base which currently runs Terracotta DSO for clustering and then JGroups for membership status, our user community wanted cluster-membership events so they can stop using JGroups and stay pure-Terracotta).

Terracotta’s 2.3 also changes the way Terracotta integrates with other popular frameworks. Rather than having separate distributions of Terracotta for each framework, the single Terracotta downoad now includes "configuration modules" which provide pre-built configurations that customize Spring, Tomcat, and WebLogic, and additionally v2.3 adds pre-built support for Lucene, RIFE, Struts, Cglib, and iBatis for clusterability.   JBoss is also officially supported now.

Explaining Terracotta in the context of other clustering solutions, Ari said:
What we're really introducing is the ability to inject high availability into the JVM, by allowing multiple physical JVMs to appear as one or more logical JVMs. So if you lose any one machine/instance you're not really losing anything it was working on because the other JVMs can seamlessly attach to the memory that JVM was working on. We're high availability at very high scales as opposed to scalability with reasonable guarantees of availability.
Future version of Terracotta will include integrations with Glassfish, Wicket, and other frameworks.  Work on an active-active failover strategy (having multiple active hub servers) is also being worked on for later this year.    See also InfoQ's definitive introduction to Terracotta technical article, as well as Spring Webflow with Terracotta.

No comments

Watch Thread Reply

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.