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 羣集,使其像正在與單個實例進行對話同樣。同時在簡單且客戶端僅使用簡單命令和功能時執行多路複用。c++


安裝

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

cd redis-cluster-proxy

make install複製代碼

ps: 依賴 gcc 4.9 以上版本git

升級 gccgithub

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複製代碼

image

相關文章
相關標籤/搜索