我们的服务结构有多个暂存环境。为了节省一些成本,开发环境 (VMSS) 每晚都会自动释放。我们的问题是所有已部署的应用程序都从集群中删除。
有什么建议吗?我们是否缺少任何配置?
谢谢
最佳答案
Service Fabric stores state on local, ephemeral disks, meaning that if the virtual machine is moved to a different host, the data does not move with it. In normal operation, that is not a problem as the new node is brought up to date by other nodes. However, if you stop all nodes and restart them later, there is a significant possibility that most of the nodes start on new hosts and make the system unable to recover.
此外,如果您取消分配虚拟机,则临时磁盘为 released 。
因此,始终为(铜级可靠性层)开发集群保留至少 3 个运行节点。
或者删除并重新创建集群,并结合自动化应用程序部署。
您也可以在夜间缩小节点 SKU。
更多信息here .
关于azure-service-fabric - 重新启动 vmss 后 Service Fabric 应用程序被删除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43752782/