zshot/cliDownload

--browser-pool-max

CLI
--browser-pool-max
REST
CLI only
ValueNUMBER
Default1 per 8 CPUs
LicensePro

Caps the number of browser processes that --cdp, --server, and --mcp-local-server spawn to distribute concurrent load.

BehaviorRule
Scale-out threshold8 concurrent --cdp clients or renders per process
At capacityNew clients and renders route to the least-loaded process

Each process runs its own main and compositor threads, keeping latency steady under high concurrency while sharing a single license activation. Processes start on demand; if a process exits or stops responding, its active work fails and ZShot spawns a replacement on the next request.

Under --cdp, each client stays pinned to one process for the life of its connection and sees only its own pages.

In server mode, pooling activates when --server-max-concurrency exceeds 8. Concurrency limits, queueing, /status, /metrics, and --server-unhealthy-at apply across the entire pool. On /metrics, zshot_browser_pool_members reports the active process count, and child processes label their series with member.

Example

Cap a Playwright test run to two browser processes:

CLI Run locally
zshot --cdp --browser-pool-max 2 -- npx playwright test

Serve 32 concurrent renders across up to four browser processes:

CLI Run locally
zshot --server --server-max-concurrency 32 --browser-pool-max 4

Disable pooling and run all clients on a single browser process:

CLI Run locally
zshot --cdp --browser-pool-max 1 -- npx playwright test