Interface WorkerChoiceStrategyOptions

Worker choice strategy options.

Hierarchy

  • WorkerChoiceStrategyOptions

Properties

choiceRetries?: number

Number of worker choice retries to perform if no worker is eligible.

Default Value

6

Event loop utilization options.

Default Value

{ median: false }

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

Measurement to use in worker choice strategy supporting it.

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