1.修改程序中获取redis连接为哨兵模式并测试

2.修改实时统计配置同步到redis集群时使用分布式锁避免多tomcat重复执行
This commit is contained in:
renkaige
2018-12-01 10:00:37 +06:00
parent 69dc459e7a
commit 9e56a1f1cd
4 changed files with 67 additions and 63 deletions

View File

@@ -6,9 +6,9 @@ set global read_only=0;
create user 'galaxy'@'%' identified by 'ceiec2018!';
create database galaxy_test DEFAULT CHARSET utf8mb4 COLLATE utf8mb4_general_ci;
create database galaxy-service DEFAULT CHARSET utf8mb4 COLLATE utf8mb4_general_ci;
grant all privileges on galaxy_test.* to 'galaxy'@'%' identified by 'ceiec2018!';
grant all privileges on galaxy-service.* to 'galaxy'@'%' identified by 'ceiec2018!';
flush privileges;