Relative Content

Tag Archive for redis

efficiently storing discord guild data in redis

I am currently in the process of rewriting a Discord bot. The entire bot is split into microservices, the gateway rest and bot processes are all distributed across multiple systems. Because of this I have opted to use Redis.

best way to migrate a single redis database to new instance due to global eviction policy

I’ve used redis before but have encountered a sticky situation. We have a redis server with 6 databases. We’ve maxed out our maxmemory and it’s a hodpepodge of applications on this single instance. One of our applications which has logic where it should not EVER evict a key from a specific database (lets say it’s db4). I don’t believe you can tell Redis to have a policy like don’t ever evict from this db, can you?

REDIS is not closing open file handle causing disk full error

I have a Redis instance running in docker as slave. This instance always causing trouble by not closing open file handle. I can see the open file handle with command `lsof | grep deleted” and after several hours I would see hundreds of still open fine handles from redis, such as this