Interface WorkerChoiceStrategyOptions

Worker choice strategy options.

Hierarchy

  • WorkerChoiceStrategyOptions

Properties

medRunTime?: boolean

Use tasks median runtime instead of average runtime.

Default Value

false

medWaitTime?: boolean

Use tasks median wait time instead of average runtime.

Default Value

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