StatelessServiceDescription.InstanceRestartWaitDuration Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the duration between when an instance goes down and when a new replacement instance is created.
public TimeSpan? InstanceRestartWaitDuration { get; set; }
member this.InstanceRestartWaitDuration : Nullable<TimeSpan> with get, set
Public Property InstanceRestartWaitDuration As Nullable(Of TimeSpan)
Property Value
The duration as a TimeSpan object.
Remarks
When a stateless instance goes down, this timer starts. When it expires Service Fabric will create a new instance on any node in the cluster. This configuration is to reduce unnecessary creation of a new instance in situations where the instance going down is likely to recover in a short time. For example, during an upgrade.
The default value is TimeSpan.Zero, which indicates that when stateless instance goes down, Service Fabric will immediately start building its replacement.
Applies to
Azure SDK for .NET