m3 icon indicating copy to clipboard operation
m3 copied to clipboard

m3dbnode -- Allow for static topology peer list to be specified with CLI flags

Open nerd0 opened this issue 8 years ago • 1 comments

To configure a static topology requires a list of hosts/peers

            hosts:
                - hostID: m3dbnode01
                  listenAddress: "<ip_address1>:9000"
                - hostID: m3dbnode02
                  listenAddress: "<ip_address2>:9000"
                - hostID: m3dbnode03
                  listenAddress: "<ip_address3>:9000"

This requires developers why want to evaluate a multi-node cluster to ensure that three different YAML files are configured identically as well as reference the appropriate YAML file for each corresponding instance.

To alleviate this overhead perhaps the compile binary could accept another flag, peerList. This flag could be a simple comma separated list of peers to include within the multi-node cluster.

m3dbnode -f config.yaml -p <ip_address1>:9000,<ip_address2>:9000,<ip_address3>:9000

One potential problem with enabling this feature could lead to suboptimal techniques of creating larger multi-node clusters. That is developers might not pursue the dynamic topology feature which is backed by etcd.

nerd0 avatar May 18 '18 16:05 nerd0

I think we make our embedded etcd setup more user friendly to use, that way users don't need to run a dedicated etcd cluster and they don't need to print a different config per host either.

The static topology approach is always going to be a significant limitation, we only kind of committed to making it possible to do to support easy config for setting up a benchmark cluster.

robskillington avatar May 18 '18 17:05 robskillington