These are chat archives for atomix/atomix

4th
Aug 2017
Johno Crawford
@johnou
Aug 04 2017 07:22
:+1:
Kevin Daly
@kedaly
Aug 04 2017 14:27
@kuujo What is the best way of configuring BalancingClusterManager in a situation when I might be say starting with 2 nodes, then adding more later? Right now this code seems to crash

            replica = AtomixReplica.builder(me)
                    .withStorage(Storage.builder()
                            .withDirectory(new File(Switches.getDataDir()))
                            .withStorageLevel(StorageLevel.DISK)
                            .build()
                    )
                    .withTransport(new NettyTransport())
                    .withSessionTimeout(timeout)
                    .withType(type)
                    .withClusterManager(
                            BalancingClusterManager.builder()
                                    .withQuorumHint(servers.size())
                                    .withBackupCount(servers.size())
                                    .build()
                    )
                    .build();
me is defined as the local bind address
and type is type = AtomixReplica.Type.ACTIVE;