Skip to main content

Module pool

Module pool 

Source
Expand description

Browser pool manager — manages headless Chromium instances (PRD §8.3).

Resource tier controls pool size:

  • Minimal: 1 browser, 2 tabs (~200 MB)
  • Standard: 1 browser, 4 tabs (~500 MB)
  • Performance: 2 browsers, 8 tabs (~1 GB)

§Chrome binary detection (Ubuntu 24.04 snap)

Snap Chromium (Ubuntu 24.04): Uses .user_data_dir() per-instance to avoid Chrome’s SingletonLock error (without it, only the 1st instance can launch).

§Graceful init

init() logs individual browser failures but only errors if ALL instances fail. This lets snap Chromium work even when only 1 of N instances launches.

Only compiled when the headless feature is enabled.

Structs§

BrowserPool
Stub pool for non-headless builds.