简体   繁体   中英

Service discovery with Percona XtraDB Cluster docker image

I'd like to set up a Percona XtraDB Cluster using this Docker image . The documentation for the Docker image assumes the use of the etcd discovery service.

My question is this: Doesn't Docker ship with a built in service discovery (ie DNS server), makeing the use of etcd redundant? Or are there use cases where the build in service discovery is still needed? How would one typically go about using the build in service discovery for muliti host setups?

From what I have read, Docker discovery service is only available on docker-swarm-based images/setups. This PXC Docker image is not swarm capable and thus uses an external discovery service. Running etcd is completely optional, as stated on the Docker image README. You can manually specify each other node when starting multiple nodes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM