# LoadShedQueueFlowController.CreateAsPercentOfLoadSheddingLimit(LoadSheddingOptions, IEnvironmentStatisticsProvider, int)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.loadshedqueueflowcontroller/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.loadshedqueueflowcontroller/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/LoadShedQueueFlowController.cs#L29-L31)

```csharp
public static IQueueFlowController CreateAsPercentOfLoadSheddingLimit(LoadSheddingOptions options, IEnvironmentStatisticsProvider environmentStatisticsProvider, int percentOfSiloSheddingLimit = 95)
```

Creates a flow controller triggered when the CPU reaches a percentage of the cluster load shedding limit. This is intended to reduce queue read rate prior to causing the silo to shed load. Note: Triggered only when load shedding is enabled.

### Parameters

- `options` (`LoadSheddingOptions`): The silo statistics options.
- `environmentStatisticsProvider` (`IEnvironmentStatisticsProvider`): The silo environment statistics.
- `percentOfSiloSheddingLimit` (`int`): Percentage of load shed limit which triggers a reduction of queue read rate.

### Returns

The flow controller.
