NodeGroupConfig cfg = new NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(2); this.host.setNodeGroupConfig(cfg);
NodeGroupConfig cfg = new NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(1); this.host.setNodeGroupConfig(cfg);
NodeGroupConfig cfg = new NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(1); this.host.setNodeGroupConfig(cfg);
NodeGroupConfig cfg = new NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(2); this.host.setNodeGroupConfig(cfg);
NodeGroupConfig cfg = new NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(1); this.host.setNodeGroupConfig(cfg);
NodeGroupConfig cfg = new NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(1); this.host.setNodeGroupConfig(cfg);
NodeGroupConfig cfg = new NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(1); this.host.setNodeGroupConfig(cfg);
NodeGroupService.NodeGroupConfig cfg = new NodeGroupService.NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(1); this.host.setNodeGroupConfig(cfg);
NodeGroupService.NodeGroupConfig cfg = new NodeGroupService.NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(1); this.host.setNodeGroupConfig(cfg);
this.replicationTargetFactoryLink = Replication1xExampleFactoryService.SELF_LINK; this.host.joinNodesAndVerifyConvergence(this.host.getPeerCount() - 1); NodeGroupService.NodeGroupConfig cfg = new NodeGroupService.NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(1); this.host.setNodeGroupConfig(cfg);
NodeGroupConfig cfg = new NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(1); this.host.setNodeGroupConfig(cfg);
NodeGroupService.NodeGroupConfig cfg = new NodeGroupService.NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(1); this.host.setNodeGroupConfig(cfg);
this.replicationTargetFactoryLink = Replication1xExampleFactoryService.SELF_LINK; this.host.joinNodesAndVerifyConvergence(this.host.getPeerCount() - 1); NodeGroupService.NodeGroupConfig cfg = new NodeGroupService.NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(1); this.host.setNodeGroupConfig(cfg);
setUp(this.nodeCount); NodeGroupService.NodeGroupConfig cfg = new NodeGroupService.NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.MINUTES.toMicros(5); this.host.setNodeGroupConfig(cfg);
NodeGroupService.NodeGroupConfig cfg = new NodeGroupService.NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(1); this.host.setNodeGroupConfig(cfg);
NodeGroupConfig cfg = new NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(1); this.host.setNodeGroupConfig(cfg);
setUp(this.nodeCount); NodeGroupService.NodeGroupConfig cfg = new NodeGroupService.NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.MINUTES.toMicros(5); this.host.setNodeGroupConfig(cfg);
public void setUp(int nodeCount) throws Throwable { CommandLineArgumentParser.parseFromProperties(this); if (this.host.getInProcessHostMap().isEmpty()) { this.host.setStressTest(this.host.isStressTest); this.host.setPeerSynchronizationEnabled(true); this.host.setUpPeerHosts(nodeCount); NodeGroupService.NodeGroupConfig cfg = new NodeGroupService.NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(1); this.host.setNodeGroupConfig(cfg); for (VerificationHost host : this.host.getInProcessHostMap().values()) { host.setMaintenanceIntervalMicros(TimeUnit.MILLISECONDS.toMicros( VerificationHost.FAST_MAINT_INTERVAL_MILLIS)); host.waitForServiceAvailable(ExampleService.FACTORY_LINK); CheckpointService.CheckpointState s = new CheckpointService.CheckpointState(); s.timestamp = 0L; s.factoryLink = TEST_FACTORY_LINK; Operation op = Operation.createPost(host, CheckpointService.FACTORY_LINK) .setBody(s); this.host.getTestRequestSender().sendAndWait(op); } this.host.joinNodesAndVerifyConvergence(nodeCount, true); this.host.waitForReplicatedFactoryServiceAvailable( UriUtils.buildUri(this.host.getPeerHost(), ExampleService.FACTORY_LINK)); } }
private void doVerifyOwnerSelection(Class<? extends Service> factoryType, String factoryLink) throws Throwable { Map<String, ExampleServiceState> exampleServices; this.replicationTargetFactoryLink = factoryLink; setUp(this.nodeCount); this.host.joinNodesAndVerifyConvergence(this.host.getPeerCount()); NodeGroupConfig cfg = new NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(1); this.host.setNodeGroupConfig(cfg); this.host.waitForNodeGroupConvergence(); for (VerificationHost h1 : this.host.getInProcessHostMap().values()) { h1.startServiceAndWait(FactoryService.create(factoryType), factoryLink, null); } this.host.waitForReplicatedFactoryServiceAvailable( UriUtils.buildUri(this.host.getPeerHost(), factoryLink), ServiceUriPaths.DEFAULT_NODE_SELECTOR); exampleServices = createExampleServices(this.host.getPeerHostUri()); // Verify that all services are replicated with with replication factor of 1. this.host.waitForReplicatedFactoryChildServiceConvergence( getFactoriesPerNodeGroup(factoryLink), exampleServices, this.exampleStateConvergenceChecker, exampleServices.size(), 0, 1); }
public void setUp(int nodeCount) throws Throwable { CommandLineArgumentParser.parseFromProperties(this); if (this.host.getInProcessHostMap().isEmpty()) { this.host.setStressTest(this.host.isStressTest); this.host.setPeerSynchronizationEnabled(true); this.host.setUpPeerHosts(nodeCount); NodeGroupService.NodeGroupConfig cfg = new NodeGroupService.NodeGroupConfig(); cfg.nodeRemovalDelayMicros = TimeUnit.SECONDS.toMicros(1); this.host.setNodeGroupConfig(cfg); for (VerificationHost host : this.host.getInProcessHostMap().values()) { host.setMaintenanceIntervalMicros(TimeUnit.MILLISECONDS.toMicros( VerificationHost.FAST_MAINT_INTERVAL_MILLIS)); host.waitForServiceAvailable(ExampleService.FACTORY_LINK); CheckpointService.CheckpointState s = new CheckpointService.CheckpointState(); s.timestamp = 0L; s.factoryLink = TEST_FACTORY_LINK; Operation op = Operation.createPost(host, CheckpointService.FACTORY_LINK) .setBody(s); this.host.getTestRequestSender().sendAndWait(op); } this.host.joinNodesAndVerifyConvergence(nodeCount, true); this.host.waitForReplicatedFactoryServiceAvailable( UriUtils.buildUri(this.host.getPeerHost(), ExampleService.FACTORY_LINK)); } }