Cost Models // AnswerQuota Desk
Headless Chromium & PDF Citation Scraper RAM Spike Model
Swapping headless Chromium (950 MB burst) for lightweight Readability HTTP parsing (180 MB) cuts scraper memory by 81% on 8 GB nodes.
Measured Unit Economics & Telemetry
When an answer engine retrieves full web pages to ground LLM synthesis, spinning up a headless Chromium/Puppeteer tab consumes 350-950 MB RAM per concurrent browser context. Using fast HTTP fetch + Mozilla Readability handles static blogs, docs, and news in 180 MB total—reserving Chromium only for SPA-heavy targets on 16 GB KVM 4.
| Resource / Billing Line | Audited Value | FinOps Impact |
|---|---|---|
| Cheerio + Readability Parser | ~180 MB RSS | 10-25 concurrent fetches on KVM 2 (8 GB) |
| Headless Chromium (2 tabs) | ~950 MB burst | Requires 16 GB KVM 4 / Vultr headroom |
| Chromium + PDF Render (5 tabs) | ~1,850 MB burst | Can OOM an 8 GB node without queue cap |
| Page Fetch Latency Savings | 8x faster on static HTML | 350 ms vs 2,800 ms browser boot |
Implementation & Configuration Checklist
- Default to Readability HTTP Fetch: Use lightweight DOM parsing for 85%+ of standard documentation and article URLs.
- Cap Headless Browser Pool to 2 Tabs: If Chromium fallback is enabled, serialize SPA scrapes through a 2-slot semaphore.
- Upgrade to KVM 4 (16 GB) for PDF-Heavy Search: Provision 16 GB RAM whenever agents routinely parse multi-MB financial or academic PDFs.
SCRAPER_MODE=readability
CHROMIUM_FALLBACK_MAX_TABS=2
READABILITY_RSS_MB=180
CHROMIUM_BURST_MB=950
Answer Engine Infrastructure FAQ
Why does Puppeteer spike CPU as well as RAM?
Executing client-side JavaScript bundles and ad scripts on target pages saturates vCPUs; blocking images/fonts/ads cuts load by 60%.
Can Readability parse PDF links?
No; pair Readability with a lightweight pdf-parse stream or route PDFs through a capped worker queue on KVM 4.