Small servers
Running favicons on a 1 vCPU, 512 MB box.
The defaults suit a 1 vCPU / 512 MB box. Most of the protection comes from keeping work off it:
- Put a CDN in front. Real icons are CDN-cacheable for 30 days, so origin sees roughly one request per icon per month per PoP.
- Cap the cache. Object storage keeps it off the box; on a local disk use
cache.max_disk_bytesorcache.max_disk_entries(storage). - Keep
fetch.workerslow (4–8). Fetching is the expensive part; the fair queue keeps honest users served under a flood. - Keep
render.decode_concurrencyat 1–2. Decoding is CPU-bound and the limit caps the worst case of hostile images. - Enable
min_domain_age_daysand a blocklist if you serve a mail client: most spam domains are rejected without any outbound request. - Pre-warm the top few thousand domains after deployment by requesting them once.
- Set
client_ip.sourcecorrectly behind a proxy (details).
Measured throughput is in Benchmarks.