X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FWorkerChoiceStrategyOptions.html;h=9b4b194019e255080b23c00adbd199dad9128df6;hb=d3a9c958dcc326062e978f22d88747c00522032d;hp=7e79466e30b576d2f485db55c87761eec90f1730;hpb=e82ac13a1f1af55b7668013195a12f9e3e017205;p=poolifier.git diff --git a/docs/interfaces/WorkerChoiceStrategyOptions.html b/docs/interfaces/WorkerChoiceStrategyOptions.html index 7e79466e..9b4b1940 100644 --- a/docs/interfaces/WorkerChoiceStrategyOptions.html +++ b/docs/interfaces/WorkerChoiceStrategyOptions.html @@ -1,160 +1,21 @@ -WorkerChoiceStrategyOptions | poolifier - v3.0.3
-
- -
-
-
-
- -

Interface WorkerChoiceStrategyOptions

-
-

Worker choice strategy options.

-
-
-
-

Hierarchy

-
    -
  • WorkerChoiceStrategyOptions
-
-
-
- -
-
-

Properties

-
- - -

Event loop utilization options.

-
-
-

Default Value

{ median: false }
+WorkerChoiceStrategyOptions | poolifier - v3.1.29

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
+
measurement?: "runTime" | "waitTime" | "elu"

Measurement to use in worker choice strategy supporting it.

+

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