public MinMembersOfRoleBeforeUpSpecConfig()
{
First = Role("first");
Second = Role("second");
Third = Role("third");
CommonConfig = ConfigurationFactory.ParseString(@"
akka.cluster.role.backend.min-nr-of-members = 2
").WithFallback(MultiNodeClusterSpec.ClusterConfigWithFailureDetectorPuppet());
NodeConfig(new List<RoleName> { First }, new List<Config>
{
ConfigurationFactory.ParseString("akka.cluster.roles =[frontend]")
});
NodeConfig(new List<RoleName> { Second, Third }, new List<Config>
{
ConfigurationFactory.ParseString("akka.cluster.roles =[backend]")
});
}
}