X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FWorkerChoiceStrategyOptions.html;h=7e53f6e8cca34a92e8bf061db29f6665201192f1;hb=de868be6cc9bcfb6d341ffb14e6407c24a1a0e17;hp=0c45d1b5ef701db6f1c51832381ae74b0be0e3ae;hpb=f9fc489a415da7131735b04b0af50b1143dbdf70;p=poolifier.git diff --git a/docs/interfaces/WorkerChoiceStrategyOptions.html b/docs/interfaces/WorkerChoiceStrategyOptions.html index 0c45d1b5..7e53f6e8 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.1.1

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

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