Share via


ClusterUpgradePolicy Constructor

Definition

Initializes a new instance of ClusterUpgradePolicy.

public ClusterUpgradePolicy (TimeSpan upgradeReplicaSetCheckTimeout, TimeSpan healthCheckWaitDuration, TimeSpan healthCheckStableDuration, TimeSpan healthCheckRetryTimeout, TimeSpan upgradeTimeout, TimeSpan upgradeDomainTimeout, Azure.ResourceManager.ServiceFabric.Models.ClusterHealthPolicy healthPolicy);
new Azure.ResourceManager.ServiceFabric.Models.ClusterUpgradePolicy : TimeSpan * TimeSpan * TimeSpan * TimeSpan * TimeSpan * TimeSpan * Azure.ResourceManager.ServiceFabric.Models.ClusterHealthPolicy -> Azure.ResourceManager.ServiceFabric.Models.ClusterUpgradePolicy
Public Sub New (upgradeReplicaSetCheckTimeout As TimeSpan, healthCheckWaitDuration As TimeSpan, healthCheckStableDuration As TimeSpan, healthCheckRetryTimeout As TimeSpan, upgradeTimeout As TimeSpan, upgradeDomainTimeout As TimeSpan, healthPolicy As ClusterHealthPolicy)

Parameters

upgradeReplicaSetCheckTimeout
TimeSpan

The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.

healthCheckWaitDuration
TimeSpan

The length of time to wait after completing an upgrade domain before performing health checks. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format.

healthCheckStableDuration
TimeSpan

The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format.

healthCheckRetryTimeout
TimeSpan

The amount of time to retry health evaluation when the application or cluster is unhealthy before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.

upgradeTimeout
TimeSpan

The amount of time the overall upgrade has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.

upgradeDomainTimeout
TimeSpan

The amount of time each upgrade domain has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.

healthPolicy
ClusterHealthPolicy

The cluster health policy used when upgrading the cluster.

Exceptions

healthPolicy is null.

Applies to