Skip to main content
MINT LEDGER ANSWERQUOTA DESK // PERPLEXICA + SEARXNG + VALKEY AUDIT BASELINE: 2026-10-21 | HOSTINGER KVM 2/4 ($6.99-$9.99/MO) + VULTR ($300 CREDIT)
SearchEngineAPI
SearchEngineAPI Transparency: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero cost to you (Disclosure).
Cost Models // AnswerQuota Desk

Valkey 8 In-Memory Rate Limiter & SERP Deduplication Sizing

A 185 MB Valkey 8 Alpine container handles SearXNG limiter buckets and 600-second query caching under permissive BSD-3 licensing.

Measured Unit Economics & Telemetry

SearXNG natively migrated from Redis to Valkey for its internal bot limiter and engine backoff state. Running valkey:8-alpine in pure RAM mode (--save "" --appendonly no) with allkeys-lru eviction prevents runaway memory growth while absorbing 20-35% of repeat agent queries before hitting external engines.

Resource / Billing LineAudited ValueFinOps Impact
Valkey 8 Base Alpine RSS~24 MBMinimal idle memory footprint
100k Queries/Mo Cache Cap185 MB maxmemoryHolds ~35k normalized SERP entries
500k Queries/Mo Cache Cap325 MB maxmemorySustains heavy concurrent agent traffic
Container mem_limit Floormaxmemory + 64 MBProtects against allocator fragmentation

Implementation & Configuration Checklist

  1. Disable Snapshot Persistence: Pass --save "" --appendonly no so Valkey never blocks on background fork() RDB dumps.
  2. Enable SearXNG Limiter: Set server.limiter: true in settings.yml to guard against rogue loops.
  3. Isolate on Private Docker Network: Never publish port 6379 to 0.0.0.0; keep Valkey reachable only by SearXNG.
VALKEY_IMAGE=valkey/valkey:8-alpine
VALKEY_MAXMEMORY=185mb
VALKEY_POLICY=allkeys-lru
RDB_AOF_DISABLED=true

Answer Engine Infrastructure FAQ

Does SearXNG work with Valkey without changing connection strings?

Yes. Valkey 8 is protocol-compatible and accepts the standard redis://valkey:6379/0 URI.

What happens if Valkey hits maxmemory?

The allkeys-lru policy evicts the oldest cached SERP keys cleanly with zero errors.

Related Cost Models Dossiers

SearchEngineAPI: Exit $6-$15/1k search API fees with SearXNG + Valkey Deploy KVM 4 ($9.99/mo)