~/talk

NGINX as a high performance reverse proxy

Talkat LinuxConf [ZA] 2018 · on Monday, 2018-10-08· [networking]
links:none on file
slides:none on file

Shows how to run open-source NGINX as an SSL reverse proxy serving 10k+ simultaneous connections and even stress-tested to ~50k by combining NGINX proxy_pass to backend app servers (Gunicorn/CherryPy), event-driven workers sized to CPU cores, and worker_connections ≈ 10,000. Details include raising OS file-descriptor limits (ulimit/sysctl), increasing ephemeral port range, lowering TCP TIME_WAIT, tuning listen backlog, keepalive limits, sendfile, caching and SSL offload to cut backend CPU. Results: reliable at scale after those kernel and NGINX tweaks.

AI-written summary · about

  1. 0:00Introduction to NGINX
  2. 1:26What is a reverse proxy
  3. 3:32Why NGINX is fast
  4. 5:42Basic NGINX setup
  5. 6:48Load balancing methods
  6. 7:31Optimizing NGINX performance
  7. 8:57File descriptor limits
  8. 10:44TCP backlog and ports
  9. 12:08TCP TIME_WAIT timeout
  10. 13:11Keep-alive connections
  11. 13:53Upstream keep-alive
  12. 14:16Compression and caching
  13. 14:58Security and SSL
  14. 16:27Cipher selection
  15. 16:48HTTP/2 benefits
  16. 17:30Rate limiting
  17. 17:52Logging and performance
  18. 18:15Socket sharing
  19. 19:23Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.