X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FWorkerChoiceStrategyOptions.html;h=9146660c333fc410f07630943d42951d7a8a9b26;hb=224d008191f52fa20b93e1ba67919569f8d6e315;hp=3b40a5dab45fb5bd34c801cacbbc2df1e358fe66;hpb=dea42379cfdbcf1c1c9800df7c097eab484ebc07;p=poolifier.git diff --git a/docs/interfaces/WorkerChoiceStrategyOptions.html b/docs/interfaces/WorkerChoiceStrategyOptions.html index 3b40a5da..9146660c 100644 --- a/docs/interfaces/WorkerChoiceStrategyOptions.html +++ b/docs/interfaces/WorkerChoiceStrategyOptions.html @@ -1,21 +1,25 @@ -WorkerChoiceStrategyOptions | poolifier - v4.0.15

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 - v4.0.15

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

Properties

Event loop utilization options.

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

Measurement to use in worker choice strategy supporting it.

+

Runtime options.

+
{ median: false }
+
+ +

Wait time options.

+
{ 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.
-
-
\ No newline at end of file +
Weights computed automatically given the CPU performance.
+
+ +
\ No newline at end of file