如何停止Azure的服务织物组成,其失败,从不超时应用程序升级?
升级低于该细节没有超时设置。我知道与应用的问题(没有指定注册用户名/密码),但我无法取消当前升级。
UPGRADE DETAILS
Name fabric:/planet
Type Name Compose_5
Target Application Type Version v7
Upgrade Domains
Name State
UD0 InProgress
UD1 Pending
UD2 Pending
Upgrade State RollingForwardInProgress
Next Upgrade Domain UD1
Rolling Upgrade Mode UnmonitoredAuto
Upgrade Description
Name fabric:/planet
Target Application Type Version v7
Upgrade Kind Rolling
Rolling Upgrade Mode UnmonitoredAuto
Upgrade Replica Set Check Timeout In Seconds 4294967295
Force Restart false
Monitoring Policy
Failure Action Manual
Health Check Wait Duration 0.00:00:00.0
Health Check Stable Duration 0.00:02:00.0
Health Check Retry Timeout 0.00:10:00.0
Upgrade Timeout Infinity
Upgrade Domain Timeout Infinity
Upgrade Duration 0.00:21:01.241.0700000000652
Upgrade Domain Duration 0.00:21:01.241.0700000000652
Current Upgrade Domain Progress
Domain Name UD0
Node Upgrade Progress List
Node Name Upgrade Phase Pending Safety Checks
CONTAINERHOST1 Upgrading (empty)
Start Timestamp Utc Fri, 03 Aug 2018 02:20:34 GMT
Failure Timestamp Utc N/A
Failure Reason None
因为你设置的失效模式为手动,群集将定在等待你的行动。
你可以尝试启动ServiceFabricApplicationRollback还是继续ServiceFabricApplicationUpgrade继续。
推荐的方法来升级撰写使用参数qazxsw POI
-Monitored -FailureAction Rollback
除非有人预计要做到这一点人工干预,服务织物应在升级参数正确配置自行处理。
修复这些设置可能会解决你的问题:
Start-ServiceFabricComposeDeploymentUpgrade -DeploymentName mydeployment -Compose docker-compose.yml -Monitored -FailureAction Rollback
-Monitored -FailureAction Rollback
设置为UnmonitoredAuto,它自动升级和故障检查,但没有做健康检查。考虑使用监控
Rolling Upgrade Mode
和Upgrade Domain Timeout
被设置为无穷远,他们应该有一个超时设置,否则会永远等待。
Upgrade Timeout
设置为手动,升级被暂停,以便您可以采取任何进一步的行动之前,研究部署。考虑使用回滚来代替。
您可能需要配置其他参数也是如此。要了解这些参数,采取Failure Action
和here看看。对于撰写部署,检查here:
您可以更改升级域超时,并通过在服务织物Powershell的任务调用this命令运行升级的升级超时。
Update-ServiceFabricApplicationUpgrade