ApplicationUpgradePolicy Class
Describes the policy for a monitored application upgrade.
- Inheritance
-
ApplicationUpgradePolicy
Constructor
ApplicationUpgradePolicy(*, application_health_policy: Optional[azure.mgmt.servicefabricmanagedclusters.models._models_py3.ApplicationHealthPolicy] = None, force_restart: Optional[bool] = False, rolling_upgrade_monitoring_policy: Optional[azure.mgmt.servicefabricmanagedclusters.models._models_py3.RollingUpgradeMonitoringPolicy] = None, instance_close_delay_duration: Optional[int] = None, upgrade_mode: Optional[Union[str, azure.mgmt.servicefabricmanagedclusters.models._service_fabric_managed_clusters_management_client_enums.RollingUpgradeMode]] = None, upgrade_replica_set_check_timeout: Optional[int] = None, recreate_application: Optional[bool] = None, **kwargs)
Parameters
- application_health_policy
- <xref:service_fabric_managed_clusters_management_client.models.ApplicationHealthPolicy>
Defines a health policy used to evaluate the health of an application or one of its children entities.
- force_restart
- bool
If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data).
- rolling_upgrade_monitoring_policy
- <xref:service_fabric_managed_clusters_management_client.models.RollingUpgradeMonitoringPolicy>
The policy used for monitoring the application upgrade.
- instance_close_delay_duration
- <xref:long>
Duration in seconds, to wait before a stateless instance is closed, to allow the active requests to drain gracefully. This would be effective when the instance is closing during the application/cluster upgrade, only for those instances which have a non-zero delay duration configured in the service description.
- upgrade_mode
- str or <xref:service_fabric_managed_clusters_management_client.models.RollingUpgradeMode>
The mode used to monitor health during a rolling upgrade. The values are Monitored, and UnmonitoredAuto. Possible values include: "Monitored", "UnmonitoredAuto".
- upgrade_replica_set_check_timeout
- <xref:long>
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. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer).
- recreate_application
- bool
Determines whether the application should be recreated on update. If value=true, the rest of the upgrade policy parameters are not allowed.
Feedback
Submit and view feedback for