Exemplo n.º 1
0
        public NodeDowningAndBeingRemovedSpecSpecConfig()
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");

            CommonConfig = DebugConfig(false)
                           .WithFallback(ConfigurationFactory.ParseString("akka.cluster.auto-down-unreachable-after = off"))
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig());
        }
Exemplo n.º 2
0
        public RestartNodeSpecConfig()
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");

            CommonConfig = DebugConfig(true)
                           .WithFallback(ConfigurationFactory.ParseString(@"akka.cluster.auto-down-unreachable-after = 5s"))
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig());
        }
Exemplo n.º 3
0
 public UnreachableNodeJoinsAgainConfig()
 {
     First        = Role("first");
     Second       = Role("second");
     Third        = Role("third");
     Fourth       = Role("fourth");
     CommonConfig = ConfigurationFactory.ParseString("akka.remote.log-remote-lifecycle-events = off")
                    .WithFallback(DebugConfig(false)).WithFallback(MultiNodeClusterSpec.ClusterConfig());
     TestTransport = true; // need to use the throttler and blackhole
 }
        public AttemptSysMsgRedeliverySpecConfig()
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");

            CommonConfig = DebugConfig(false)
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig());

            TestTransport = true;
        }
Exemplo n.º 5
0
        public LeaderElectionSpecConfig(bool failureDetectorPuppet)
        {
            Controller = Role("controller");
            First      = Role("first");
            Second     = Role("second");
            Third      = Role("third");
            Forth      = Role("forth");

            CommonConfig = DebugConfig(false)
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig(failureDetectorPuppet));
        }
        public LeaderDowningNodeThatIsUnreachableConfig(bool failureDetectorPuppet)
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");
            Fourth = Role("fourth");

            CommonConfig = DebugConfig(false)
                           .WithFallback(ConfigurationFactory.ParseString(@"akka.cluster.auto-down-unreachable-after = 2s"))
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig(failureDetectorPuppet));
        }
Exemplo n.º 7
0
        public ClusterAccrualFailureDetectorMultiSpec()
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");

            CommonConfig = DebugConfig(false)
                           .WithFallback(ConfigurationFactory.ParseString("akka.cluster.failure-detector.threshold = 4"))
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig());

            TestTransport = true;
        }
Exemplo n.º 8
0
        public SingletonClusterConfig(bool failureDetectorPuppet)
        {
            First  = Role("first");
            Second = Role("second");

            CommonConfig = DebugConfig(false)
                           .WithFallback(ConfigurationFactory.ParseString(@"
                    akka.cluster.auto-down-unreachable-after = 0s
                    akka.cluster.failure-detector.threshold = 4
                "))
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig(failureDetectorPuppet));
        }
Exemplo n.º 9
0
        public JoinSeedNodeConfig()
        {
            _seed1     = Role("seed1");
            _seed2     = Role("seed2");
            _seed3     = Role("seed3");
            _ordinary1 = Role("ordinary1");
            _ordinary2 = Role("ordinary2");

            CommonConfig = MultiNodeLoggingConfig.LoggingConfig.WithFallback(DebugConfig(true))
                           .WithFallback(ConfigurationFactory.ParseString(@"akka.cluster.publish-stats-interval = 25s"))
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig());
        }
Exemplo n.º 10
0
        public NodeChurnConfig()
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");

            CommonConfig = DebugConfig(false)
                           .WithFallback(ConfigurationFactory.ParseString(@"
                  akka.cluster.auto-down-unreachable-after = 1s
                  akka.remote.log-frame-size-exceeding = 2000b
                "))
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig());
        }
Exemplo n.º 11
0
        public ConvergenceSpecConfig(bool failureDetectorPuppet)
        {
            _first  = Role("first");
            _second = Role("second");
            _third  = Role("third");
            _fourth = Role("fourth");

            CommonConfig = ConfigurationFactory.ParseString(@"akka.cluster.publish-stats-interval = 25s")
                           .WithFallback(MultiNodeLoggingConfig.LoggingConfig)
                           .WithFallback(DebugConfig(true))
                           .WithFallback(@"akka.cluster.failure-detector.threshold = 4")
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig(failureDetectorPuppet));
        }
Exemplo n.º 12
0
        public RestartNode3SpecConfig()
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");

            CommonConfig = DebugConfig(false)
                           .WithFallback(ConfigurationFactory.ParseString(@"
                    akka.cluster.auto-down-unreachable-after = off
                    akka.cluster.allow-weakly-up-members = off"))
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig());

            TestTransport = true;
        }
