3 ms·
you might be running into max connection issues because your library is leaving stale connections. i know this is the case for ruby & php. check if you have tim
by wasd 7y ago
you might be running into max connection issues because your library is leaving stale connections. i know this is the case for ruby & php. check if you have timeout set. see this github issue for ruby: https://github.com/redis/redis-rb/issues/524 https://github.com/redis/redis-rb/issues/524
- lpellis 7y agoI have the timeout set to 10 seconds which certainly helps, I think the issue is how gunicorn/gevent handle web requests. I think each request spawns a new redis connection, and as far as I can see there is no global pool I can use :( On heroku you are limited to 20 connections in the free tier, and it quickly gets expensive.
- michaeldwan 7y agoOh yes... I remember bitterly upgrading to a larger size just so >20 goroutines could use the same ~1mb of cached data.