Show / Hide Table of Contents

Class ManagedTasksQueueScalingPolicy

Details for a scaling policy based on the tasks in queue on the pool

Inheritance
object
ScalingPolicy
ManagedTasksQueueScalingPolicy
Implements
IEquatable<ScalingPolicy>
Inherited Members
ScalingPolicy.Name
ScalingPolicy.EnabledPeriods
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: QarnotSDK
Assembly: QarnotSDK.dll
Syntax
public sealed class ManagedTasksQueueScalingPolicy : ScalingPolicy, IEquatable<ScalingPolicy>

Constructors

ManagedTasksQueueScalingPolicy(string, List<TimePeriodSpecification>, ulong, ulong, ulong, ulong, float)

Constructor

Declaration
public ManagedTasksQueueScalingPolicy(string name, List<TimePeriodSpecification> enabledPeriods, ulong minTotalSlots = 0, ulong maxTotalSlots = 0, ulong minIdleSlots = 0, ulong minIdleTimeSeconds = 90, float scalingFactor = 0.2)
Parameters
Type Name Description
string name
List<TimePeriodSpecification> enabledPeriods
ulong minTotalSlots
ulong maxTotalSlots
ulong minIdleSlots
ulong minIdleTimeSeconds
float scalingFactor

Properties

MaxTotalSlots

Maximum number of slots that should be provisioned at any times, whatever the number of tasks in queue

Declaration
public ulong MaxTotalSlots { get; }
Property Value
Type Description
ulong

MinIdleSlots

Minimum number of slots that should be provisioned AND idle at all times

Declaration
public ulong MinIdleSlots { get; }
Property Value
Type Description
ulong

MinIdleTimeSeconds

Number of seconds without executing a task after which a slot is considered idle

Declaration
public ulong MinIdleTimeSeconds { get; }
Property Value
Type Description
ulong

MinTotalSlots

Minimum number of slots that should be provisioned at all times, even if there is nothing in queue

Declaration
public ulong MinTotalSlots { get; }
Property Value
Type Description
ulong

ScalingFactor

Proportion relative to MaxTotalSlots of new slots that will be provisioned at once when scaling up

Declaration
public float ScalingFactor { get; }
Property Value
Type Description
float

Type

Type hint for the remote API

Declaration
public override string Type { get; }
Property Value
Type Description
string
Overrides
ScalingPolicy.Type

Methods

Equals(ScalingPolicy)

Equality implementaiton

Declaration
public override bool Equals(ScalingPolicy other)
Parameters
Type Name Description
ScalingPolicy other
Returns
Type Description
bool
Overrides
ScalingPolicy.Equals(ScalingPolicy)

GetHashCode()

GetHashCode

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()

ToString()

ToString

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Implements

IEquatable<T>
In this article
Back to top Generated by DocFX