Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dubbo Admin 标签路由功能未生效 #1224

Open
2 tasks
linkai0001 opened this issue Aug 30, 2023 · 1 comment
Open
2 tasks

Dubbo Admin 标签路由功能未生效 #1224

linkai0001 opened this issue Aug 30, 2023 · 1 comment

Comments

@linkai0001
Copy link

linkai0001 commented Aug 30, 2023

  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the REAMDE of this repository and believe that this is not a duplicate.

Environment

  • Dubbo Admin version: 0.5.0
  • Registry center detail (type and version): nacos1.2.1
  • Operating System version: windows
  • Java version: jdk1.8
  • dubbbo version: dubbo3.1.4

Steps to reproduce this issue

  1. 部署 dubbo admin ,调整 application.properties 配置, 支持 nacos 配置中心和注册中心

如下配置

server.port=18879
dubbo.protocol.port=18880
dubbo.application.qos-port=38880
admin.registry.address=nacos://10.32.52.57:8848?username=nacos&password=nacos
admin.config-center=nacos://10.32.52.57:8848?username=nacos&password=nacos
admin.metadata-report.address=nacos://10.32.52.57:8848?username=nacos&password=nacos
admin.registry.group=DEFAULT_GROUP
admin.config-center.group=DEFAULT_GROUP
admin.metadata-report.group=dubbo
admin.registry.namespace=public
admin.config-center.namespace=public
admin.metadata-report.namespace=public
admin.root.user.name=root
admin.root.user.password=root
admin.check.sessionTimeoutMilli=3600000
  1. 通过配置提供者业务服务的“标签路由”,配置如下
enabled: true
force: true
runtime: false
tags:
  - name: gray
    addresses:
      - '10.32.52.57:28861'
  1. 服务消费者设置RPC上下文
    RpcContext.getClientAttachment().setAttachment("dubbo.tag", "gray");

问题:
dubbo admin 的“服务查询”是存在相关业务服务的 rpc service . 看着整个 dubbo admin 的启动到配置都是正常且生效的。
但是标签路由未生效, 没有命中配置的节点,还是会进行节点的负载调用

@AlbumenJ
Copy link
Member

AlbumenJ commented Sep 5, 2023

@chickenlj PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants