Uncovering Hidden TCP Throttling in the Linux Kernel
Trending on Hacker News: Uncovering Hidden TCP Throttling in the Linux Kernel (268 points / 27 comments, via cdn77.com)
In one line
How we traced intermittent nginx throughput drops to cgroup memory pressure and contributed a patch to the Linux kernel.
Opening excerpt
Disclaimer: No AI was used for writing this blog. Enjoy a humanly engineered piece. One day, a customer was complaining about slow download speeds from one of our edge servers. Since the internet is full of unpredictability, complaints like that occasionally happen, but this time, there were no error codes. We couldn’t reproduce the issue. The only thing we could see was lower traffic on the network interface. The strangest part was that it happened randomly, recovered on its own, and it didn’t affect all clients connected to that server.
CDNs are usually built in a multi-layer setup. When a client requests content, the closest edge node serves it from its cache. If the content isn’t there, the edge fetches it from an upper layer. The request can travel further up until it reaches a shield node, which finally fetches the content from the customer’s origin. At CDN77, all these layers run heavily modified nginx. As we would eventually discover, nginx was an important part of this story.
(Excerpted from the original; full article via the source link below.)
This story hit the Hacker News front page today (268 points / 27 comments, via cdn77.com). Our Tech Radar aggregates daily signals on AI engineering, backend architecture and DevOps — browse the related services and further reading below, or get in touch with our team.
Source: Hacker News