|
|
|
|
|
by tbarbugli
672 days ago
|
|
Nice article which matches my experience when it comes to optimizing for performance: Linux defaults are never good defaults and you don't need webscale or anything before you get bitten by them. To make a few examples: on many distributions you get 1024 as the file limits, 4KB of shared memory (shmall) and Nagle's algorithm is enabled by default. Another thing that we noticed at work (shameless plug to getstream.io) when it comes to tail latency for APIs / HTTP services: - TLS over HTTP is annoyingly slow (too many roundtrips) - Having edge nodes / POPs close to end-users greatly improves tail latency (and reduces latency related errors). This works incredibly well for simple relays (the "weak" link has lower latency) - QUIC is awesome |
|
https://0pointer.net/blog/file-descriptor-limits.html is a good overview of the unfortunate reason why this is and how it should be handled.