
7/31/2018 · Ka-Hing Cheung
What this post added
This post details modifications made to NGINX to address performance bottlenecks caused by blocking I/O operations (open() and read()) within the event loop. The solution involved moving these operations to thread pools, preventing them from blocking subsequent event handlers. Additionally, SO_REUSEPORT was enabled to improve the even distribution of requests across worker processes. These changes resulted in a significant improvement in p99 TTFB, estimated to save 54 years of wait time per day.