pekko/akka-samples/akka-sample-cluster
Patrik Nordwall ebadd567b2 !act,rem,clu #3549 Simplify and enhance routers
* Separate routing logic, to be usable stand alone, e.g. in actors
* Simplify RouterConfig, only a factory
* Move reading of config from Deployer to the RouterConfig
* Distiction between Pool and Group router types
* Remove usage of actorFor, use ActorSelection
* Management messages to add and remove routees
* Simplify the internals of RoutedActorCell & co
* Move resize specific code to separate RoutedActorCell subclass
* Change resizer api to only return capacity change
* Resizer only allowed together with Pool
* Re-implement all routers, and keep old api during deprecation phase
* Replace ClusterRouterConfig, deprecation
* Rewrite documentation
* Migration guide
* Also includes related ticket:
  +act #3087 Create nicer Props factories for RouterConfig
2013-10-16 09:27:13 +02:00
..
sigar AdaptiveLoadBalancingRouter and more refactoring of metrics, see #2547 2012-11-14 15:08:30 +01:00
src !act,rem,clu #3549 Simplify and enhance routers 2013-10-16 09:27:13 +02: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.