Commit Graph

7 Commits

Author SHA1 Message Date
Luke Berndt
5b177eca58 Raise nginx connection limits and microcache /calls polling
A traffic surge exhausted nginx's 3 x 4096 worker_connections (each
proxied websocket uses two), so Cloudflare got empty responses (520)
and the backend's listen queue filled.

- worker_processes auto (8 cores), worker_connections 16384,
  worker_rlimit_nofile 65535.
- Cache public /calls endpoints on api.*: 5s for live lists, 60s for
  historical ones, with cache lock and stale-while-updating so bursts
  collapse to one backend query. Origin is in the cache key because
  the backend's CORS header varies by Origin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:42:11 -05:00
Luke Berndt
918133b214 Update nginx.conf 2023-02-15 12:58:45 -05:00
Luke Berndt
b76bf1df9d focused logging 2023-02-15 12:45:53 -05:00
Luke Berndt
c87c57c3ab limited logs 2023-02-15 09:33:57 -05:00
Luke Berndt
303b0f9967 logs!! 2023-02-15 09:13:24 -05:00
Luke Berndt
ac82b16601 Update nginx.conf 2021-03-14 22:04:57 -04:00
Luke Berndt
3b0d3f290f First Commit 2020-06-09 22:11:11 -04:00