You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "helloy0920 (via GitHub)" <gi...@apache.org> on 2023/03/04 08:00:09 UTC
[GitHub] [dubbo] helloy0920 opened a new issue, #11722: metadata-type=local local - Provider怎么配置
helloy0920 opened a new issue, #11722:
URL: https://github.com/apache/dubbo/issues/11722
Consumer 从注册中心获取local - Provider 把 metadata 放在本地,Consumer 从 Provider 处直接获取 使用方式
--
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
[GitHub] [dubbo] helloy0920 commented on issue #11722: metadata-type=local local - Provider怎么配置
Posted by "helloy0920 (via GitHub)" <gi...@apache.org>.
helloy0920 commented on issue #11722:
URL: https://github.com/apache/dubbo/issues/11722#issuecomment-1454672255
配置如下:
dubbo:
application:
name: ${spring.application.name}
logger: slf4j
metadata-type: remote
register-consumer: true
register-mode: instance
service-discovery:
migration: FORCE_APPLICATION
qosEnable: true
qosPort: 33334
registry:
address: nacos://127.0.0.1:8848
group: dubbo-${spring.profiles.active}
use-as-config-center: false
use-as-metadata-center: false
register-mode: instance
register: true
subscribe: true
parameters:
registry-type: service
=========================
我把 use-as-metadata-center 设置为false,不把注册中心当元数据中心,也不配元数据中心, consumer 就 直接NoProvider 了,我理解应该是去注册中心找的订阅的服务地址,然后调用MetaDataService获取元数据, 是我理解有问题还是配置有问题 dubbo版本3.1.7
--
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
[GitHub] [dubbo] yuchang01 commented on issue #11722: metadata-type=local local - Provider怎么配置
Posted by "yuchang01 (via GitHub)" <gi...@apache.org>.
yuchang01 commented on issue #11722:
URL: https://github.com/apache/dubbo/issues/11722#issuecomment-1454977193
consumer 的@DubboReference指定一下providerBy试试,通过服务名匹配到注册中心的服务instance,然后拿provider的local metadata
--
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
[GitHub] [dubbo] helloy0920 commented on issue #11722: metadata-type=local local - Provider怎么配置
Posted by "helloy0920 (via GitHub)" <gi...@apache.org>.
helloy0920 commented on issue #11722:
URL: https://github.com/apache/dubbo/issues/11722#issuecomment-1454672073
配置如下:
dubbo:
application:
name: ${spring.application.name}
logger: slf4j
metadata-type: remote
register-consumer: true
register-mode: instance
service-discovery:
migration: FORCE_APPLICATION
qosEnable: true
qosPort: 33334
registry:
address: nacos://127.0.0.1:8848
group: dubbo-${spring.profiles.active}
use-as-config-center: false
use-as-metadata-center: false
register-mode: instance
register: true
subscribe: true
parameters:
registry-type: service
=========================
我把 use-as-metadata-center 设置为false,不把注册中心当元数据中心,也不配元数据中心, consumer 就 直接NoProvider 了,我理解应该是去注册中心找的订阅的服务地址,然后调用MetaDataService获取元数据, 是我理解有问题还是配置有问题 dubbo版本3.1.7
--
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
[GitHub] [dubbo] helloy0920 commented on issue #11722: metadata-type=local local - Provider怎么配置
Posted by "helloy0920 (via GitHub)" <gi...@apache.org>.
helloy0920 commented on issue #11722:
URL: https://github.com/apache/dubbo/issues/11722#issuecomment-1455644359
好的,感谢 🙏,已经解决
--
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
[GitHub] [dubbo] helloy0920 closed issue #11722: metadata-type=local local - Provider怎么配置
Posted by "helloy0920 (via GitHub)" <gi...@apache.org>.
helloy0920 closed issue #11722: metadata-type=local local - Provider怎么配置
URL: https://github.com/apache/dubbo/issues/11722
--
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
[GitHub] [dubbo] kazetyan commented on issue #11722: metadata-type=local local - Provider怎么配置
Posted by "kazetyan (via GitHub)" <gi...@apache.org>.
kazetyan commented on issue #11722:
URL: https://github.com/apache/dubbo/issues/11722#issuecomment-1454661197
`dubbo.application.metadataType=local`
默认就是local,可以不用改

--
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
[GitHub] [dubbo] helloy0920 commented on issue #11722: metadata-type=local local - Provider怎么配置
Posted by "helloy0920 (via GitHub)" <gi...@apache.org>.
helloy0920 commented on issue #11722:
URL: https://github.com/apache/dubbo/issues/11722#issuecomment-1454676367
> `dubbo.application.metadataType=local` 默认就是local,可以不用改  https://cn.dubbo.apache.org/zh-cn/overview/mannual/java-sdk/reference-manual/config/properties/#application
配置如下

我把 use-as-metadata-center 设置为false,不把注册中心当元数据中心,也不配元数据中心, consumer 就 直接NoProvider 了,我理解应该是去注册中心找的订阅的服务地址,然后调用MetaDataService获取元数据, 是我理解有问题还是配置有问题 dubbo版本3.1.7
--
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
[GitHub] [dubbo] helloy0920 commented on issue #11722: metadata-type=local local - Provider怎么配置
Posted by "helloy0920 (via GitHub)" <gi...@apache.org>.
helloy0920 commented on issue #11722:
URL: https://github.com/apache/dubbo/issues/11722#issuecomment-1454676755
配置如下:

我把 use-as-metadata-center 设置为false,不把注册中心当元数据中心,也不配元数据中心, consumer 就 直接NoProvider 了,我理解应该是去注册中心找的订阅的服务地址,然后调用MetaDataService获取元数据, 是我理解有问题还是配置有问题 dubbo版本3.1.7
--
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