Exemplo n.º 13
0
        public DeterministicOldestWhenJoiningConfig()
        {
            Seed1 = Role("seed1");
            Seed2 = Role("seed2");
            Seed3 = Role("seed3");

            CommonConfig = DebugConfig(false)
                           .WithFallback(ConfigurationFactory.ParseString(@"
                    # not too quick to trigger problematic scenario more often
                    akka.cluster.leader-actions-interval = 2000 ms
                    akka.cluster.gossip-interval = 500 ms
                "))
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig());
        }
Exemplo n.º 14
0
        public RestartFirstSeedNodeSpecConfig()
        {
            Seed1 = Role("seed1");
            Seed2 = Role("seed2");
            Seed3 = Role("seed3");

            CommonConfig = ConfigurationFactory.ParseString(@"
                akka.loglevel = INFO
                akka.actor.provider = ""Akka.Cluster.ClusterActorRefProvider, Akka.Cluster""
                akka.remote.log-remote-lifecycle-events = off
                akka.cluster.auto-down-unreachable-after = off
                akka.cluster.retry-unsuccessful-join-after = 3s
            ").WithFallback(MultiNodeClusterSpec.ClusterConfig());
        }
Exemplo n.º 15
0
        public RestartNode2SpecConfig()
        {
            Seed1 = Role("seed1");
            Seed2 = Role("seed2");

            CommonConfig = DebugConfig(true)
                           .WithFallback(ConfigurationFactory.ParseString(@"
                  akka.cluster.auto-down-unreachable-after = 2s
                  akka.cluster.retry-unsuccessful-join-after = 3s
                  akka.remote.retry-gate-closed-for = 45s
                  akka.remote.log-remote-lifecycle-events = INFO
                "))
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig());
        }
Exemplo n.º 16
0
        public LeaderDowningAllOtherNodesConfig()
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");
            Fourth = Role("fourth");
            Fifth  = Role("fifth");
            Sixth  = Role("sixth");

            CommonConfig = DebugConfig(false)
                           .WithFallback(ConfigurationFactory.ParseString(@"
                    akka.cluster.failure-detector.monitored-by-nr-of-members = 2
                    akka.cluster.auto-down-unreachable-after = 1s"))
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig());
        }
Exemplo n.º 17
0
        public MemberWeaklyUpConfig()
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");
            Fourth = Role("fourth");
            Fifth  = Role("fifth");

            CommonConfig = DebugConfig(on: false)
                           .WithFallback(ConfigurationFactory.ParseString(@"
                    akka.remote.retry-gate-closed-for = 3s
                    akka.cluster.allow-weakly-up-members = on"))
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig());

            TestTransport = true;
        }
Exemplo n.º 18
0
        public JoinInProgressMultiNodeConfig()
        {
            _first  = Role("first");
            _second = Role("second");

            CommonConfig = MultiNodeLoggingConfig.LoggingConfig.WithFallback(DebugConfig(true)).WithFallback(
                ConfigurationFactory.ParseString(@"
                    akka.stdout-loglevel = DEBUG
                    akka.cluster {
                        # simulate delay in gossip by turning it off
                        gossip-interval = 300 s
                        failure-detector {
                            threshold = 4
                            acceptable-heartbeat-pause = 1 second
                        }
                    }").WithFallback(MultiNodeClusterSpec.ClusterConfig()));
        }
Exemplo n.º 19
0
        public InitialHeartbeatMultiNodeConfig()
        {
            _controller = Role("controller");
            _first      = Role("first");
            _second     = Role("second");

            CommonConfig = DebugConfig(false)
                           .WithFallback(MultiNodeLoggingConfig.LoggingConfig)
                           .WithFallback(
                ConfigurationFactory.ParseString(@"
                    akka.testconductor.barrier-timeout = 60 s
                    akka.stdout-loglevel = DEBUG
                    akka.cluster.failure-detector.threshold = 4
                    ").WithFallback(MultiNodeClusterSpec.ClusterConfig()));

            TestTransport = true;
        }
Exemplo n.º 20
0
        public SplitBrainConfig(bool failureDetectorPuppet)
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");
            Fourth = Role("fourth");
            Fifth  = Role("fifth");

            CommonConfig = DebugConfig(false)
                           .WithFallback(ConfigurationFactory.ParseString(@"
                    akka.remote.retry-gate-closed-for = 3s
                    akka.cluster.auto-down-unreachable-after = 1s
                    akka.cluster.failure-detector.threshold = 4
                "))
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig(failureDetectorPuppet));

            TestTransport = true;
        }
Exemplo n.º 21
0
        public SurviveNetworkInstabilitySpecConfig()
        {
            First   = Role("first");
            Second  = Role("second");
            Third   = Role("third");
            Fourth  = Role("fourth");
            Fifth   = Role("fifth");
            Sixth   = Role("sixth");
            Seventh = Role("seventh");
            Eighth  = Role("eighth");

            CommonConfig = DebugConfig(false)
                           .WithFallback(ConfigurationFactory.ParseString(@"
                    akka.remote.system-message-buffer-size = 100
                    akka.remote.dot-netty.tcp.connection-timeout = 10s
                "))
                           .WithFallback(MultiNodeClusterSpec.ClusterConfig());

            TestTransport = true;
        }
        public SplitBrainDowningSpecConfig()
        {
            First  = Role("first");
            Second = Role("second");
            Third  = Role("third");
            Fourth = Role("fourth");
            Fifth  = Role("fifth");

            TestTransport = true;
            CommonConfig  = DebugConfig(false)
                            .WithFallback(ConfigurationFactory.ParseString(@"
                akka {
                    cluster {
                        down-removal-margin = 1s
                        downing-provider-class = ""Akka.Cluster.SplitBrainResolver, Akka.Cluster""
                        split-brain-resolver {
                            stable-after = 1s
                            active-strategy = keep-majority
                        }
                    }
                }"))
                            .WithFallback(MultiNodeClusterSpec.ClusterConfig());
        }