错误日志:
2018-11-06 07:46:59,746 ERROR [registry-vert.x-eventloop-thread-2][][http.ServiceRegistryClientImpl 688] watcher connect to service center server failed, microservice 19a50f38e0f411e8b1c30255ac105523, Websocket connection attempt returned HTTP status code 404
问题原因:
在公有云环境下,服务调用是经过网关的,不支持使用websoket,在这种场景下,使用pull机制来更新实例。 需要设置如下参数:
cse: service: instance: watch: false #使用API网关访问,只能使用PULL模式
公有云环境连接服务中心的说明参考:
https://huaweicse.github.io/cse-java-chassis-doc/servicecomb-using-cse/connect-service-center.html
在公有云环境中,服务调用通过网关进行,不支持使用WebSocket。针对此问题,本文介绍了一个具体案例,即服务注册连接失败的情况,并提供了相应的解决方案,建议在该场景下使用Pull机制来更新实例,同时给出了必要的配置参数。
1096

被折叠的 条评论
为什么被折叠?



