Serf : a tool for cluster membership, failure detection, and orchestration that is decentralized, fault-tolerant and highly available.
也安裝了 dnsmasq,container 的 nameserver 可設定為自己。
新增移除叢集節點時,會自動更新叢集節點 hostname 與 IP 的資訊。
執行 fayehuang/centos-serf docker container
docker run -d -p 2222:22 --name=node2 --hostname=node2.example.local --dns=127.0.0.1 -e SERF_JOIN_IP=<node_IP> fayehuang/centos-serf
docker run -d -p 2222:22 --name=node1 --hostname=node1.example.local --dns=127.0.0.1 fayehuang/centos-serf
Content type
Image
Digest
sha256:7a87d0231…
Size
241.8 MB
Last updated
about 11 years ago
docker pull fayehuang/centos-serf