1Redis 6.0 release notes 2======================= 3 4Upgrade urgency LOW: This is the first RC of Redis 6. 5 6Introduction to the Redis 6 release 7=================================== 8 9Redis 6 improves Redis in a number of key areas and is one of the largest 10Redis releases in the history of the project, so here we'll list only 11the biggest features in this release: 12 13 14* A Redis Cluster proxy was released here: 15 https://github.com/artix75/redis-cluster-proxy
集群代理
上文 redis 6.0 发版日志,新增 redis cluster proxy 模块。
在 Redis 集群中,客户端会非常分散,现在为此引入了一个集群代理,可以为客户端抽象 Redis 群集,使其像正在与单个实例进行对话一样。同时在简单且客户端仅使用简单命令和功能时执行多路复用。
安装
1git clone https://github.com/artix75/redis-cluster-proxy 2 3cd redis-cluster-proxy 4 5make install
ps: 依赖 gcc 4.9 以上版本
升级 gcc
1yum -y install centos-release-scl 2yum -y install devtoolset-6-gcc devtoolset-6-gcc-c++ devtoolset-6-binutils 3scl enable devtoolset-6 bash 4echo "source /opt/rh/devtoolset-6/enable" >>/etc/profile
启动
redis-cluster-proxy 172.17.0.111:7000
- redis-cluster-proxy 监听
7777
使用
./redis-cli -h host -p 7777
> 项目推荐: Spring Cloud 、Spring Security OAuth2的RBAC权限管理系统 欢迎关注