Share via


StatefulServiceDescription.ReplicaRestartWaitDuration Property

 

Applies To: Azure, Windows 10, Windows 8, Windows 8.1, Windows Server 2012 R2

Gets or sets the duration, in seconds, between when a replica goes down and when a new replica is created.

Namespace:   System.Fabric.Description
Assembly:  System.Fabric (in System.Fabric.dll)

Syntax

public Nullable<TimeSpan> ReplicaRestartWaitDuration { get; set; }

Property Value

Type: System.Nullable<TimeSpan>

The duration as a TimeSpan object.

Remarks

When a persistent replica goes down, this timer starts.  When it expires Service Fabric will create a new replica on any node in the cluster. This configuration is to reduce unnecessary state copies. When a persisted replica goes down, the system waits for it to come back up for ReplicaRestartWaitDuration seconds before creating a new replica which will require a copy. Note that a replica that is down is not considered lost, yet.

The default value is 300 (seconds).

See Also

StatefulServiceDescription Class
System.Fabric.Description Namespace

Return to top