From c93d1736fe4472447553e98088ca5f8a5aa3b8e9 Mon Sep 17 00:00:00 2001 From: Joe Lothan Date: Mon, 25 May 2026 17:30:29 -0400 Subject: [PATCH] tune unbound to take up less memory for our use case --- infra/ec2-userdata.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/infra/ec2-userdata.sh b/infra/ec2-userdata.sh index 7785cd0..bbf9fa9 100755 --- a/infra/ec2-userdata.sh +++ b/infra/ec2-userdata.sh @@ -78,10 +78,11 @@ server: infra-cache-slabs: 4 key-cache-slabs: 4 - # Cache sizing (use available RAM) - msg-cache-size: 512m - rrset-cache-size: 1g - key-cache-size: 256m + # Cache sizing — values are per-slab (×4 slabs), so total = 4× these values + # Only need ~500MB total — TLD/NS records stay hot via LRU, individual A records evict naturally + msg-cache-size: 32m + rrset-cache-size: 64m + key-cache-size: 16m # Aggressive caching cache-min-ttl: 3600