You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/10/26 03:21:38 UTC
[GitHub] [servicecomb-java-chassis] fanjiwang1992 commented on issue #2624: 服务发现时,微服务可用性判断不合理
fanjiwang1992 commented on issue #2624:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2624#issuecomment-951522804
> 还有一个点 使用mesher注册上来的微服务 会携带他们自己的admin api,这个admin api 一般是用来检测服务可用性的 这时 使用方一般会使用本地监听 即127.0.0.1 这样会导致sdk 校验时出问题。 针对以上问题,我们目前重写了这部分代码,同时想与社区沟通一下思路。
>
> ### 思路一
> 微服务支持多种协议,按理说,我应该校验每种协议的ip port是否能ping通,所以应该对每一个ep进行校验,但是这里就会出现 mesher这个特殊场景,目前是准备特殊场景特殊处理,排查eps里面的本地监听,涉及ipv4 v6 逻辑看起来会比较冗余
>
> ### 思路二
> 对多个eps进行校验时,只要有一个能ping通,即认为这个服务是可用的
这个问题 其实不仅是mesher注册到注册中心存在127.0.0.1本地监听,javaSDK也会存在,如果存在多协议的话,某个协议以127.0.0.1本地监听地址注册到注册中心,当前的默认的telnet机制,也会存在这个问题
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org