Consul 常见问题与 FAQ

发布时间: 更新时间: 总字数:136 阅读时间:1m 作者:IP:上海 网址

Consul 使用过程中的 FAQ

联网版本检查

  • 现象:日志中出现如下错误
text
==> Failed to check for updates: Get https://checkpoint-api.hashicorp.com/v1/check/consul?arch=amd64&os=linux&signature=33c85560-784e-27cf-802d-6ae0ec8d197f&version=1.1.0: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
  • 解决方式

Consul 开源版配置中直接提供 disable_update_check: true 选项(或启动时添加命令行参数 -disable-update-check)即可禁用版本检查。企业版 v1.0.5 仅是将该项默认值调整为 true。

text
      add(&f.Config.DisableUpdateCheck, "disable_update_check", "Disable consul update check.")