Ben*_*rel 17 amazon-web-services elastic-beanstalk
作为我的应用程序部署的一部分commands
,我的.ebextensions
配置文件中有一些。第一次运行命令(克隆大型存储库)可能需要 20 分钟或更长时间才能完成所有命令。
不幸的是,这会在部署期间触发超时:
INFO Deploying new version to instance(s).
WARN The following instances have not responded in the allowed command
timeout time (they might still finish eventually on their own).
INFO Command execution completed. Summary: [Successful: 0, TimedOut: 1].
Run Code Online (Sandbox Code Playgroud)
是否可以增加此超时?我在我的环境设置中找不到该选项。
小智 15
您可以将AWS Elastic Beanstalk 配置文件(.ebextensions) 添加到您的 Web 应用程序的源代码,以配置您的环境并自定义其中包含的 AWS 资源。
option_settings
配置文件的部分定义了配置选项的值。配置选项让您可以配置您的 Elastic Beanstalk 环境、其中的 AWS 资源以及运行您的应用程序的软件。
将配置文件添加到名为 .ebextensions 的文件夹中的源代码中,并将其部署到应用程序源包中。
例子:
option_settings:
- namespace: aws:elasticbeanstalk:command
option_name: Timeout
value: 1000
Run Code Online (Sandbox Code Playgroud)
*"value" 表示超时前的时间长度,以秒为单位。
参考资料:官方 AWS Elastic Beanstalk环境配置和适用于所有环境的一般选项、此stackoverflow 答案和此AWS 开发人员论坛帖子。
归档时间: |
|
查看次数: |
15640 次 |
最近记录: |