I've just released JBoss Cache 3.1.0.GA, codenamed Cascabel. The big feature in this release is non-blocking state transfer, which allows for state to be transferred to new joiners in a cluster without freezing the cluster. I blogged about non-blocking state transfer some months ago, here.
Other changes include some critical bug fixes such as JBCACHE-1490, JBCACHE-1496, JBCACHE-1507 and JBCACHE-1508. New features - in addition to non-blocking state transfer - include a new lock-per-Fqn scheme for MVCC, which provides greater concurrency than the striped lock mechanism at the cost of memory usage and a slight performance hit.
The complete list of JIRAs addressed is here.
Downloads, documentation, etc are all in the usual place.
Enjoy!
Manikc
Tuesday, 5 May 2009
JBoss Cache 3.1.0 Cascabel in final release
Thursday, 2 April 2009
JBoss Cache 3.1.0.CR1 released
Announcing the first CR on Cascabel. Click here for the changelog, downloads and docs are in the usual places. Please grab them and provide as much feedback as possible, especially on non-blocking state transfer.
Cheers
Manik
Posted by
Manik Surtani
at
17:26
4
comments
Friday, 20 March 2009
JBoss Cache 3.1.0.BETA1
3.1.0's been somewhat delayed due to problems with Non-blocking State Transfer, but these have finally been overcome.
Here's a quick summary first. The first Beta of JBoss Cache 3.1.0 Cascabel is now available in the usual places (download, docs, forums). The main feature of Cascabel is Non-blocking State Transfer, a new and highly efficient state transfer mechanism. Also, since MVCC was introduced in JBoss Cache 3.0.0 Naga, lock striping was used for the write locks held by nodes. While lock striping is efficient, it always exposes a slight risk of deadlock. In Cascabel, we now offer a lock-per-Fqn option for MVCC, which is more expensive than striped locks but is guaranteed to be deadlock-free. In addition, there are a host of bug fixes across the board, so this is definitely a version you should upgrade to if you use JBoss Cache 3.0.x.
Now for the details, starting with Non-blocking State Transfer (NBST). NBST has certain pre-requisites, specifically, that you use MVCC for locking and that you use JGroups' STREAMING_STATE_TRANSFER protocol. NBST works by allowing state to be read, free of locks thanks to MVCC, streamed to the receiver, all the while allowing the sender to continue changing state. What is key is that the sender also maintains a transaction log for this period. Once the state is delivered to the recipient and applied, the transaction log is then also streamed across, until the transaction log reaches a predetermined, small size - or it is detected that the transaction log grows faster than it can be streamed. In either of these cases, a lock is acquired on all processing, causing the sender to block all new transactions for a short period while the last of the transaction log is streamed and applied. After this, both the sender and receiver release locks and start processing requests, the new joiner now at the same state as the sender.
The main benefit of this approach is that the sender is not blocked for the majority of the time while generating and streaming state (made all the more apparent when there is a lot of state to send) and the cluster proceeds to operate. Naturally, the implementation is a fair deal more complicated than what is described quite simplistically above, with a fair few more details and edge cases to be dealt with. :-)
NBST is disabled by default, but can be enabled by using a simple configuration switch (Configuration.setUseNonBlockingStateTransfer() or <stateretrieval nonblocking="true" />).
So do give it a whirl, feedback, as always, is appreciated.
Cheers
Manik
Posted by
Manik Surtani
at
15:29
4
comments
Labels: beta, cascabel, jboss cache, NBST
Friday, 13 February 2009
What to expect in JBoss Cache
So we're about to cut JBoss Cache 3.1.0 "Cascabel" - and the main feature here is the high-performance non-blocking state transfer (NBST) scheme we've been planning for a while now, held back due to the lack of non-blocking reads in the past. Thanks to MVCC, we now have non-blocking reads, and thanks to Jason Greene, an impressive non-blocking state transfer implementation. Expect a beta of Cascabel to be made available in the coming days/weeks, along with a detailed write-up of NBST.
But in the meantime, I've just cut JBoss Cache 3.0.3.CR1. This CR fixes a number of bugs - some critical - on Naga, and I strongly recommend anyone using Naga to download and test out 3.0.3.CR1. I expect this to be a very short CR cycle so please test heavily and provide as much feedback as you can, I expect a 3.0.3.GA to be released very soon.
You can download the CR in the usual place on SourceForge, or grab it from our Maven2 repository.
Cheers
Manik
Posted by
Manik Surtani
at
15:32
0
comments