Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 consul ui 演示 ( https://demo.consul.io/ui/ ) 中,每个数据中心都有一个名为“global/time”的键,它显示当前时间,并自动更新。
这是领事的标准功能(在文档中找不到)吗?如果没有,它是如何实现的?
似乎不是 Consul 的标准功能。它可以使用 cron 脚本来实现,该脚本每隔几秒更新一次本地 Consul 代理中的 K/V 存储。