X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FWorkerChoiceStrategyOptions.html;h=9c7fc690cc4a3f1510a8d9f491499f7f6450181f;hb=c4d8442aed5e5a9d6cde9f3bfd721be3033c1eef;hp=90215e7df560c1c04284778c2d9e9483f6dc1eb8;hpb=8d1797ad15cb2d87ac3c9904ce6df3db45c0c742;p=poolifier.git diff --git a/docs/interfaces/WorkerChoiceStrategyOptions.html b/docs/interfaces/WorkerChoiceStrategyOptions.html index 90215e7d..9382c1af 100644 --- a/docs/interfaces/WorkerChoiceStrategyOptions.html +++ b/docs/interfaces/WorkerChoiceStrategyOptions.html @@ -1,13 +1,13 @@ -WorkerChoiceStrategyOptions | poolifier
+WorkerChoiceStrategyOptions | poolifier - v2.6.44
-
+
  • The search index is not available
  • poolifier - v2.6.44 +
    @@ -17,97 +17,144 @@

    Interface WorkerChoiceStrategyOptions

    Worker choice strategy options.

    -
    +
    +

    Hierarchy

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:69
  • - +

    Properties

    -
    - -
    medRunTime?: boolean
    -

    Use tasks median run time instead of average run time.

    - -

    Default Value

    false

    +
    + + +

    Event loop utilization options.

    +
    +
    +

    Default Value

    { median: false }
    +
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:97
  • +
    + +
    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?: MeasurementOptions
    +

    Runtime options.

    +
    +
    +

    Default Value

    { median: false }
    +
    +
    +
    + +
    waitTime?: MeasurementOptions
    +

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

    On This Page

    +

    On This Page

    +
  • elu
  • +
  • measurement
  • +
  • retries
  • +
  • runTime
  • +
  • waitTime
  • +
  • weights
  • +
    -

    Generated using TypeDoc

    -
    \ No newline at end of file +

    Generated using TypeDoc

    +
    \ No newline at end of file