Category Archives: redis

redis.exceptions.connectionerror: max number of clients reached

https://www.dragonflydb.io/error-solutions/redis-exceptions-connectionerror-max-number-of-clients-reached This error is caused when the maximum number of clients that Redis can handle has been reached. By default, Redis allows a maximum of 10,000... Read More | Share it now!

rdbtool

https://github.com/sripathikrishnan/redis-rdb-tools Parse Redis dump.rdb files, Analyze Memory, and Export Data to JSON Rdbtools is a parser for Redis’ dump.rdb files. The parser generates events similar to an xml sax parser, and is very... Read More | Share it now!

failover redis cluster failover

今天测试了redis cluster  failover 功能,在切换过程中很快,但在failover时有force 与takeover 之分 $r 127.0.0.1:6237> cluster nodes 13b6094babb9c16066a315a828434b3c6525f08b 192.168.1.91:6236 master - 0... Read More | Share it now!

Redis Metrics Exporter

GIT: https://github.com/oliver006/redis_exporter Prometheus exporter for Redis metrics. Supports Redis 2.x, 3.x and 4.x Building, configuring, and running Locally build and run it: $ go get github.com/oliver006/redis_exporter $ cd... Read More | Share it now!

详解python调用redis lua内嵌脚本的高级用法

Lua 脚本功能是 Reids 2.6 版本开始提供的高级功能, 我们可以通过redis内嵌的 Lua 环境的进行搞复杂的需求。 使用内置的lua脚本环境可以解决Redis长久以来不能高效地处理 CAS... Read More | Share it now!

Python实现redis的自增操作

在传统的数据库中, 如果实现一个计数器的操作, 需要先去数据库中读取该值, 再程序中加1, 再讲最新的值存入数据库. 用户操作的流程步骤多不说, 还容易出现数据安全性的问题,... Read More | Share it now!

Creating and using a Redis Cluster

All: https://redis.io/topics/cluster-tutorial Install Ruby 2.4: https://wp.huangshiyang.com/how-to-install-ruby-2-4-on-centos-rhel-7-6 Installing Redis The suggested way of installing Redis is compiling it from sources as Redis has no dependencies... Read More | Share it now!

Redis持久化实践及灾难恢复模拟

参考资料: Redis Persistence http://redis.io/topics/persistence Google Groups https://groups.google.com/forum/?fromgroups=#!forum/redis-db 一、对Redis持久化的探讨与理解 目前Redis持久化的方式有两种: RDB 和... Read More | Share it now!

Redis在Linux下的安装和部署

http://www.cnblogs.com/wangchunniu1314/p/6339416.html 一、Redis介绍 Redis是当前比较热门的NOSQL系统之一,它是一个key-value存储系统。和Memcache类似,但很大程度补偿了Memcache的不足,它支持存储的value类型相对更多,包括string、list、set、zset和hash。这些数据类型都支持push/pop、add/remove及取交集并集和差集及更丰富的操作。在此基础上,Redis支持各种不同方式的排序。 和Memcache一样,Redis数据都是缓存在计算机内存中,不同的是,Memcache只能将数据缓存到内存中,无法自动定期写入硬盘,这就表示,一断电或重启,内存清空,数据丢失。所以Memcache的应用场景适用于缓存无需持久化的数据。而Redis不同的是它会周期性的把更新的数据写入磁盘或者把修改操作写入追加的记录文件,实现数据的持久化。 二、Redis的安装 下面介绍在Linux环境下,Redis的安装与部署 1、首先上官网下载Redis... Read More | Share it now!

Redis安装配置及使用详解

目录 redis-py 的API的使用可以分类为: 连接方式 连接池 操作 String 操作 Hash 操作 List 操作 Set 操作 Sort Set... Read More | Share it now!