public ClusterShardingSpecConfig()
{
var controller = Role("controller");
var first = Role("first");
var second = Role("second");
var third = Role("third");
var fourth = Role("fourth");
var fifth = Role("fifth");
var sixth = Role("sixth");
CommonConfig = ConfigurationFactory.ParseString(@"
akka.loglevel = INFO
akka.actor.provider = ""Akka.Cluster.ClusterActorRefProvider""
akka.remote.log-remote-lifecycle-events = off
akka.cluster.auto-down-unreachable-after = 0s
akka.cluster.down-removal-margin = 5s
akka.cluster.roles = [""backend""]
akka.persistence.journal.plugin = ""akka.persistence.journal.leveldb-shared""
akka.persistence.journal.leveldb-shared.store {
native = off
dir = ""target/journal-ClusterShardingSpec""
}
akka.persistence.snapshot-store.plugin = ""akka.persistence.snapshot-store.local""
akka.persistence.snapshot-store.local.dir = ""target/snapshots-ClusterShardingSpec""
akka.cluster.sharding {
retry-interval = 1 s
handoff-timeout = 10 s
shard-start-timeout = 5s
entity-restart-backoff = 1s
rebalance-interval = 2 s
least-shard-allocation-strategy {
rebalance-threshold = 2
max-simultaneous-rebalance = 1
}
}");
NodeConfig(new[] { sixth }, new[] { ConfigurationFactory.ParseString(@"akka.cluster.roles = [""frontend""]") });
}
}