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

Fix: Same address cannot distinguish different registry center #2784

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

1kasa
Copy link

@1kasa 1kasa commented Feb 28, 2025

dubbo:
  application:
    name: myApp # metadata: application=myApp; name=myApp
    module: opensource # metadata: module=opensource
    group: myAppGroup # 没有元数据记录
    organization: dubbo # metadata: organization=dubbo
    owner: laurence # metadata: owner=laurence
    version: myversion # metadata: app.version=myversion
    environment: pro # metadata: environment=pro
  registries:
    nacosWithCustomGroup:
      protocol: nacos
      address: 127.0.0.1:8848
      group: myGroup # nacos 分组,默认为 DEFAULT_GROUP
      registry-type: interface
      namespace: 779a0faf-90e1-4d9a-8186-8240446b4ccd # nacos namespaceID,需提前创建,默认为 public
    nacosWithCustomGroup2:
      protocol: nacos
      address: 127.0.0.1:8848
      group: myGroup # nacos 分组,默认为 DEFAULT_GROUP
      registry-type: interface
      namespace: 0e80a7a6-ecd1-4801-beb3-011232bce8cf # nacos namespaceID,需提前创建,默认为 public
  protocols:
    dubbo:
      name: dubbo
      port: 20000
  provider:
    services:
      UserProvider:
        registry-ids: nacosWithCustomGroup
        interface: org.apache.dubbo.UserProvider.Test
      UserProviderWithCustomGroupAndVersion:
        registry-ids: nacosWithCustomGroup2
        interface: org.apache.dubbo.UserProvider.Test
        version: myInterfaceVersion # dubbo 接口版本必须与客户端一致
        group: myInterfaceGroup # dubbo 接口组必须与客户端一致

  • Result:
image image

@1kasa 1kasa marked this pull request as draft February 28, 2025 12:15
@1kasa 1kasa marked this pull request as ready for review February 28, 2025 12:23
@1kasa 1kasa closed this Feb 28, 2025
@1kasa 1kasa reopened this Feb 28, 2025
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

Successfully merging this pull request may close these issues.

1 participant