Interface WorkerChoiceStrategyOptions

Worker choice strategy options.

interface WorkerChoiceStrategyOptions {
    elu?: MeasurementOptions;
    measurement?: "runTime" | "waitTime" | "elu";
    runTime?: MeasurementOptions;
    waitTime?: MeasurementOptions;
    weights?: Record<number, number>;
}

Properties

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 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