1. Oinone如何支持构建分布式项目
参考文档:https://doc.oinone.top/kai-fa-shi-jian/5572.html
2. Oinone远程服务发布范围
泛化服务范围,可选值:module、namespace
module:按模块维度发布远程服务
namespace:按Fun的namespace维度发布远程服务
默认按module维度发布服务
pamirs:
distribution:
service:
#serviceScope: 可选值namespace、module
serviceScope: module
3.关闭Dubbo服务注册元数据上报日志
logging:
level:
root: info
pro.shushi.pamirs.framework.connectors.data.mapper.PamirsMapper: error
pro.shushi.pamirs.framework.connectors.data.mapper.GenericMapper: error # mybatis sql日志
RocketmqClient: error
org.apache.dubbo.registry.zookeeper.ZookeeperRegistry: error
org.apache.dubbo.registry.integration.RegistryDirectory: error
org.apache.dubbo.config.ServiceConfig: error
com.alibaba.nacos.client.naming: error
org.apache.dubbo.registry.nacos.NacosRegistry: error
org.apache.dubbo.registry.support.AbstractRegistryFactory: error
org.apache.dubbo.registry.integration.RegistryProtocol: error
org.apache.dubbo.registry.client.metadata.store.RemoteMetadataServiceImpl: off
org.apache.dubbo.metadata.store.zookeeper.ZookeeperMetadataReport: off
org.apache.dubbo.metadata.store.nacos.NacosMetadataReport: off
4.Naocs配置列表出现多余配置
dubbo 集成 nacos注册中心,会出现多余的配置,详细参考:
配置列表会自动创建很多无关的配置: https://github.com/apache/dubbo/issues/6645
配置列表出现多余的配置:https://github.com/alibaba/nacos/issues/8843
按照下面的配置可以将其关闭(📢主要是这三项配置use-as-config-center, use-as-metadata-center,metadata-report.failfast),已生成的配置需要手动删除掉。
dubbo:
application:
name: pamirs-demo
version: 1.0.0
metadata-type: local
registry:
id: pamirs-demo-registry
address: nacos://192.168.0.129:8848
username: nacos
password: nacos
# dubbo使用nacos的注册中心往配置中心写入配置关闭配置
use-as-metadata-center: false
use-as-config-center: false
config-center:
address: nacos://192.168.0.129:8848
username: nacos
password: nacos
metadata-report:
failfast: false # 关闭错误上报的功能
address: nacos://192.168.0.129:8848
username: nacos
password: nacos
protocol:
name: dubbo
port: -1
serialization: pamirs
scan:
base-packages: pro.shushi
cloud:
subscribed-services:
Oinone社区 作者:望闲原创文章,如若转载,请注明出处:https://doc.oinone.top/kai-fa-shi-jian/6475.html
访问Oinone官网:https://www.oinone.top获取数式Oinone低代码应用平台体验