如何从头CloudWatch的报警EC2实例 [英] How to restart EC2 instance from CloudWatch alarm

查看:465
本文介绍了如何从头CloudWatch的报警EC2实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时候我申请死亡W / O任何理由,我可以检测到使用的CloudWatch和CPU占用率指标下降。在这一刻,我要重新启动Java应用程序或整个EC2实例。任何建议,我怎么能achive呢?

Sometimes my application dies w/o any reason and I can detect that using CloudWatch and CPU usage metric going down. At this moment I want to restart the java application or the whole EC2 instance. Any suggestions how can I achive that?

推荐答案

您可以让CloudWatch的终止EC2实例,并让自动缩放弹出另一个新鲜的情况下配置了您的应用程序。

You can let CloudWatch terminate your EC2 instance and let AutoScaling bring up another "fresh" instance with your application configured.

这篇关于如何从头CloudWatch的报警EC2实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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