Redis / RedisSearch slows down after some time

129 views Asked by At

I have a Redis Stack running inside a podman container, that slows down for specific commands after just a couple of hours of uptime. (Redis v6.2.13, RediSearch v. 2.6.12, RedisJSON v. 2.4.7)

For example, FT.SEARCH idx LIMIT 0 0 that counts entries on a specific index runs slower and slower over time.

I have a .NET service that inserts data (150k keys, stored as JSON) every ~10min, and each key expires at a different time (TTL is different for each index).

The main consumer is a .net API, serving ~70 clients that retrieves data from Redis every ~15sec. I'm monitoring SLOWLOG and commands duration increase from ~10ms when the container start to ~300ms after 24h. This happens for just a couple of commands (especially FT.SEARCH idx LIMIT 0 0 )

Both .net services use Redis.OM. Everything goes back to normal when I'm restarting the container. What could some possible causes be? Thanks in advance.

I deactivated AOF and let only backups run every 1min or so. Nothing happens if I restart the sites in IIS (or recycle pools or anything). I ve turned on memory defragmetion but again nothing happens.

0

There are 0 answers