Clustering can be useful for load-balance and fault-tolerance. It also allows a snapshot to be taken without placing the whole system in read-only mode. That's because you can use a slave to take snapshot while the rest of the nodes continue to run like nothing as happened, in other words, only the slave taking the snapshot needs to enter read-only mode.
To create a Space4J cluster is very easy and simple. Refer to the PhoneBookCluster.java program for an example. We also have a stress program to test the cluster feature.
The source code for PhoneBookCluster.java is below:
This message was edited 3 times. Last update was at 18/09/2010 15:34:52
|