我正在使用当前的Elastic Beanstalk来部署和运行可执行jar(Spring Boot应用程序)。我正在使用t2.small ec2实例(2Go),这足以满足我的需要和应用程序的大小。
我现在遇到了几个问题:
部署新版本的应用程序太慢了。我必须等待超过10分钟才能改变效果。
60%的时间,部署不起作用。回滚由EB完成,需要5或10分钟。
没有任何内容报告给日志文件。所以我不知道为什么部署不起作用。
下面我得到的错误示例。
2018-05-04 16:45:25 UTC+0200 INFO requestEnvironmentInfo is starting.
2018-05-04 16:45:09 UTC+0200 INFO Pulled logs for environment instances.
2018-05-04 16:45:09 UTC+0200 INFO Command execution completed on all instances. Summary: [Successful: 0, TimedOut: 1].
2018-05-04 16:45:09 UTC+0200 WARN The following instances have not responded in the allowed command timeout time (they might still finish eventually on their own): [i-04cb070a376fbf077].
2018-05-04 16:31:06 UTC+0200 INFO requestEnvironmentInfo is starting.
2018-05-04 16:12:10 UTC+0200 WARN Environment health has transitioned from Info to Degraded. Incorrect application version found on all instances. Expected version "deepan-core-1.0.0-SNAPSHOT" (deployment 10). Application update is aborting (running for 15 minutes).
2018-05-04 16:11:33 UTC+0200 ERROR During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version.
2018-05-04 16:11:33 UTC+0200 ERROR Failed to deploy application.
2018-05-04 16:11:33 UTC+0200 ERROR Unsuccessful command execution on instance id(s) 'i-04cb070a376fbf077'. Aborting the operation.
感谢您的帮助!