InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Terracotta improves failover support, adds clustering for 5 more frameworks

Posted by Floyd Marinescu on May 01, 2007

Sections
Development,
Architecture & Design
Topics
Java ,
Clustering & Caching
Tags
Terracotta ,
Lucene ,
iBATIS ,
RIFE
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

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.