Skip to content

GrainCollectionOptions

class

Namespace: Orleans.Configuration

Silo options for idle grain collection.
public class GrainCollectionOptions

Constructors

Properties

  • ActivationTimeout Gets or sets the period after which the runtime cancels the System.Threading.CancellationToken passed to activation code, including Grain.OnActivateAsync and grain lifecycle participants.
  • ClassSpecificCollectionAge Period of inactivity necessary for a grain to be available for collection and deactivation by grain type.
  • CollectionAge Gets or sets the default period of inactivity necessary for a grain to be available for collection and deactivation.
  • CollectionQuantum Regulates the periodic collection of inactive grains.
  • DeactivationTimeout Gets or sets the period after which the runtime cancels the System.Threading.CancellationToken passed to deactivation code, including Grain.OnDeactivateAsync and grain lifecycle participants.
  • EnableActivationSheddingOnMemoryPressure Indicates if memory pressure should trigger grain activation shedding.
  • MemoryUsageLimitPercentage The memory usage percentage (0–100) at which grain collection is triggered. Must be greater than 0 and less than or equal to 100.
  • MemoryUsagePollingPeriod The interval at which memory usage is polled.
  • MemoryUsageTargetPercentage The target memory usage percentage (0–100) to reach after grain collection. Must be greater than 0, less than or equal to 100, and less than GrainCollectionOptions.

Fields