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
intAt least this many poll calls will always be attempted (assuming slots are available).
maximum
intAt most this many poll calls will ever be open at once. Must be >=
minimum
.initial
intThis many polls will be attempted initially before scaling kicks in. Must be between
minimum
andmaximum
.
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
Maximum
Gets the maximum number of poll calls that will ever be open at once. Must be >= minimum
.
public int Maximum { get; }
Property Value
Minimum
Gets the least number of poll calls that will be attempted (assuming slots are available).
public int Minimum { get; }