etcd:如何检查每个节点可以互相看到

发布于 2025-01-28 03:58:28 字数 160 浏览 3 评论 0原文

我在VM上有3个ETCD节点(而不是K8S)。 存在这样的问题,以至于节点还活着,但看不到彼此,在健康检查期间,错误“连接超时”。但是,每个节点都具有“ Alive”状态,Zabbix带有HTTP的“ ETCD”模板不会生成任何警报。

有什么方法可以检查节点可见性并使用Zabbix进行监视?

I have 3 etcd nodes on VMs (not k8s).
There was such problem that nodes are alive but can't see each other, error "connection timeout" during health check. But every single node has "alive" status and zabbix with "etcd by http" template doesn't generate any alerts.

Is there any way to check nodes visibility and to monitor it using zabbix?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝梦月影 2025-02-04 03:58:28

根据您运行的版本,这是一个使用3.5.2

命令 执行此操作的示例
etcddctl_api = 3 ./bin/etcdctl端点状态-CLuster -W Table -EndPoints =“ Member1.EtCD:2384,Member2.EtCD:2384,Member3.Etcd:2384”

output>输出:

|                  ENDPOINT                  |        ID        | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS |
+--------------------------------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
| http://member1.etcd:2384 | 17ef476d9d7fec5f |   3.5.2 |  1.5 MB |     false |      false |         7 |      20033 |              20033 |        |
| http://member2.etcd:2384 | 31e0ca30ec3c9d94 |   3.5.2 |  1.5 MB |     false |      false |         7 |      20033 |              20033 |        |
| http://member3.etcd:2384 | 721948abbb0522bd |   3.5.2 |  1.5 MB |     false |      false |         7 |      20033 |              20033 |        |
+--------------------------------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+

Depending upon the version you run, here's an example to do this with 3.5.2

Command
ETCDCTL_API=3 ./bin/etcdctl endpoint status --cluster -w table --endpoints="member1.etcd:2384,member2.etcd:2384,member3.etcd:2384"

Output:

|                  ENDPOINT                  |        ID        | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS |
+--------------------------------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
| http://member1.etcd:2384 | 17ef476d9d7fec5f |   3.5.2 |  1.5 MB |     false |      false |         7 |      20033 |              20033 |        |
| http://member2.etcd:2384 | 31e0ca30ec3c9d94 |   3.5.2 |  1.5 MB |     false |      false |         7 |      20033 |              20033 |        |
| http://member3.etcd:2384 | 721948abbb0522bd |   3.5.2 |  1.5 MB |     false |      false |         7 |      20033 |              20033 |        |
+--------------------------------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文