检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
monitorId: xxxx databaseName: xxxx etcd: address: xxx.xxx.xxx.xxx:xxxx apiVersion: v3 username: xxxx password: xxxx httpsEnable: false # require
Slf4j; import org.Redisson.Redisson; import org.Redisson.api.RLock; import org.Redisson.api.RedissonClient; import org.Redisson.codec.JsonJacksonCodec;
monitorId: xxxx databaseName: xxxx etcd: address: xxx.xxx.xxx.xxx:xxxx apiVersion: v3 username: xxxx password: xxxx httpsEnable: false # require
azs: xxxx etcd: # 可选 address: xxx.xxx.xxx.xxx:xxxx api-version: v3 username: xxxx password: xxxx https-enable:
etcd: address: 127.0.0.1:2379 #etcd地址,从MAS服务实例页面查询获取 api-version: v3 #etcd版本,v3 username: etcduser #etcd用户名,从MAS服务实例页面查询获取
Slf4j; import org.Redisson.Redisson; import org.Redisson.api.RLock; import org.Redisson.api.RedissonClient; import org.Redisson.codec.JsonJacksonCodec;
azs: xxxx etcd: # 可选 address: xxx.xxx.xxx.xxx:xxxx api-version: v3 username: xxxx password: xxxx https-enable:
region: xxxxx azs: az1 etcd: address: xxx.xxx.xxx.xxx:xxxx api-version: v3 username: xxxx password: xxxx https-enable: false redis:
az1 etcd: address: 127.0.0.1:2379 #格式为ip:port,集群模式时多个地址以英文逗号`,`分隔 api-version: v3 username: xxxx password: xxxx https-enable: true
用户名 被监控的Elasticsearch的用户名。 注意: 建议监控用户名与业务用户名分开使用,不推荐与业务使用相同用户名,避免产生安全风险。 连接类型 Elasticsearch的连接类型,支持HTTPS和HTTP。 连接密码 被监控的Elasticsearch的连接密码。
MAS入门简介 使用MAS实现MySQL容灾切换 使用MAS实现Redis容灾切换 使用MAS实现MongoDB容灾切换 使用MAS实现API异常监控 05 开发 描述如何使用Mas-SDK在多活容灾场景下对涉及数据库服务进行开发,结合样例讲解在开发过程中如何使用SDK。 开发指南
0.0.2:2379,127.0.0.2:2379,127.0.0.2:2379 //etcd地址, 从MAS服务实例页面查询获取 apiVersion: v3 // etcd版本,v3 username: etcduser // etcd用户名,从MAS服务实例页面查询获取
默认值 备注 etcd.address ETCD地址 空 MAS服务总览页单击ETCD连接地址后的查看详情获取。 etcd.apiVersion ETCD接口版本 v3 固定值v3。 etcd.username ETCD用户名 空 MAS服务总览页单击ETCD连接地址后的查看详情获取。
填写监控数据库名称。监控数据库用来探活连接的数据库实例,确认数据库实例连接是否正常。 请使用独立的监控数据库,不要与业务数据库共用,监控数据库只授权读取类权限,避免产生安全风险。 连接数据库 填写连接数据库名称。连接数据库是应用实际连接的数据库,可在连接池配置中选择使用不同的路由算法。 填写高级配置,完成后单击“下一步:确认配置”。
etcd: address: 127.0.0.1:2379 #etcd地址,从MAS服务实例页面查询获取 api-version: v3 #etcd版本,v3 username: etcduser #etcd用户名,从MAS服务实例页面查询获取
etcd: address: 127.0.0.1:2379 #etcd地址,从MAS服务实例页面查询获取 api-version: v3 #etcd版本,v3 username: etcduser #etcd用户名,从MAS服务实例页面查询获取
0.0.2:2379,127.0.0.2:2379,127.0.0.2:2379 //etcd地址, 从MAS服务实例页面查询获取 apiVersion: v3 // etcd版本,v3 username: etcduser // etcd用户名,从MAS服务实例页面查询获取
文件组织集群访问 | Kubernetes),以下为示例(实际以自有集群为准): { "kind": "Config", "apiVersion": "v1", "preferences": { }, "clusters": [{
springframework:spring-aspects 5.3.30 compile devspore-mas-common org.slf4j:slf4j-api 1.7.36 compile io.etcd:jetcd-core 0.5.7 compile com.google.errorpron
kubeconfig 文件组织集群访问 | Kubernetes),以下为示例: { "kind": "Config", "apiVersion": "v1", "preferences": { }, "clusters": [{