Interface WorkerChoiceStrategyOptions

Worker choice strategy options.

Hierarchy

  • WorkerChoiceStrategyOptions

Properties

Event loop utilization options.

Default Value

{ median: false }
measurement?: "runTime" | "waitTime" | "elu"

Measurement to use in worker choice strategy supporting it.

retries?: number

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

Default Value

6

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 strategies. A weight is tasks maximum execution time in milliseconds for a worker node.

Default Value

Weights computed automatically given the CPU performance.

Generated using TypeDoc