X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FWorkerChoiceStrategyOptions.html;h=9bcaa7bb96aff80a5ff24bc94284d537da954cb0;hb=242949b268a9bb444ea94f8ef80614904459ef3c;hp=a862658a98c7075a64441eac79e9675d54c493d9;hpb=86f5c6c11d0a262b6514b95928b2534eecc37a4e;p=poolifier.git diff --git a/docs/interfaces/WorkerChoiceStrategyOptions.html b/docs/interfaces/WorkerChoiceStrategyOptions.html index a862658a..9bcaa7bb 100644 --- a/docs/interfaces/WorkerChoiceStrategyOptions.html +++ b/docs/interfaces/WorkerChoiceStrategyOptions.html @@ -1,113 +1,21 @@ -WorkerChoiceStrategyOptions | poolifier
-
- -
-
-
-
- -

Interface WorkerChoiceStrategyOptions

-
-

Worker choice strategy options.

-
-
-

Hierarchy

-
    -
  • WorkerChoiceStrategyOptions
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
medRunTime?: boolean
-

Use tasks median run time instead of average run time.

- -

Default Value

false

-
-
- -
-
-

Generated using TypeDoc

-
\ No newline at end of file +WorkerChoiceStrategyOptions | poolifier - v3.1.20

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.

+

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