pekko/akka-samples/akka-sample-cluster
Patrik Nordwall b8b65c9153 Cluster member age, and usage in singleton, see #3195
* Assign internal upNumber when member is moved to Up
* Public API Member.isOlder
* Change cluster singleton to use oldest member instead of leader
* Update samples and docs
2013-05-03 13:38:35 +02:00
..
sigar AdaptiveLoadBalancingRouter and more refactoring of metrics, see #2547 2012-11-14 15:08:30 +01:00
src Cluster member age, and usage in singleton, see #3195 2013-05-03 13:38:35 +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.