X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FWorkerChoiceStrategyOptions.html;h=78870694624c539e3fbf42cdf73c630ac0b6ebdc;hb=a99f06d1fff8949584cd630bfaa3fa2e3cc3897e;hp=d17a34328d8b8224d57615efd4c8e9d8c07db15c;hpb=cf4c4b77d31b88b45c9f876f6fab553e66000f4d;p=poolifier.git diff --git a/docs/interfaces/WorkerChoiceStrategyOptions.html b/docs/interfaces/WorkerChoiceStrategyOptions.html index d17a3432..78870694 100644 --- a/docs/interfaces/WorkerChoiceStrategyOptions.html +++ b/docs/interfaces/WorkerChoiceStrategyOptions.html @@ -1,5 +1,5 @@ -WorkerChoiceStrategyOptions | poolifier - v3.1.22

Interface WorkerChoiceStrategyOptions

Worker choice strategy options.

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

Properties

elu? +WorkerChoiceStrategyOptions | poolifier - v3.1.27

Interface WorkerChoiceStrategyOptions

Worker choice strategy options.

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

Properties

elu? measurement? runTime? waitTime? @@ -7,15 +7,15 @@

Properties

Event loop utilization options.

Default Value

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

Measurement to use in worker choice strategy supporting it.

-

Runtime options.

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

Measurement to use in worker choice strategy supporting it.

+

Runtime options.

Default Value

{ median: false }
 
-

Wait time options.

+

Wait time options.

Default Value

{ median: false }
 
-
weights?: Record<number, number>

Worker weights to use for weighted round robin worker selection strategies. +

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

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file