前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Redis 6.0 新特性之集群代理

Redis 6.0 新特性之集群代理

原创
作者头像
冷冷
修改2020-01-07 18:17:06
1.3K0
修改2020-01-07 18:17:06
举报
文章被收录于专栏:冷冷冷冷
代码语言:txt
复制
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 群集,使其像正在与单个实例进行对话一样。同时在简单且客户端仅使用简单命令和功能时执行多路复用。

安装

代码语言:txt
复制
git clone https://github.com/artix75/redis-cluster-proxy

cd redis-cluster-proxy

make install

ps: 依赖 gcc 4.9 以上版本

升级 gcc

代码语言:txt
复制
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

启动

代码语言:txt
复制
redis-cluster-proxy 172.17.0.111:7000
  • redis-cluster-proxy 监听 7777

使用

代码语言:txt
复制
./redis-cli -h host -p 7777

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 集群代理
  • 安装
  • 启动
  • 使用
相关产品与服务
云数据库 Redis
腾讯云数据库 Redis(TencentDB for Redis)是腾讯云打造的兼容 Redis 协议的缓存和存储服务。丰富的数据结构能帮助您完成不同类型的业务场景开发。支持主从热备,提供自动容灾切换、数据备份、故障迁移、实例监控、在线扩容、数据回档等全套的数据库服务。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档