X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FWorkerChoiceStrategyOptions.html;h=65e647fbe6ea7a7bab5ceca54d8841f8bba76c8a;hb=069e56f4a71b48e89eeb1b4b2ccf693b75116f07;hp=6e3abbd25f68f3bfcda958b9233a64b49dcc3288;hpb=4f487526a63c873d168386250b40ad8103c5a4d8;p=poolifier.git diff --git a/docs/interfaces/WorkerChoiceStrategyOptions.html b/docs/interfaces/WorkerChoiceStrategyOptions.html index 6e3abbd2..65e647fb 100644 --- a/docs/interfaces/WorkerChoiceStrategyOptions.html +++ b/docs/interfaces/WorkerChoiceStrategyOptions.html @@ -1,4 +1,4 @@ -WorkerChoiceStrategyOptions | poolifier
+WorkerChoiceStrategyOptions | poolifier - v2.6.34
  • Preparing search index...
  • -
  • The search index is not available
poolifier
+
  • The search index is not available
  • poolifier - v2.6.34
    @@ -24,7 +24,7 @@
    • WorkerChoiceStrategyOptions
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:69
  • @@ -32,34 +32,65 @@

    Properties

    -
    - -
    medRunTime?: boolean
    -

    Use tasks median runtime instead of average runtime.

    +
    + +
    choiceRetries?: number
    +

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

    -

    Default Value

    false

    +

    Default Value

    6

    -
    - -
    medWaitTime?: boolean
    -

    Use tasks median wait time instead of average runtime.

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

    Event loop utilization options.

    -

    Default Value

    false

    +

    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.

    +
    +
    +
    + + +

    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.

    @@ -68,7 +99,7 @@ Weight is the tasks maximum average or median runtime in milliseconds.

    Default Value

    Computed worker weights automatically given the CPU performance.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:104
  • +
  • WorkerTypes
  • +
  • availableParallelism
  • Generated using TypeDoc

    \ No newline at end of file