phpredispredis

change the 'max number of client reached' redis error message to ''


is it possible to change the error message 'max number of client reached' to null or empty string?

I'm using redis as a cache for my DB values and in cases that I can't get the values from the cache I will get it from the DB. if I could configure it in the redis it self it would be the best option for me because my code won't have to change in order to support that edge case.

if someone has some tips on how to avoid such errors it would be nice as well :) (I'm using php scripts with predis package)


Solution

  • The error message max number of clients reached is clearly indicate that Redis is reached client limit and unable to serve any new requests.

    Bottom line: the code/web server exhaust maxclients limit.

    If you don't have control over code/web server (e.g. nginx), to reduce amount of error messages you can: