Skip to Content
OpenPerf

Services

worker-errors

Symbolicates, groups and stores errors. Port 4400 serves health only.

  • Drains error_intake, the Redis queue that api-ingest fills.
  • Symbolicates browser stacks with the release's source maps. Without object storage, stacks stay minified. Use the same bucket as api.
  • Groups errors in PostgreSQL. A new or regressed group triggers issue alerts in worker-jobs.
  • Writes error events and groups to ClickHouse, and syncs group status changes every minute. The sync is scheduled by worker-jobs.

Reads PostgreSQL, ClickHouse, REDIS_STATE_URL from Redis, the ingest queue, object storage and logging. All variables below are optional.

VariableDefaultDescription
PORT4400Health port.
SOURCE_MAP_CACHE_BYTES268435456Memory for parsed source maps, per instance: about 80 bytes per mapping. A map whose mappings alone would not fit is not decoded: its stacks stay minified with the same mark.
ERROR_GROUP_FLUSH_MS10000How long group status is cached before PostgreSQL is checked for regressions. 0 checks every batch.

Fixed built-in timeouts: 5 seconds for source map symbolication per batch (past it, stacks stay minified with an openperf.symbolication.error mark), 120 seconds per intake batch, and 60 seconds per PostgreSQL statement.

Commands

The image exposes the worker-errors command:

CommandWhat it does
worker-errorsRuns the worker.
worker-errors healthcheckExits with 0 when /healthz on PORT answers, else 1.

On this page