X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FWorkerChoiceStrategyOptions.html;h=280d070dbb90b028878e07f4af8e9df8b75d89e0;hb=c8576e5fe740384f6f61316b7f09a788a14ab0ef;hp=9a44e279b082062d5f02afa6d1ce29600a5d2b31;hpb=9ad272eaf0cded8c7e70f1fe6f075c99f23619fa;p=poolifier.git diff --git a/docs/interfaces/WorkerChoiceStrategyOptions.html b/docs/interfaces/WorkerChoiceStrategyOptions.html index 9a44e279..280d070d 100644 --- a/docs/interfaces/WorkerChoiceStrategyOptions.html +++ b/docs/interfaces/WorkerChoiceStrategyOptions.html @@ -1,25 +1,21 @@ -WorkerChoiceStrategyOptions | poolifier - v3.0.8

Interface WorkerChoiceStrategyOptions

Worker choice strategy options.

-

Hierarchy

  • WorkerChoiceStrategyOptions

Properties

Event loop utilization options.

+WorkerChoiceStrategyOptions | poolifier - v4.0.1

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.

-
retries?: number

Number of worker choice retries to perform if no worker is eligible.

-

Default Value

6
-
-

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 +
\ No newline at end of file