Azure 容器实例 - 无缘无故地不时重启 [英] Azure Container Instance - restarting once in a while for no apparent reason

查看:26
本文介绍了Azure 容器实例 - 无缘无故地不时重启的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Azure 容器实例 (ACI) 上运行了几个不同的容器化 Web 应用.我最近注意到,其中一些容器会在一个月左右的时间内无缘无故地重新启动一次.由于每次重新启动都在不同的应用程序/容器上,我没有理由怀疑应用程序崩溃了.

I have a few different containerized web apps running on Azure Container Instance (ACI). I recently noticed that some of these containers just restart with no apparent reason once in a month or so. Since the restarts are on different apps/containers each time, I have no reason to suspect that the apps are crashing.

所有这些的重启策略都设置为始终".

The restart policy on all of them are set to "Always".

即使没有应用程序崩溃,容器也会重新启动是正常的还是预期的?也许当 Azure 对主机进行维护时,或者同一主机上的嘈杂邻居导致 Pod 移动到另一台主机?

Is it normal or expected for the containers to restart even when there is no app crash? Perhaps when Azure does maintenance on the host machines or maybe a noisy neighbor on the same host causing a pod movement to another host?

(我正在添加一个日志分析工作区,以便在重新启动之前查看日志.由于重新启动非常少见,我将在很长一段时间内看不到任何日志.)

(I am in the process of adding a log analytics workspace so that I can view the logs before the restart. Since the restarts are so infrequent, I wouldn't have any logs to look at for quite some time.)

推荐答案

同理

我已联系 MS 支持并得到答复,每个设计 ACI 维护可以重新启动主机,因此 不能期望 ACI 连续数周运行

I've contacted MS support and got the response that per design ACI maintenance can restart the hosts so it can't be expected to run ACI for weeks uninterrupted

推荐

  • 使您的应用具有弹性(因此您不必担心重启)
  • 使用 AKS 全面控制生命周期
  • 使用虚拟机作为您的应用的主机,并采用适当的策略(无更新/重启...)

对我来说,这是一个交易破坏者,因为我无法在任何地方找到此信息.我已经用 VM 结束了.

For me this was a deal-breaker since I couldn't find this info anywhere. I've ended up with VM.

这篇关于Azure 容器实例 - 无缘无故地不时重启的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