Edit

Share via


LoadShedQueueFlowController.CreateAsPercentageOfCPU Method

Definition

Overloads

CreateAsPercentageOfCPU(Int32, LoadSheddingOptions)

Creates a flow controller triggered when the CPU reaches the specified limit. Note: Triggered only when load shedding is enabled.

CreateAsPercentageOfCPU(Int32, Func<NodeConfiguration>)

Creates a flow controller triggered when the CPU reaches the specified limit. Note: Triggered only when load shedding is enabled.

CreateAsPercentageOfCPU(Int32, LoadSheddingOptions, IEnvironmentStatisticsProvider)

Creates a flow controller triggered when the CPU reaches the specified limit. Note: Triggered only when load shedding is enabled.

CreateAsPercentageOfCPU(Int32, LoadSheddingOptions, IHostEnvironmentStatistics)

Creates a flow controller triggered when the CPU reaches the specified limit. Note: Triggered only when load shedding is enabled.

CreateAsPercentageOfCPU(Int32, LoadSheddingOptions)

Source:
LoadShedQueueFlowController.cs

Creates a flow controller triggered when the CPU reaches the specified limit. Note: Triggered only when load shedding is enabled.

public static Orleans.Streams.IQueueFlowController CreateAsPercentageOfCPU (int loadSheddingLimit, Orleans.Configuration.LoadSheddingOptions options);
static member CreateAsPercentageOfCPU : int * Orleans.Configuration.LoadSheddingOptions -> Orleans.Streams.IQueueFlowController
Public Shared Function CreateAsPercentageOfCPU (loadSheddingLimit As Integer, options As LoadSheddingOptions) As IQueueFlowController

Parameters

loadSheddingLimit
Int32

Percentage of CPU which triggers queue read rate reduction

options
LoadSheddingOptions

The silo statistics options.

Returns

Applies to

CreateAsPercentageOfCPU(Int32, Func<NodeConfiguration>)

Creates a flow controller triggered when the CPU reaches the specified limit. Note: Triggered only when load shedding is enabled.

public static Orleans.Streams.IQueueFlowController CreateAsPercentageOfCPU (int loadSheddingLimit, Func<Orleans.Runtime.Configuration.NodeConfiguration> getNodeConfig);
static member CreateAsPercentageOfCPU : int * Func<Orleans.Runtime.Configuration.NodeConfiguration> -> Orleans.Streams.IQueueFlowController
Public Shared Function CreateAsPercentageOfCPU (loadSheddingLimit As Integer, getNodeConfig As Func(Of NodeConfiguration)) As IQueueFlowController

Parameters

loadSheddingLimit
Int32

Percentage of CPU which triggers queue read rate reduction

getNodeConfig
Func<NodeConfiguration>

The method used to get the current node configuration.

Returns

Applies to

CreateAsPercentageOfCPU(Int32, LoadSheddingOptions, IEnvironmentStatisticsProvider)

Creates a flow controller triggered when the CPU reaches the specified limit. Note: Triggered only when load shedding is enabled.

public static Orleans.Streams.IQueueFlowController CreateAsPercentageOfCPU (int loadSheddingLimit, Orleans.Configuration.LoadSheddingOptions options, Orleans.Statistics.IEnvironmentStatisticsProvider environmentStatisticsProvider);
static member CreateAsPercentageOfCPU : int * Orleans.Configuration.LoadSheddingOptions * Orleans.Statistics.IEnvironmentStatisticsProvider -> Orleans.Streams.IQueueFlowController
Public Shared Function CreateAsPercentageOfCPU (loadSheddingLimit As Integer, options As LoadSheddingOptions, environmentStatisticsProvider As IEnvironmentStatisticsProvider) As IQueueFlowController

Parameters

loadSheddingLimit
Int32

Percentage of CPU which triggers queue read rate reduction

options
LoadSheddingOptions

The silo statistics options.

environmentStatisticsProvider
IEnvironmentStatisticsProvider

The silo environment statistics.

Returns

The flow controller.

Applies to

CreateAsPercentageOfCPU(Int32, LoadSheddingOptions, IHostEnvironmentStatistics)

Creates a flow controller triggered when the CPU reaches the specified limit. Note: Triggered only when load shedding is enabled.

public static Orleans.Streams.IQueueFlowController CreateAsPercentageOfCPU (int loadSheddingLimit, Orleans.Configuration.LoadSheddingOptions options, Orleans.Statistics.IHostEnvironmentStatistics hostEnvironmentStatistics);
static member CreateAsPercentageOfCPU : int * Orleans.Configuration.LoadSheddingOptions * Orleans.Statistics.IHostEnvironmentStatistics -> Orleans.Streams.IQueueFlowController
Public Shared Function CreateAsPercentageOfCPU (loadSheddingLimit As Integer, options As LoadSheddingOptions, hostEnvironmentStatistics As IHostEnvironmentStatistics) As IQueueFlowController

Parameters

loadSheddingLimit
Int32

Percentage of CPU which triggers queue read rate reduction

options
LoadSheddingOptions

The silo statistics options.

hostEnvironmentStatistics
IHostEnvironmentStatistics

The host environment statistics.

Returns

The flow controller.

Applies to