New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redis backend too many open files #490
Comments
Hi, do you use RedisBackend or CachedRedisBackend? Do you use something like gevent ? Which version of the python redis-py lib do you use? Also you can limit number of connections with he |
We used the CachingRedisBackend. We do not use gevent. |
Well, great somebody except me uses caching. All calls to redis in CachingRedisBackend are occured under the lock so redis client should have only one connection. As |
show your code please |
Describe the problem
We have implemented django constance with a redis backend and a 60 local cache. When there is a large amount of traffic, our service becomes unstable, our latency spikes, and we get a ton of logs which say "too many open files." We have isolated the django-constance change as the only change we are deploying when we do this.
Could this issue possibly be related to this: https://stackoverflow.com/a/25283155/3858494?
Steps to reproduce
Enable django-constance with a Redis backend and a 60 second local cache. Subject the service to a heavy load.
System configuration
I don't want to reveal this in a public forum.
The text was updated successfully, but these errors were encountered: