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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to