【发布时间】:2021-04-08 05:26:43
【问题描述】:
在命令行中,我可以运行以下命令来获取etcd 集群的集群运行状况,如下所示:
etcdctl cluster-health
member ac92bd2949b92e96 is healthy: got healthy result from https://172.31.26.170:2379
member bebdb18e18d35331 is healthy: got healthy result from https://172.31.21.117:2379
member c1c4d5cb0d474453 is healthy: got healthy result from https://172.31.18.126:2379
但是,我似乎找不到 API specification 中记录的相同功能。如何通过 REST API 以编程方式确定集群是否健康?
【问题讨论】:
标签: etcd