您现在的位置是:首页 > 文章详情

Redis 6.0 新特性之集群代理

日期:2020-01-06点击:613
Redis 6.0 release notes ======================= Upgrade urgency LOW: This is the first RC of Redis 6. Introduction to the Redis 6 release =================================== Redis 6 improves Redis in a number of key areas and is one of the largest Redis releases in the history of the project, so here we'll list only the biggest features in this release: * A Redis Cluster proxy was released here: https://github.com/artix75/redis-cluster-proxy

集群代理

上文 redis 6.0 发版日志,新增 redis cluster proxy 模块。
在 Redis 集群中,客户端会非常分散,现在为此引入了一个集群代理,可以为客户端抽象 Redis 群集,使其像正在与单个实例进行对话一样。同时在简单且客户端仅使用简单命令和功能时执行多路复用。

安装

git clone https://github.com/artix75/redis-cluster-proxy cd redis-cluster-proxy make install

ps: 依赖 gcc 4.9 以上版本

升级 gcc

yum -y install centos-release-scl yum -y install devtoolset-6-gcc devtoolset-6-gcc-c++ devtoolset-6-binutils scl enable devtoolset-6 bash echo "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
原文链接:https://yq.aliyun.com/articles/741955
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章