-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Reduce default max_connections number #2220
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I started getting relevant line: redis-py/redis/asyncio/connection.py Line 1532 in c54dfa4
Why would pool ever raise Too many connections, it should just wait instead |
This issue is marked stale. It will be closed in 30 days if it is not updated. |
this is not solved.. |
@Fogapod any workaround to this? do u just not set max_connections |
Running into this as well. Seems it's all to easy to DoS a server with the current defaults. Looks like #3200 aims to solve this. |
Version: 4.3.3
Platform: Python 3.10 (actually any python)
Description: By default, there is a 2**31 max connection pool size. Such a large number seems unreasonable and unsafe to me for several reasons:
My suggestion is to reduce the default max_connections number (both in sync and async versions) to provide a safe configuration by default and let the end-user override it to fine-tune the performance for its needs. The number is discussable, I'd stay for about 100 default connections. I can handle this issue if you will decide to fix that :)
The text was updated successfully, but these errors were encountered: