简体   繁体   English

为何突然无法在AWS Elastic Beanstalk中重新部署应用程序的可能原因?

[英]Possible reasons why application suddenly can't be re-deployed in AWS Elastic Beanstalk?

I have had a PHP/RDS application running in AWS Elastic Beanstalk for about a year. 我已经在AWS Elastic Beanstalk中运行了大约一年的PHP / RDS应用程序。 Last code update was more than three months ago. 上次代码更新已超过三个月前。 A couple of days ago, the application became unresponsive, and was restarted automatically. 几天前,该应用程序无响应,并自动重新启动。 This has worked in the past, but this time the application failed to re-launch every time. 过去一直有效,但是这次应用程序每次都无法重新启动。 ELB is stuck in an infinite re-deployment loop. ELB陷入无限的重新部署循环中。 Every time a new EC2 instance is launched, it is immediately considered unhealthy and is terminated. 每次启动新的EC2实例时,都会立即将其视为不正常运行并终止。 I have tried to look at the log files, but there is nothing interesting there (as far as I can see). 我试图查看日志文件,但是那里没有什么有趣的(据我所知)。 It's the log of installing a new EC2 instance, and then immediately switching it off. 它是安装新的EC2实例,然后立即将其关闭的日志。

I hadn't made any changes to my application code or the EBS settings for over three months when this happened out of the blue. 超过三个月的时间,我突然没有对应用程序代码或EBS设置进行任何更改。

I have now tried creating a new EBS environment from scratch for the same application, but the problem remains. 我现在尝试为相同的应用程序从头开始创建新的EBS环境,但是问题仍然存在。 Has anyone had any similar experience? 有没有类似的经历? Have there been changes in the Amazon environment that could cause this behaviour? 亚马逊环境中是否有可能导致这种行为的变化? Any ideas or pointers would be greatly appreciated. 任何想法或指针将不胜感激。

AWS had updated their EBS system. AWS已更新了其EBS系统。 There was a new design and new options in the management console. 管理控制台中有一个新设计和新选项。 When creating a new EBS environment, I was given the choice to use the new "beta" version, which I finally did. 在创建新的EBS环境时,我可以选择使用新的“ beta”版本,最终我选择了。 And from that point onwards everything has worked flawlessly. 从那时起,一切都运转良好。

When this happened I also wrote to AWS support. 发生这种情况时,我还写信给AWS支持。 They replied eventually, not with a solution or an explanation, but with a deduction of a couple of months fee, which I interpret as a way of saying "sorry that something went wrong with your setup when we updated our servers". 他们最终的答复不是提供解决方案或解释,而是扣除了几个月的费用,我将其解释为一种方式,“对不起,当我们更新服务器时,您的设置出现了问题”。 Just guessing on that point, though. 不过,只是猜测这一点。

All in all, the new setup has worked much better than the previous one, which had downtimes every now and then. 总而言之,新的设置比以前的设置要好得多,前者有时会出现停机。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM