Table of Contents

Class PollerBehavior.Autoscaling

Namespace
Temporalio.Worker.Tuning
Assembly
Temporalio.dll

A poller behavior that will automatically scale the number of pollers based on feedback from the server. A slot must be available before beginning polling.

public sealed class PollerBehavior.Autoscaling : PollerBehavior
Inheritance
PollerBehavior.Autoscaling
Inherited Members

Constructors

Autoscaling(int, int, int)

Initializes a new instance of the PollerBehavior.Autoscaling class.

public Autoscaling(int minimum = 1, int maximum = 100, int initial = 5)

Parameters

minimum int

At least this many poll calls will always be attempted (assuming slots are available).

maximum int

At most this many poll calls will ever be open at once. Must be >= minimum.

initial int

This many polls will be attempted initially before scaling kicks in. Must be between minimum and maximum.

Properties

Initial

Gets the number of polls that will be attempted initially before scaling kicks in. Must be between minimum and maximum.

public int Initial { get; }

Property Value

int

Maximum

Gets the maximum number of poll calls that will ever be open at once. Must be >= minimum.

public int Maximum { get; }

Property Value

int

Minimum

Gets the least number of poll calls that will be attempted (assuming slots are available).

public int Minimum { get; }

Property Value

int