mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 22:48:16 +00:00
The current threshold of 40k descriptors was set in 2016, chosen to be "at least 40x our current scale." At present, that only provides a 50% safety margin. Increase to 1 million to provide the same 40x buffer as previously. The highest value currently allowed by the kernels in production (linux 5.3.0) is 1048576. This is set as the hard limit. The 1 million limit is likely far above what the system can handle for other reasons (memory, cpu, etc). While this removes a potential safeguard on overload due to too many connections, due to the longpoll architecture we would generally prefer to service more connections at lower quality (due to CPU limitations) rather than randomly reject additional connections. Relevant prior commits: -836f313e69-f2f97dd335-ec23996538-8806ec698a-e4fce10f46