Facing redis issue Redis::CommandError (ERR max number of clients reached):

1,269 views
Skip to first unread message

dinsha...@supernova.xyz

unread,
Jun 15, 2016, 7:47:59 AM6/15/16
to Redis DB

Hello,


We are facing issue of redis on staging. Issue is Redis::CommandError (ERR max number of clients reached): so could you please help me out in this issue how to solve it. 

My findings are as follows ::


 1. Increase work_process from 2 to 3 in unicorn.rb we had tries this but its not helpful for us.

2.  Find out heroku add ons  for redis

rediscloud, redisgreen, redismonitor, redistogo.
3. Not able to flush redis database as we don't have redis-cli on server.

Thanks
Dinshaw Raje

Itamar Haber

unread,
Jun 15, 2016, 8:16:41 AM6/15/16
to Redis DB
Hello Dinshaw,

The maximum number of clients that a Redis server accepts is configured using the `maxclients` directive (see the redis.conf file). As it appears that you are using a Ruby job manager (e.g. SideKiq or Resque) on Heroku with a Redis add-on, the maximum number of clients is dependent on your Redis provider and the plan that you're using. Your best option is switching to a different plan/provider that allows more client connections.

WRT 1 - I don't see how increasing the number of worker processes will reduce the number of incoming connections.
WRT 2 - the paid plans offer anywhere from more to unlimited number of connections
WRT 3 - You don't need redis-cli on the actual Redis server, it can be run from the application's server or from you laptop (assuming that no firewall interferes) and connect to the database. In any case, flushing the database isn't likely to resolve your problem.

Cheers,


--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.



--

Itamar Haber | Chief Developer Advocate
Redis Watch Newsletter | &&(curat||edit||janit||)
Redis Labs ~/redis

Mobile: +972 (54) 567 9692
Email: ita...@redislabs.com
Twitter: @itamarhaber
Skype: itamar.haber

Blog  |  Twitter  |  LinkedIn


Reply all
Reply to author
Forward
0 new messages