Table of Contents

Class ResourceBasedSlotSupplier

Namespace
Temporalio.Worker.Tuning
Assembly
Temporalio.dll

A slot supplier that will dynamically adjust the number of slots based on resource usage.

public sealed record ResourceBasedSlotSupplier : ISlotSupplier, IEquatable<ResourceBasedSlotSupplier>
Inheritance
ResourceBasedSlotSupplier
Implements
Inherited Members

Remarks

WARNING: Resource based tuning is currently experimental.

Constructors

ResourceBasedSlotSupplier(ResourceBasedSlotSupplierOptions, ResourceBasedTunerOptions)

A slot supplier that will dynamically adjust the number of slots based on resource usage.

public ResourceBasedSlotSupplier(ResourceBasedSlotSupplierOptions Options, ResourceBasedTunerOptions TunerOptions)

Parameters

Options ResourceBasedSlotSupplierOptions

Options specific to the slot type this supplier is used for.

TunerOptions ResourceBasedTunerOptions

Options for the tuner that will be used to adjust the number of slots. All resource-based slot suppliers must use the same tuner options.

Remarks

WARNING: Resource based tuning is currently experimental.

Properties

Options

Options specific to the slot type this supplier is used for.

public ResourceBasedSlotSupplierOptions Options { get; init; }

Property Value

ResourceBasedSlotSupplierOptions

TunerOptions

Options for the tuner that will be used to adjust the number of slots. All resource-based slot suppliers must use the same tuner options.

public ResourceBasedTunerOptions TunerOptions { get; init; }

Property Value

ResourceBasedTunerOptions