This may be offtopic because redis is not something Cleavr made, created or supports. But we do like to share, maybe other people who use Redis also experience this issue.
The issue we have is with WordPress sites running on php 7.4 <> 8.1 with Mysql, Nginx and Redis (all @ Hetzner on AMD machines with dvcpu’s)
The issue is that for large webshops we are getting ‘redis server unavailable’ errors and after switching the redis error logging to debug we found that these errors every time it occurs:
When this happens php will also throw an error like:
“PHP message: RedisException: read error on connection to 127.0.0.1:6379 in /xxx/yyy/domain.com/current/wp-content/object-cache.php:1973”
First observations:
- redis database gets build up to aprox 9GB after 12 hours
- when we flush redis the problems are gone for like 11 hours
Already tried to:
- change redis.conf for the timeout and tcp-keepalive (60/300)
- change php fpm settings
- changed max open files limit LimitNOFILE=10000
- mysqlconf optimized for innodb
We don’t have a solution yet, let us know if you also ever had this issue with redis broken pipes.