X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FWorkerChoiceStrategyOptions.html;h=db433d58d446e95e8ab2e5bfeeddb09417feb3a9;hb=b73887071ac359b50a7f117a76b3edf268841aac;hp=254705c02128585ac00a125fe31b3bce49c40689;hpb=c74b6981dbc78aa19a73c690eace221969bb997f;p=poolifier.git diff --git a/docs/interfaces/WorkerChoiceStrategyOptions.html b/docs/interfaces/WorkerChoiceStrategyOptions.html index 254705c0..db433d58 100644 --- a/docs/interfaces/WorkerChoiceStrategyOptions.html +++ b/docs/interfaces/WorkerChoiceStrategyOptions.html @@ -1,193 +1,25 @@ -WorkerChoiceStrategyOptions | poolifier - v2.6.32
-
- -
-
-
-
- -

Interface WorkerChoiceStrategyOptions

-
-

Worker choice strategy options.

-
-
-
-

Hierarchy

-
    -
  • WorkerChoiceStrategyOptions
-
-
-
- -
-
-

Properties

-
choiceRetries? -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

-
- -
choiceRetries?: number
-

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

-
-
-

Default Value

6

-
-
- - -

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 strategy. -Weight is the tasks maximum average or median runtime in milliseconds.

-
-
-

Default Value

Computed worker weights automatically given the CPU performance.

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +

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.

+

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