orchestrator
supports these key-value stores:
orchestrator
supports master discovery by storing clusters' masters in KV.
"KVClusterMasterPrefix": "mysql/master",
"ConsulAddress": "127.0.0.1:8500",
"ZkAddress": "srv-a,srv-b:12181,srv-c",
KVClusterMasterPrefix
is the prefix to use for master discovery entries. As example, your cluster alias is mycluster
and the master host is some.host-17.com
then you will expect an entry where:
- The Key is
mysql/master/mycluster
- The Value is
some.host-17.com:3306
In addition to the above, orchestrator
also breaks down the master entries and adds the follows (illustrating via example above):
mysql/master/mycluster/hostname
, value issome.host-17.com
mysql/master/mycluster/port
, value is3306
mysql/master/mycluster/ipv4
, value is192.168.0.1
mysql/master/mycluster/ipv6
, value is<whatever>
The /hostname
, /port
, /ipv4
and /ipv6
extensions are automatically added for any master entry.
If specified, ConsulAddress
indicates an address where a Consul HTTP service is available. If unspecified, no Consul access is attempted.
UNIMPLEMENTED YET If specified, ZkAddress
indicates one or more ZooKeeper servers to connect to. Default port per server is 2181
. All the following are equivalent:
srv-a,srv-b:12181,srv-c
srv-a,srv-b:12181,srv-c:2181
srv-a:2181,srv-b:12181,srv-c:2181