当前位置: 动力学知识库 > 问答 > 编程问答 >

amazon web services - Deployment of Apps at AWS opsworks. Why deployment randmomly fails?

问题描述:

I have an AWS Opsworks Stack, and it has a Rails layer with many instances.

When I deploy an app in general it works. But sometimes the app returns a server error in some instances (500 error). It is fixed by redeploying to the problematic instance.

Is there a way to prevent this issues? Why the same app works in some instances and not others? And why redeploying fixes the issue?

Thanks in advance

SOLUTION

  • Reducing nginx worker connections
  • Or get an instance type with more memory.
  • Rarely github checkout fails. If this happens you just need to restart the instance and it usually solves the issue.

网友答案:

Generally the deployment log will tell you what went wrong.

This does happen sometimes, and it is usually due to the SCM. In our case, randomly we'll get an error about github, and nothing would be checkout.

分享给朋友:
您可能感兴趣的文章:
随机阅读: