You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "guipengfei (via GitHub)" <gi...@apache.org> on 2023/10/16 06:29:17 UTC
[I] 泛化调用很久才能调用到新启动的provider服务 [dubbo]
guipengfei opened a new issue, #13202:
URL: https://github.com/apache/dubbo/issues/13202
1. 版本:
dubbo3.0.8 + nacos2.1.0 + SpringCloudGateway泛化调用
2. 问题描述:
网关作为comsumer,泛化调用的方式调用provider服务,但新启动的provder副本(如k8s上已有2个副本时,**本地再启动一个副本**),频繁出现需要很久才能调用到本地副本情况(5分钟甚至半小时以上),**之后一切正常**。
3. 排查:
- 查看网关日志,在自定义路由里,可用的invokers还是只有原本的2个副本
```
public class MyRouter extends AbstractRouter {
@Override
public <T> RouterResult<Invoker<T>> route(List<Invoker<T>> invokers, URL url, Invocation invocation, boolean needToPrintMessage) throws RpcException {
**// 此处日志打印,取到的invokers,只有原本的k8s上的2个副本**
log.info(...)
// 调用header头指定ip的服务
...
}
}
```
- nacos上服务注册正常,服务列表,可看到3个provider信息;
- 本地qos请求 curl http://127.0.0.1:22222/ls ,服务出现在列表
As Provider side:
+---------------------------------------------------------------------------+-----------------------------------------------------------------+
| Provider Service Name | PUB |
+---------------------------------------------------------------------------+-----------------------------------------------------------------+
| dubbo/com.demo.IDemoService:1.0.0 |nacos-A(Y)/nacos-I(Y)/nacos-A(Y)/nacos-I(Y)/nacos-A(Y)/nacos-I(Y)|
......
- 网络正常,可在网关服务器telnet通本地ip+dubbo端口
4. 问题:
这个超长时间的延迟,会是啥原因导致的呢?(在下午繁忙时,出现频率更高!)
--
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: notifications-unsubscribe@dubbo.apache.org.apache.org
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
Re: [I] Unable to access newly started service in time [dubbo]
Posted by "guipengfei (via GitHub)" <gi...@apache.org>.
guipengfei closed issue #13202: Unable to access newly started service in time
URL: https://github.com/apache/dubbo/issues/13202
--
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: notifications-unsubscribe@dubbo.apache.org
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
Re: [I] 泛化调用很久才能调用到新启动的provider服务 [dubbo]
Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #13202:
URL: https://github.com/apache/dubbo/issues/13202#issuecomment-1765920530
Implement the notify interface in `MyRouter` to see when the service is pushed. Also take a look at the log pushed by `~/logs/nacos/naming.log`
--
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: notifications-unsubscribe@dubbo.apache.org
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