Skip to content

GrainDirectoryOptions.RangeLeaseDuration

RangeLeaseDuration

getset
View source
public TimeSpan RangeLeaseDuration
Gets or sets the range lease duration applied after an ungraceful silo failure. This duration applies in two scenarios:
  • When a specific silo crashes ungracefully, grain lease holds prevent individual re-registration of its grains for this duration.
  • When a directory partition can not acquire a snapshot from a previous owner, range lease holds prevent new registrations in that whole range for this duration.
For a declared-dead silo, the lease begins at its estimated failure time by subtracting the configured failure-detection window from the declaration time. Set this value to System.TimeSpan.Zero to disable range leases.