pekko/akka-samples/akka-sample-cluster
2013-04-18 22:07:53 +02:00
..
sigar AdaptiveLoadBalancingRouter and more refactoring of metrics, see #2547 2012-11-14 15:08:30 +01:00
src Temp workaround in tests for the duplicate MemberUp events, see #3239 2013-04-18 22:07:53 +02:00
pom.xml Cluster singleton actor pattern, see #2895 2013-01-25 14:00:28 +01:00
README.md replace/add READMEs for the samples (keep it simple) 2012-09-25 09:27:13 +02:00

Cluster Sample

This sample is meant to be used by studying the code; it does not perform any astounding functions when running it. If you want to run it, check out the akka sources on your local hard drive, follow the instructions for setting up Akka with SBT. When you start SBT within the checked-out akka source directory, you can run this sample by typing

akka-sample-cluster-experimental/run-main sample.cluster.simple.SimpleClusterApp 2551

and then from another terminal start more cluster nodes like this:

akka-sample-cluster-experimental/run-main sample.cluster.simple.SimpleClusterApp

Then you can start and stop cluster nodes and observe the messages printed by the remaining ones, demonstrating cluster membership changes.

You can read more in the Akka docs.