You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/03/04 15:47:47 UTC

[GitHub] [dubbo-go] flycash commented on issue #1072: 多注册中心配置优先级,主注册中心节点全部宕机后,其余注册中心节点会等待主注册中心的链接重试

flycash commented on issue #1072:
URL: https://github.com/apache/dubbo-go/issues/1072#issuecomment-790714335


   我先捋一捋这个问题。其实是应用在prefer的注册中心挂掉之后,不会立刻调度连接下一个,而是尝试重连,失败再调度下一个。
   
   如果问题是这样的话,那么这个问题会比较恶心。
   
   我觉得问题的根源在于,节点在连不上注册中心之后,无法判断这个注册中心是临时崩了,又或者网络导致连不上,还是永久性的下线了。
   
   从现有的做法来看,应该是认为,连不上并不意味着挂掉,因此会尝试重连。
   
   所以问题的根源就在于,如果不引入重试机制,那么我们在连不上的时候就切换下一个,可能会误伤——即可能只是网络抖动临时连不上。
   
   所以我们需要的是一个清楚的辨别两种情况的机制。目前来看比较难识别这两种可能。


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org