SpringCloud 的使用细节(1条Consul,1条Hystrix)
1.Consul
图中consumer的 check报错: TTL expired
如果该模块此前从未成功注册到该consul,报错信息形式如下
Get “http://ip-address:port/actuator/health”: dial tcp: lookup ip-address on 100.100.2.138:53: no such host
其中ip-address是微服务(如consumer)所在的host地址
解决方法是在consumer 的配置文件中加入心跳协议
原创
2020-12-07 16:15:19 ·
774 阅读 ·
0 评论