RedisClusterManager监控Redis集群环境要求:Java8+
jdk配置这里略过
RedisClusterManager 下载地址:附件:systemMonitor-release.tar.gz 收集系统状态包
附件: RedisManager-Web-1.0.0-SNAPSHOT-beta.tar.gz redis集群管理包
1、安装systemMonitor
# tar -zxvf systemMonitor-release.tar.gz
# vi start.sh
#!/bin/sh
website="http://localhost:8080/metric"
ip="192.168.1.107" #这里的IP要和RedisManager-Web保持一致
java -jar systemMonitor.jar --website=$website --ip=$ip
#sh start.sh #启动systemMonitor
200
2、安装RedisManager-Web
#tar -zxvf RedisManager-Web-1.0.0-SNAPSHOT-beta.tar.gz
# sh start.sh #启动RedisManager-Web
. ____ _ __ _ _
/\\ / ___‘_ __ _ _(_)_ __ __ _ \ \ \ ( ( )\___ | ‘_ | ‘_| | ‘_ \/ _` | \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) )
‘ |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.2.RELEASE)
2017-05-08 12:01:30.679 INFO 5505 --- [ main] org.redis.manager.AppStarter : Starting AppStarter v1.0.0-SNAPSHOT on WebServer107 with PID 5505 (/data/software/RedisManager-Web-1.0.0-SNAPSHOT/RedisManager-Web-1.0.0-SNAPSHOT.jar started by root in /data/software/RedisManager-Web-1.0.0-SNAPSHOT)
2017-05-08 12:01:30.682 INFO 5505 --- [ main] org.redis.manager.AppStarter : No active profile set, falling back to default profiles: default
2017-05-08 12:01:30.752 INFO 5505 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@27c6e487: startup date [Mon May 08 12:01:30 CST 2017]; root of context hierarchy
2017-05-08 12:01:31.312 INFO 5505 --- [ main] o.s.b.
1、集群监控功能
2、集群状态查询
3、集群节点管理功能
从节点重新设置主节点
主从切换
槽迁移
4、集群数据管理
创建集群
1、打开Manager首页,点击右上角的Create Cluster
2、若没有在集群中注册redis打包文件,则点击Import Resource,并且上传Resource
3、若没有在集群中注册Server信息,则点击Import Server
4、点击Install Node, 进行Redis以及monitor的自动化安装
5、安装完所有节点后,点击Create Cluster,填写Master数量,生成集群
6、查询新建集群状态
数据查询的方法
1、在Manager首页,点击集群进入集群操作界面
2、点击右上角的Query按钮,进入查询界面
3、在搜索框输入需要查询的key,或者使用通配符‘*’进行匹配
4、在查询的key列表中,点击查询数据详情
总体功能不错,可以对Redis集群实现管理功能。