# ActivationRebalancerOptions Properties

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/)

## ActivationMigrationCountLimit {#activationmigrationcountlimit-5afb6b32}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/properties/activationmigrationcountlimit-5afb6b32/)

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

```csharp
public int ActivationMigrationCountLimit
```

The maximum allowed number of activations that can be migrated at any given cycle.

## AllowedEntropyDeviation {#allowedentropydeviation-340b5ba0}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/properties/allowedentropydeviation-340b5ba0/)

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

```csharp
public double AllowedEntropyDeviation
```

Represents the allowed entropy deviation between the cluster's current entropy, against the theoretical maximum. Values lower than this are practically considered as "maximum", and the current rebalancing session will stop. This acts as a base rate if [ActivationRebalancerOptions](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/) is set to `true`.

## CycleNumberWeight {#cyclenumberweight-7f43a3d7}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/properties/cyclenumberweight-7f43a3d7/)

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

```csharp
public double CycleNumberWeight
```

Represents the weight that is given to the number of rebalancing cycles that have passed during a rebalancing session.

 Changing this value has a far greater impact on the migration rate than [ActivationRebalancerOptions](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/), and is suitable for controlling the session duration. 

Pick higher values if you want a faster migration rate.

## EntropyQuantum {#entropyquantum-71ce4776}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/properties/entropyquantum-71ce4776/)

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

```csharp
public double EntropyQuantum
```

The minimum change in the entropy of the cluster that is considered an improvement. When a total of n-consecutive stagnant cycles pass, during which the change in entropy is less than the quantum, then the current rebalancing session will stop. The change is a normalized value being relative to the maximum possible entropy.

## MaxStagnantCycles {#maxstagnantcycles-9c9eda91}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/properties/maxstagnantcycles-9c9eda91/)

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

```csharp
public int MaxStagnantCycles
```

The maximum, consecutive number of cycles, yielding no significant improvement to the cluster's entropy.

## RebalancerDueTime {#rebalancerduetime-3ce62eda}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/properties/rebalancerduetime-3ce62eda/)

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

```csharp
public TimeSpan RebalancerDueTime
```

The due time for the rebalancer to start the very first session.

## ScaleAllowedEntropyDeviation {#scaleallowedentropydeviation-2b23c359}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/properties/scaleallowedentropydeviation-2b23c359/)

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

```csharp
public bool ScaleAllowedEntropyDeviation
```

Determines whether [ActivationRebalancerOptions](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/) should be scaled dynamically based on the total number of activations. When set to `true`, the allowed entropy deviation will increase logarithmically after reaching [ActivationRebalancerOptions](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/), and will cap at [ActivationRebalancerOptions](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/).

## ScaledEntropyDeviationActivationThreshold {#scaledentropydeviationactivationthreshold-be508b51}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/properties/scaledentropydeviationactivationthreshold-be508b51/)

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

```csharp
public int ScaledEntropyDeviationActivationThreshold
```

Determines the number of activations that must be active during any rebalancing cycle, in order for [ActivationRebalancerOptions](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/) (if, and only if, its `true`) to begin scaling the [ActivationRebalancerOptions](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/).

## SessionCyclePeriod {#sessioncycleperiod-f6c60ac3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/properties/sessioncycleperiod-f6c60ac3/)

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

```csharp
public TimeSpan SessionCyclePeriod
```

The time between two consecutive rebalancing cycles within a session.

## SiloNumberWeight {#silonumberweight-9df6899c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/properties/silonumberweight-9df6899c/)

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

```csharp
public double SiloNumberWeight
```

Represents the weight that is given to the number of silos in the cluster during a rebalancing session.

 Changing this value has a far lesser impact on the migration rate than [ActivationRebalancerOptions](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrebalanceroptions/), and is suitable for fine-tuning. 

Pick lower values if you want a faster migration rate.
