检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
http/https 协议。 supportXPack 否 Boolean 默认false 是否支持XPack验证。 skipCertificateValid 否 Boolean 默认false 是否跳过证书验证。 certificatePath 否 String - 证书地址。 certificatePassword
配置参数说明 表1 配置参数详解 参数名称 是否必选 参数类型 取值范围 描述 props 否 PropertiesConfiguration object 请参考表2 PropertiesConfiguration数据结构说明 MAS监控配置,配合etcd使用。 etcd 否 EtcdConfiguration
password 是 String - Etcd密码。 httpsEnable 是 Boolean true/false 是否启用https。 certificatePath 否 String - 证书路径,用于https认证(>=1.2.1-RELEASE)。 表4 Redis
api-version: v3 username: xxxx password: xxxx https-enable: false active: dc1 redis: servers: dc1:
username 是 string - Etcd用户名。 password 是 string - Etcd密码。 httpsEnable 是 bool true/false 是否启用https。 父主题: Mysql
username: etcduser password: etcdpwd httpsEnable: false sources: ds1: driverClassName:
址以英文逗号`,`分隔 api-version: v3 username: xxxx password: xxxx https-enable: true certificatePath: xxx sources: dc1: username:xxx
配置项详细信息列表 MAS-DB-SDK配置分为props、etcd、sources、router四部分,在SpringBoot项目中配置项使用驼峰风格,详细信息如下表: 表1 props配置项 名称 说明 默认值 备注 props.appId MAS应用ID 空 MAS服务应用列表页中“应用ID”列对应值。
active: dc1 es: servers: dc1: hosts: https://xxx:9200 username: admin password: xxx
xxx.xxx.xxx:xxxx apiVersion: v3 username: xxxx password: xxxx httpsEnable: false # require datasource: ds0: url: tcp(xxx.xxx.xxx.xxx:xxxx)/ds0