检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
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
默认值 备注 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服务实例页面查询获取
azs: xxxx etcd: # 可选 address: xxx.xxx.xxx.xxx:xxxx api-version: v3 username: xxxx password: xxxx https-enable:
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
0.0.2:2379,127.0.0.2:2379,127.0.0.2:2379 //etcd地址, 从MAS服务实例页面查询获取 apiVersion: v3 // etcd版本,v3 username: etcduser // etcd用户名,从MAS服务实例页面查询获取
MAS入门简介 使用MAS实现MySQL容灾切换 使用MAS实现Redis容灾切换 使用MAS实现MongoDB容灾切换 使用MAS实现API异常监控 05 开发 描述如何使用Mas-SDK在多活容灾场景下对涉及数据库服务进行开发,结合样例讲解在开发过程中如何使用SDK。 开发指南
etcd: address: 127.0.0.1:2379 #etcd地址,从MAS服务实例页面查询获取 api-version: v3 #etcd版本,v3 username: etcduser #etcd用户名,从MAS服务实例页面查询获取
如下,service层的updateUser方法,开启了事务,并且里面有两个接口,第一个userReopository2上指定路由“dc2”,第二个userReopository2上指定路由“dc1”,此时以第一个接口中的注解指定的路由为准,使用“dc2”的数据源。 @Slf4j @Repository
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服务实例页面查询获取
优化建议:根据自动检查识别出的风险点给出优化建议。 历史记录:可以保存、查看应用检查记录及详细的检查结果、持续跟踪应用韧性。 报告下载:对应自动检查的检查结果及详情,可以下载文档到本地进行查看及分析。 父主题: 应用韧性Hub
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
xxx etcd: address: 127.0.0.2:2379,127.0.0.2:2379,127.0.0.2:2379 apiVersion: v3 username: etcduser password: etcdpwd httpsEnable:
0.0.2:2379,127.0.0.2:2379,127.0.0.2:2379 //etcd地址, 从MAS服务实例页面查询获取 apiVersion: 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服务实例页面查询获取