GrainCollectionOptions
class
Namespace: Orleans.Configuration
Silo options for idle grain collection.
public class GrainCollectionOptionsConstructors
Properties
ActivationTimeoutTimeout value before giving up when trying to activate a grain.ClassSpecificCollectionAgePeriod of inactivity necessary for a grain to be available for collection and deactivation by grain type.CollectionAgeGets or sets the default period of inactivity necessary for a grain to be available for collection and deactivation.CollectionQuantumRegulates the periodic collection of inactive grains.DeactivationTimeoutTimeout value before giving up when trying to deactivate a grain activation (waiting for all timers to stop and calling Grain.OnDeactivate())EnableActivationSheddingOnMemoryPressureIndicates if memory pressure should trigger grain activation shedding.MemoryUsageLimitPercentageThe memory usage percentage (0–100) at which grain collection is triggered. Must be greater than 0 and less than or equal to 100.MemoryUsagePollingPeriodThe interval at which memory usage is polled.MemoryUsageTargetPercentageThe target memory usage percentage (0–100) to reach after grain collection. Must be greater than 0, less than or equal to 100, and less thanGrainCollectionOptions.
Fields
DEFAULT_ACTIVATION_TIMEOUTThe default value forGrainCollectionOptions.DEFAULT_COLLECTION_QUANTUMThe default value forGrainCollectionOptions.DEFAULT_DEACTIVATION_TIMEOUTThe default value forGrainCollectionOptions.
