X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FWorkerChoiceStrategyOptions.html;h=db433d58d446e95e8ab2e5bfeeddb09417feb3a9;hb=b73887071ac359b50a7f117a76b3edf268841aac;hp=0c45d1b5ef701db6f1c51832381ae74b0be0e3ae;hpb=078116c1d8dde66831fcf40973059818592c8a88;p=poolifier.git diff --git a/docs/interfaces/WorkerChoiceStrategyOptions.html b/docs/interfaces/WorkerChoiceStrategyOptions.html index 0c45d1b5..db433d58 100644 --- a/docs/interfaces/WorkerChoiceStrategyOptions.html +++ b/docs/interfaces/WorkerChoiceStrategyOptions.html @@ -1,25 +1,25 @@ -WorkerChoiceStrategyOptions | poolifier - v3.0.5

Interface WorkerChoiceStrategyOptions

Worker choice strategy options.

-

Hierarchy

  • WorkerChoiceStrategyOptions

Properties

elu? +WorkerChoiceStrategyOptions | poolifier - v3.0.14

Interface WorkerChoiceStrategyOptions

Worker choice strategy options.

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

Properties

Event loop utilization options.

-

Default Value

{ median: false }
+

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.

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

Runtime options.

+

Default Value

{ median: false }
 
-

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

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