Interface WorkerChoiceStrategyOptions

Worker choice strategy options.

Hierarchy

  • WorkerChoiceStrategyOptions

Properties

Event loop utilization options.

Default Value

{ median: false }

measurement?: "runTime" | "waitTime" | "elu"

Measurement to use for worker choice strategy.

Runtime options.

Default Value

{ median: false }

Wait time options.

Default Value

{ median: false }

weights?: Record<number, number>

Worker weights to use for weighted round robin worker selection strategy. Weight is the tasks maximum average or median runtime in milliseconds.

Default Value

Computed worker weights automatically given the CPU performance.

Generated using TypeDoc