Hazelcast (http://hazelcast.org/) is a distributed in-memory data grid. It can be used as a cache or queuing mechanism across a cluster of JVMs. Hazelcast can be embedded in the JVM or can run as an external server. Hazelcast is open source (https://github.com/hazelcast/hazelcast) but the complete commercial version is closed source (http://hazelcast.com/products/hazelcast-enterprise/) and not very cheap. Installations running at very high scale (100k+ users, 10+ nodes) should probably read the Deployment Best Practices and consider paying for the enterprise version.
Hazelcast installation is pretty simple and is covered in their documentation: http://hazelcast.org/documentation/
This is a really simple way to get things up and running for developers (you should go to the hazelcast community for assistance though). If you want to run hazelcast servers for a production cluster then you need to go to the official hazelcast documentation and the hazelcast community for help. Sakai just connects to the hazelcast server so you should not ask the Sakai community for assistance.
- Download the version of Hazelcast which matches the version used in your Sakai installation (e.g. 3.2.3, check the kernel/pom.xml file)
- Extract the zip to a folder called hazelcast (this will be the hazelcast ROOT)
- Run the hazelcast server using the "server" script in the bin directory.
Startup the hazelcast management center by putting the war into a servlet container like tomcat OR using jetty-runner like so:
- Connect to the running hazelcast server (or servers if you have a cluster of them) using the management center (login as prompted)
- You will probably be shown a warning about how the hazelcast cluster is not configured. Just close the warning and use the Update Cluster URL to connect to the default dev cluster (all default settings should work fine unless you changed something). Then you should see the center console as shown.
Click on the $ Console and paste the following commands (this will create some map data)
NOTE: You have to run these one at a time!
- Click on the Home button and you should now see the 2 maps (test, test2) and the distribution shown in the console
- Click on the test map and then click the Map Browser and enter AZ to view a specific entry in the map
- Done! (you have a simple hazelcast server up and running for dev purposes)
Configuring Sakai to use Hazelcast caching