服务结构需要花时间来部署RollingForwardPending花时间

时间:2018-12-26 01:50:30

标签: azure-service-fabric

Service Fabric在部署到升级域的每个阶段之后都需要花费一些时间,因此在进入下一个升级域之前,它在RollingForwardPending中花费了3分钟。有办法减少这种情况吗?

2018-12-25T02:30:38.5014666Z Domain Wise Upgrade Status:  UpgradeDomainName=0; State=InProgress;  UpgradeDomainName=1; State=Pending;  UpgradeDomainName=2; State=Pending;
2018-12-25T02:30:43.5070541Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:30:48.5186098Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:30:53.5258935Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:30:58.5340237Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:31:03.5350754Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:31:08.5462591Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:31:13.5592646Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:31:18.5656780Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:31:23.7048413Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:31:28.7162008Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:31:33.7272212Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:31:38.7354639Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:31:43.7385037Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:31:48.7558681Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:31:53.7610563Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:31:58.7825059Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:32:03.7911006Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:32:08.8379252Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:32:13.8531978Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:32:18.8619929Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:32:23.8601467Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:32:28.8755147Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:32:33.8749331Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:32:38.8863708Z Current Upgrade State: RollingForwardPending
2018-12-25T02:32:38.8876575Z Domain Wise Upgrade Status:  UpgradeDomainName=0; State=Completed;  UpgradeDomainName=1; State=Pending;  UpgradeDomainName=2; State=Pending;
2018-12-25T02:32:43.8911107Z Current Upgrade State: RollingForwardPending
2018-12-25T02:32:48.8990487Z Current Upgrade State: RollingForwardPending
2018-12-25T02:32:53.8986271Z Current Upgrade State: RollingForwardPending
2018-12-25T02:32:58.9033581Z Current Upgrade State: RollingForwardPending
2018-12-25T02:33:03.9116147Z Current Upgrade State: RollingForwardPending
2018-12-25T02:33:08.9232562Z Current Upgrade State: RollingForwardPending
2018-12-25T02:33:13.9309302Z Current Upgrade State: RollingForwardPending
2018-12-25T02:33:18.9412184Z Current Upgrade State: RollingForwardPending
2018-12-25T02:33:23.9446965Z Current Upgrade State: RollingForwardPending
2018-12-25T02:33:28.9565137Z Current Upgrade State: RollingForwardPending
2018-12-25T02:33:33.9679990Z Current Upgrade State: RollingForwardPending
2018-12-25T02:33:38.9793697Z Current Upgrade State: RollingForwardPending
2018-12-25T02:33:43.9839637Z Current Upgrade State: RollingForwardPending
2018-12-25T02:33:48.9898980Z Current Upgrade State: RollingForwardPending
2018-12-25T02:33:53.9988117Z Current Upgrade State: RollingForwardPending
2018-12-25T02:33:59.0034323Z Current Upgrade State: RollingForwardPending
2018-12-25T02:34:04.0111436Z Current Upgrade State: RollingForwardPending
2018-12-25T02:34:09.0177974Z Current Upgrade State: RollingForwardPending
2018-12-25T02:34:14.0189917Z Current Upgrade State: RollingForwardPending
2018-12-25T02:34:19.0206275Z Current Upgrade State: RollingForwardPending
2018-12-25T02:34:24.0221773Z Current Upgrade State: RollingForwardPending
2018-12-25T02:34:29.0297897Z Current Upgrade State: RollingForwardPending
2018-12-25T02:34:34.0417619Z Current Upgrade State: RollingForwardPending
2018-12-25T02:34:39.0528795Z Current Upgrade State: RollingForwardInProgress
2018-12-25T02:34:39.0541447Z Domain Wise Upgrade Status:  UpgradeDomainName=1; State=InProgress;  UpgradeDomainName=0; State=Completed;  UpgradeDomainName=2; State=Pending;

2 个答案:

答案 0 :(得分:2)

使用适当的升级模式:https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-upgrade#upgrade-modes

对于您来说,使用不受监视的自动模式可能是合适的: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-upgrade-parameters

  

指示升级模式是不受监控的自动。后   Service Fabric升级升级域,Service Fabric升级   下一个升级域,与应用程序运行状况无关。这个   不建议将模式用于生产,并且仅在   开发应用程序。

还要检查以下参数:HealthCheckStableDurationSec和HealthCheckWaitDurationSec

答案 1 :(得分:0)

根据Service Fabric Troubleshooting guides的此文档,Service Fabric将集群范围的设置更改(例如安全性更改,放置设置,自定义结构设置等)作为集群升级进行处理,因此将触发两阶段的完整UD(升级域),一次将这些更改应用到群集一个升级域。应用更改后,它将根据配置的运行状况和稳定性设置等待一段时间,以确保所做的更改不会导致群集不稳定。

另外,请参考此文档以获取Troubleshoot application upgrades

有一个有关此问题的MSDN帖子。看一下here