Ejemplo n.º 1
0
        public NodeUpConfig()
        {
            First  = Role("first");
            Second = Role("second");

            CommonConfig = DebugConfig(false)
                           .WithFallback(MultiNodeClusterSpec.ClusterConfigWithFailureDetectorPuppet());
        }
Ejemplo n.º 2
0
        public NodeMembershipSpecConfig()
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");

            CommonConfig = MultiNodeClusterSpec.ClusterConfigWithFailureDetectorPuppet();
        }
Ejemplo n.º 3
0
        public MembershipChangeListenerExitingConfig()
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");

            CommonConfig = DebugConfig(false)
                           .WithFallback(MultiNodeClusterSpec.ClusterConfigWithFailureDetectorPuppet());
        }
        public NodeLeavingAndExitingAndBeingRemovedSpecConfig()
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");

            CommonConfig = DebugConfig(false)
                           .WithFallback(MultiNodeClusterSpec.ClusterConfigWithFailureDetectorPuppet());
        }
Ejemplo n.º 5
0
        public DisallowJoinOfTwoClusterSpecConfig()
        {
            a1 = Role("a1");
            a2 = Role("a2");
            b1 = Role("b1");
            b2 = Role("b2");
            c1 = Role("c1");

            CommonConfig = MultiNodeClusterSpec.ClusterConfigWithFailureDetectorPuppet();
        }
Ejemplo n.º 6
0
        public MinMembersBeforeUpSpecConfig()
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");

            CommonConfig = ConfigurationFactory.ParseString(@"
                akka.cluster.min-nr-of-members = 3
            ").WithFallback(MultiNodeClusterSpec.ClusterConfigWithFailureDetectorPuppet());
        }
        public NodeLeavingAndExitingAndBeingRemovedSpecConfig()
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");

            CommonConfig = DebugConfig(false)
                           .WithFallback(ConfigurationFactory.ParseString("akka.cluster.auto-down-unreachable-after = 0s"))
                           .WithFallback(MultiNodeClusterSpec.ClusterConfigWithFailureDetectorPuppet());
        }
        public DisallowJoinOfTwoClusterSpecConfig()
        {
            a1 = Role("a1");
            a2 = Role("a2");
            b1 = Role("b1");
            b2 = Role("b2");
            c1 = Role("c1");

            CommonConfig = ConfigurationFactory.ParseString("")
                           .WithFallback(MultiNodeClusterSpec.ClusterConfigWithFailureDetectorPuppet());
        }
Ejemplo n.º 9
0
        public LeaderLeavingSpecConfig()
        {
            _first  = Role("first");
            _second = Role("second");
            _third  = Role("third");

            CommonConfig = MultiNodeLoggingConfig.LoggingConfig
                           .WithFallback(DebugConfig(true))
                           .WithFallback(@"akka.cluster.auto-down-unreachable-after = 0s
akka.cluster.publish-stats-interval = 25 s")
                           .WithFallback(MultiNodeClusterSpec.ClusterConfigWithFailureDetectorPuppet());
        }
Ejemplo n.º 10
0
        public TransitionSpecConfig()
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");

            CommonConfig = DebugConfig(false)
                           .WithFallback(ConfigurationFactory.ParseString(@"
                  akka.cluster.periodic-tasks-initial-delay = 300s
                  akka.cluster.publish-stats-interval = 0s
                "))
                           .WithFallback(MultiNodeClusterSpec.ClusterConfigWithFailureDetectorPuppet());
        }
Ejemplo n.º 11
0
 public ClusterDeathWatchSpecConfig()
 {
     _first  = Role("first");
     _second = Role("second");
     _third  = Role("third");
     _fourth = Role("fourth");
     _fifth  = Role("fifth");
     DeployOn(_fourth, @"/hello.remote = ""@first@""");
     CommonConfig = ConfigurationFactory.ParseString(@"akka.cluster.publish-stats-interval = 25s")
                    .WithFallback(MultiNodeLoggingConfig.LoggingConfig)
                    .WithFallback(DebugConfig(true))
                    .WithFallback(MultiNodeClusterSpec.ClusterConfigWithFailureDetectorPuppet());
 }
Ejemplo n.º 12
0
        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]")
            });
        }