你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
FabricClient.ClusterManagementClient.UpgradeConfigurationAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
UpgradeConfigurationAsync(ConfigurationUpgradeDescription)
使用群集配置文件启动升级。
public System.Threading.Tasks.Task UpgradeConfigurationAsync (System.Fabric.Description.ConfigurationUpgradeDescription description);
member this.UpgradeConfigurationAsync : System.Fabric.Description.ConfigurationUpgradeDescription -> System.Threading.Tasks.Task
Public Function UpgradeConfigurationAsync (description As ConfigurationUpgradeDescription) As Task
参数
- description
- ConfigurationUpgradeDescription
包含:ClusterConfig、HealthCheckRetryTimeout、HealthCheckWaitDuration、HealthCheckStableDuration、UpgradeDomainTimeout、UpgradeTimeout、MaxPercentUnhealthyApplications、MaxPercentUnhealthyNodes、MaxPercentDeltaUnhealthyNodes、MaxPercentUpgradeDomainDeltaUnhealthyNodes
返回
任务
适用于
UpgradeConfigurationAsync(ConfigurationUpgradeDescription, CancellationToken)
使用群集配置文件启动升级。
public System.Threading.Tasks.Task UpgradeConfigurationAsync (System.Fabric.Description.ConfigurationUpgradeDescription description, System.Threading.CancellationToken cancellationToken);
member this.UpgradeConfigurationAsync : System.Fabric.Description.ConfigurationUpgradeDescription * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function UpgradeConfigurationAsync (description As ConfigurationUpgradeDescription, cancellationToken As CancellationToken) As Task
参数
- description
- ConfigurationUpgradeDescription
包含:ClusterConfigPath、HealthCheckRetryTimeout、HealthCheckWaitDuration、HealthCheckStableDuration、UpgradeDomainTimeout、UpgradeTimeout、MaxPercentUnhealthyApplications、MaxPercentUnhealthyNodes、MaxPercentDeltaUnhealthyNodes、MaxPercentUpgradeDomainDeltaUnhealthyNodes
- cancellationToken
- CancellationToken
操作正在观察的取消标记。 它可用于发送应取消操作的通知。 请注意,取消是建议性的,即使取消了操作,该操作仍可能已完成。
返回
任务
适用于
UpgradeConfigurationAsync(ConfigurationUpgradeDescription, TimeSpan)
使用群集配置文件启动升级。
public System.Threading.Tasks.Task UpgradeConfigurationAsync (System.Fabric.Description.ConfigurationUpgradeDescription description, TimeSpan timeout);
member this.UpgradeConfigurationAsync : System.Fabric.Description.ConfigurationUpgradeDescription * TimeSpan -> System.Threading.Tasks.Task
Public Function UpgradeConfigurationAsync (description As ConfigurationUpgradeDescription, timeout As TimeSpan) As Task
参数
- description
- ConfigurationUpgradeDescription
包含:ClusterConfig、HealthCheckRetryTimeout、HealthCheckWaitDuration、HealthCheckStableDuration、UpgradeDomainTimeout、UpgradeTimeout、MaxPercentUnhealthyApplications、MaxPercentUnhealthyNodes、MaxPercentDeltaUnhealthyNodes、MaxPercentUpgradeDomainDeltaUnhealthyNodes
- timeout
- TimeSpan
定义 Service Fabric 允许在返回 TimeoutException之前继续此操作的最长时间的时间跨度。
返回
任务
适用于
UpgradeConfigurationAsync(ConfigurationUpgradeDescription, TimeSpan, CancellationToken)
使用群集配置文件启动升级。
public System.Threading.Tasks.Task UpgradeConfigurationAsync (System.Fabric.Description.ConfigurationUpgradeDescription description, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.UpgradeConfigurationAsync : System.Fabric.Description.ConfigurationUpgradeDescription * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function UpgradeConfigurationAsync (description As ConfigurationUpgradeDescription, timeout As TimeSpan, cancellationToken As CancellationToken) As Task
参数
- description
- ConfigurationUpgradeDescription
包含:ClusterConfig、HealthCheckRetryTimeout、HealthCheckWaitDuration、HealthCheckStableDuration、UpgradeDomainTimeout、UpgradeTimeout、MaxPercentUnhealthyApplications、MaxPercentUnhealthyNodes、MaxPercentDeltaUnhealthyNodes、MaxPercentUpgradeDomainDeltaUnhealthyNodes
- timeout
- TimeSpan
定义 Service Fabric 允许在返回 TimeoutException之前继续此操作的最长时间的时间跨度。
- cancellationToken
- CancellationToken
操作正在观察的取消标记。 它可用于发送应取消操作的通知。 请注意,取消是建议性的,即使取消了操作,该操作仍可能已完成。
返回
任务