Switching folder names. authored by Konrad's avatar Konrad
Pro tip of the day:
Kiedy robicie coś z Cluster Shardingiem w Akka i chcecie, aby shardy były wrzucane tylko na konkretne instancje, to w konfiguracji instancji musice określić jej role:
```
#appplication.conf
cluster.roles = ["Server"]
...
```
Przy tworzeniu klastra w kodzie zaznaczacie, jaką rolę musi mieć instancja, aby moża było na nią wrzucać shardy:
```
ClusterSharding
.get(actorSystem)
.start(SOME_CLUSTER,
Props.create(SomeActor.class,),
ClusterShardingSettings.create(actorSystem).withRole("Server"),
messageExtractor);
```
\ No newline at end of file