天天看點

Redis 6.0 新特性之叢集代理

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 群集,使其像正在與單個執行個體進行對話一樣。同時在簡單且用戶端僅使用簡單指令和功能時執行多路複用。

Redis 6.0 新特性之叢集代理

安裝

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 6.0 新特性之叢集代理
  • redis-cluster-proxy 監聽

    7777

Redis 6.0 新特性之叢集代理

使用

./redis-cli -h host -p 7777           

繼續閱讀