X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FWorkerChoiceStrategyOptions.html;h=2f247dc3e3b1b6c5b64a1265d3e1af53ec3387d3;hb=afa30fd0dd5bbc5d305cc30be663966a449efc08;hp=90215e7df560c1c04284778c2d9e9483f6dc1eb8;hpb=8d1797ad15cb2d87ac3c9904ce6df3db45c0c742;p=poolifier.git diff --git a/docs/interfaces/WorkerChoiceStrategyOptions.html b/docs/interfaces/WorkerChoiceStrategyOptions.html index 90215e7d..2f247dc3 100644 --- a/docs/interfaces/WorkerChoiceStrategyOptions.html +++ b/docs/interfaces/WorkerChoiceStrategyOptions.html @@ -17,13 +17,14 @@

Interface WorkerChoiceStrategyOptions

Worker choice strategy options.

-
+ +

Hierarchy

+
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:41
  • @@ -31,24 +32,48 @@

    Properties

    - +
    medRunTime?: boolean
    -

    Use tasks median run time instead of average run time.

    - -

    Default Value

    false

    +

    Use tasks median runtime instead of average runtime.

    +
    +
    +

    Default Value

    false

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:47
  • +
    + +
    medWaitTime?: boolean
    +

    Use tasks median wait time instead of average runtime.

    +
    +
    +

    Default Value

    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.

    +
    +
  • medRunTime
  • +
  • medWaitTime
  • +
  • weights
  • +
  • AbstractPool
  • +
  • AbstractWorker
  • +
  • CircularArray
  • +
  • ClusterWorker
  • +
  • DynamicClusterPool
  • +
  • DynamicThreadPool
  • +
  • FixedClusterPool
  • +
  • FixedThreadPool
  • +
  • PoolEmitter
  • +
  • Queue
  • +
  • ThreadWorker
  • +
  • WorkerChoiceStrategyContext
  • +
  • ClusterPoolOptions
  • +
  • IPool
  • +
  • IWorker
  • +
  • IWorkerChoiceStrategy
  • +
  • MessageValue
  • +
  • PoolInfo
  • +
  • PoolOptions
  • +
  • PromiseResponseWrapper
  • +
  • Task
  • +
  • TaskStatistics
  • +
  • TasksQueueOptions
  • +
  • TasksUsage
  • +
  • WorkerChoiceStrategyOptions
  • +
  • WorkerNode
  • +
  • WorkerOptions
  • +
  • Draft
  • +
  • ErrorHandler
  • +
  • ExitHandler
  • +
  • KillBehavior
  • +
  • MessageHandler
  • +
  • OnlineHandler
  • +
  • PoolEvent
  • +
  • PoolType
  • +
  • TaskFunctions
  • +
  • ThreadWorkerWithMessageChannel
  • +
  • WorkerAsyncFunction
  • +
  • WorkerChoiceStrategy
  • +
  • WorkerFunction
  • +
  • WorkerSyncFunction
  • +
  • WorkerType
  • +
  • KillBehaviors
  • +
  • PoolEvents
  • +
  • PoolTypes
  • +
  • WorkerChoiceStrategies
  • +
  • WorkerTypes
  • Generated using TypeDoc

    \ No newline at end of file