# LoadSheddingOptions Properties

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.loadsheddingoptions/)

## CpuThreshold {#cputhreshold-1555675c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.loadsheddingoptions/properties/cputhreshold-1555675c/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Configuration/Options/LoadSheddingOptions.cs)

```csharp
public int CpuThreshold
```

Gets or sets the CPU utilization, expressed as a value between `0` and `100`, at which load shedding begins. Note that this value is in %, so valid values range from 1 to 100, and a reasonable value is typically between 80 and 95. This value is ignored if load shedding is disabled, which is the default.

### Value

Load shedding begins at a CPU utilization of 95% by default, if load shedding is enabled.

## LoadSheddingEnabled {#loadsheddingenabled-91bff441}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.loadsheddingoptions/properties/loadsheddingenabled-91bff441/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Configuration/Options/LoadSheddingOptions.cs)

```csharp
public bool LoadSheddingEnabled
```

Gets or sets a value indicating whether load shedding in the client gateway and stream providers is enabled. The default value is `false`, meaning that load shedding is disabled.

### Value

Load shedding is disabled by default.

## LoadSheddingLimit {#loadsheddinglimit-cefe4f76}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.loadsheddingoptions/properties/loadsheddinglimit-cefe4f76/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Configuration/Options/LoadSheddingOptions.cs)

```csharp
[System.Obsolete(Use CpuThreshold instead., True)]
public int LoadSheddingLimit
```

Gets or sets the CPU utilization, expressed as a value between `0` and `100`, at which load shedding begins. Note that this value is in %, so valid values range from 1 to 100, and a reasonable value is typically between 80 and 95. This value is ignored if load shedding is disabled, which is the default.

### Value

Load shedding begins at a CPU utilization of 95% by default, if load shedding is enabled.

## MemoryThreshold {#memorythreshold-f48f71a9}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.loadsheddingoptions/properties/memorythreshold-f48f71a9/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Configuration/Options/LoadSheddingOptions.cs)

```csharp
public int MemoryThreshold
```

Gets or sets the memory utilization, expressed as a value between `0` and `100`, at which load shedding begins. Note that this value is in %, so valid values range from 1 to 100, and a reasonable value is typically between 80 and 95. This value is ignored if load shedding is disabled, which is the default.

### Value

Load shedding begins at a memory utilization of 90% by default, if load shedding is enabled.
