ARC2 Proxy
Performance tuning Guide

Performance & socket tuning

Buffers, Nagle, keep-alive, backlog, streaming and timeouts — what to touch and what to leave.

The proxy exposes the socket and connection knobs that matter under load. The defaults are tuned for low latency and high concurrency, so most deployments never change them — but when you are chasing tail latency or a very specific traffic shape, these are the levers.

  • Latencynodelay, proxy_nodelay, nonblocking keep small messages flowing without Nagle delay.
  • Throughputrecv_buffer_size and send_buffer_size size the kernel socket buffers.
  • Concurrencymax_backlog bounds the accept queue; proxy_keepalive_sec reuses upstream connections.
  • Large/slow responsesenable_streaming streams bodies instead of buffering them.
⚠️Measure first
These settings interact with your kernel and NIC. Change one at a time and measure — blindly inflating buffers or backlog can hurt as easily as help.