Resource planning for a headless browser deployment built by a Chinese team begins with concurrent session load and per-session page weight, not with a headline browser count. A headless bot consumes CPU and memory while a page is loaded and interacting, and it rests between sessions; the sizing question is how many sessions run at the same moment at peak, and how heavy each supplier portal page is. Over-provisioning wastes hosting money every month; under-provisioning shows up as slow batches, stalled queues, and timeouts during the busiest run. This article sets out a specification table for a typical browser automation deployment, isolates the two specs that actually decide machine size, and lists the memory, storage, and network lines the table leaves out. Figures are planning estimates for ordinary portal work in 2025, not benchmarks from a specific vendor, and real numbers should be measured on staging before production capacity is locked in.
Why resource planning starts from session load, not browser count
Buyers sometimes size capacity by multiplying the number of accounts by the number of daily runs, then dividing by a generic number of browsers. That calculation mixes total daily work with simultaneous work, and the two are very different. Thirty accounts run twice daily means sixty sessions per day; if each session lasts three minutes, the active session time is three hours spread across the working day, and a single modest machine can absorb it comfortably. The same sixty sessions compressed into a one-hour morning deadline need much more concurrency than a day-long spread, even though the daily total is unchanged.
Page weight drives per-session cost. Most supplier portals sit between these two extremes, but a simple form page with a few fields and a small table uses a lightweight document; a portal with embedded charts, large tables, real-time widgets, and attachment previews keeps a heavier JavaScript runtime resident per session. Two deployments with the same session count can differ two to three times in memory footprint because of page weight alone. The vendor should measure the actual target portal pages on staging rather than assume a generic browser profile.
Queue design converts session load into capacity. A paced queue keeps concurrent sessions under a planned ceiling, batches the rest in order, and reports pending and running counts. Without that ceiling, a backlog drains by opening every account at once, which spikes memory, trips portal-side throttling, and produces lockouts. The queue and the machine sizing are one decision: the concurrency ceiling sets the compute needed, and the machine must hold the ceiling’s worst case plus headroom.
The resource specification table for a headless deployment
The table below gives planning ranges for small, medium, and large headless deployments against typical supplier portal pages. They are starting estimates for a capacity conversation, not a purchase order; staging measurements replace them.
| Planning dimension | Small: up to 5 concurrent sessions | Medium: 6–15 concurrent sessions | Large: 16–30 concurrent sessions |
|---|---|---|---|
| vCPU allocation | 2 cores | 4–6 cores | 8–12 cores |
| Memory | 4 GB | 8–12 GB | 16–24 GB |
| Per-session memory reserve | ~0.6–0.8 GB | ~0.7–0.9 GB | ~0.8–1.0 GB |
| Local or attached disk for logs and screenshots | 20–40 GB | 60–120 GB | 150–300 GB |
| Expected daily sessions at paced throughput | Up to ~120 | ~120–350 | ~350–800 |
| Single-machine or split | Single machine | Single machine or two workers | Multiple workers behind one queue |
The per-session reserve is the figure to watch. If staging shows a single portal session holding 1.2 GB after attachments load, the medium range should be sized toward the large side even though the session count stays medium. A common planning rule keeps unused memory headroom of roughly 25 to 30 percent above the measured peak, because browser runtimes grow with long sessions and page caches accumulate through the day.
Disk is sized around evidence retention rather than session count. Screenshots, traces, page dumps, and exported records accumulate at a few hundred kilobytes to a few megabytes per failed or reviewed session, plus success-run logs. The retention window the buyer chooses for audit review decides disk size: 30 days of evidence needs less than 90 days, and archived evidence should move to cheaper object storage rather than live on the compute machine.
Two specs that decide machine sizing: session weight and peak concurrency
After the table is drawn, two specs do the real sizing work. The first is peak concurrent sessions: the largest number of sessions the queue will open at once, which should be derived from the daily deadline, average session duration, and paced throughput. Peak, not average, sets the machine’s ceiling; an average that looks calm hides a morning spike that exhausts memory for fifteen minutes. The vendor should show the arithmetic for peak: sessions per interval, duration, and the concurrency ceiling the queue enforces.
The second spec is per-session weight measured on the actual portals. Measure memory and CPU at the heaviest moment of a real session: after the main page loads, after any attachment preview renders, and during the largest table. Multiply that measured peak by the concurrency ceiling, add headroom, and compare against the planned machine. A vendor who sizes from a generic headless browser profile, without opening the buyer’s actual portals, will either overshoot on simple portals or undershoot on heavy ones.
These two specs also decide whether one machine holds the deployment or the work splits into workers. A single queue can distribute sessions to several worker machines, which adds redundancy: one worker’s restart does not stop the whole batch. Splitting becomes attractive above about fifteen concurrent sessions, when one machine’s failure would hold a large backlog, or when peak and off-peak load differ enough that a shared pool wastes resources overnight. The shared-machine trade-off in virtualized setups is discussed in bots in shared VDI environments, which covers the contention issues that appear when several automation workloads contend for the same host.
Memory, storage, and network the sizing table omits
Beyond compute and memory, three supporting lines are usually missing from a first capacity estimate. Dependency overhead sits outside the browser: the queue service, the secrets client, the log shipper, monitoring agents, and any conversion or OCR helper each reserve a small slice of CPU and memory that adds up across a medium deployment. Buyers should ask what background processes run on the machine besides the browsers, and how much each reserves.
Storage splits into live evidence, archived records, and configuration. Live evidence on the compute machine covers the recent review window; older evidence moves to object storage; scripts, selector maps, and fixtures live in the repository, not on the production server. Records produced by the bot should land in the buyer’s own data store rather than accumulating on the bot host, so the compute machine can be replaced without data loss. The reporting and export design that keeps produced records out of the bot host is covered in scheduled exports and reporting for automation bots.
Network capacity is often overlooked until a batch stalls. Each session transfers page markup, stylesheets, scripts, images, and attachment files; heavy portals with large tables or PDFs can move tens of megabytes per session. Plan bandwidth against peak concurrency times per-session transfer, and check latency from the hosting region to each target portal. A host near the portals reduces page load time per session, which shortens session duration and raises how many sessions one worker can finish per hour. Where the buyer’s own internal system receives the records, that link matters too: a slow internal API bottlenecks the batch even when the browser side is healthy.
Hosting region and the China delivery mechanics behind capacity
A Chinese build team can deploy the headless bots in the region that best fits the portals and the data rules. Hosting in mainland China answers fastest to mainland-based portals but brings local data obligations the buyer should review; hosting in Singapore, Frankfurt, or another third region avoids those obligations while adding latency and a cross-border transfer to assess. The capacity plan should state the region in writing, because moving a running deployment between regions later means re-measuring latency, re-testing sessions, and re-pointing credentials.
Cross-border data flow affects storage planning as much as location. If portal records or session evidence must stay in a specified jurisdiction, the bot host, the log store, and the archive all sit inside that boundary; the vendor’s own staff access is limited and revocable. Buyers should ask where session logs physically rest, whether vendor support can read them, and how deletion works at exit. The data-residency alternatives for China-sourced automation are compared in data residency alternatives for Chinese-built automation, and the same three host options apply to headless browser deployments.
Delivery mechanics around capacity include the environment specification the vendor hands over: machine image or container definition, pinned browser version, installed dependencies, environment variables, and the startup and restart commands. A capacity plan that depends on the vendor’s existing machine image, without a reproducible definition, cannot be scaled to a second worker or rebuilt after a failure. Ask for the deployment artifact that provisions a fresh worker to the planned specification, and test it during staging.
Rechecking capacity as volume grows
Capacity is a recurring review, not a one-time sizing. After go-live, track peak concurrent sessions, per-session memory and CPU, pending queue depth, and batch completion times against the original plan. New accounts, new portals, or a tighter deadline raise peak concurrency; a heavy new portal raises per-session weight. A quarterly review compares measured peaks against the machine’s ceiling and decides when to add a worker, raise memory, or split the queue.
Change orders should separate feature additions from capacity additions. Adding a new portal flow is engineering work; adding the concurrency to run that flow at the planned deadline is a capacity line the buyer prices alongside it. Vendors sometimes absorb small concurrency growth into a fixed retainer and stop responding when load climbs past the retainer’s hidden ceiling, so the agreement should state how many concurrent sessions the monthly fee covers and how additional capacity is billed.
The final planning checkpoint is a load test on staging: run the planned peak concurrency against test portals, watch memory and CPU through the whole batch, and stop the run near the ceiling to see where degradation begins. A deployment that looks comfortable at half concurrency can fall over at peak, and the only way to know the real headroom is to push the staged system before production depends on it. Buyers who measure peak sessions, measured page weight, and evidence retention before signing get a capacity plan that grows with the operation instead of one that breaks during the first busy deadline.
Leave a Reply