简体   繁体   English

在AWS Elastic Beanstalk上更新应用程序

[英]updating application on AWS elastic beanstalk

I have few questions regarding AWS elastic beanstalk. 关于AWS Elastic beantalk,我有几个问题。 My upcoming mobile application has backend written in php and it uses mysql database. 我即将发布的移动应用程序已经用php编写了后端,并且使用mysql数据库。

I learnt that FTP is not possible with AWS elastic beanstalk. 我了解到AWS弹性beantalk无法使用FTP。 If I have to make changes to the any application, I have upload the entire applications once again. 如果必须对任何应用程序进行更改,则可以再次上传整个应用程序。

My questions is: while uploading the application fresh, will there be downtime? 我的问题是:在重新上传应用程序时,会不会有停机时间? will it destroy the old database and create fresh one? 它会破坏旧数据库并创建新数据库吗?

regards 问候

You can upload a new version of the application using the console or you can use the CLI tools or the API. 您可以使用控制台上载应用程序的新版本,也可以使用CLI工具或API。

You can avoid downtime of your application during deployments by increasing the minimum number of instances > 1 and then you can do a rolling deployment (with batch size < number of instances). 您可以通过增加最小实例数> 1来避免部署期间应用程序的停机,然后可以进行滚动部署(批大小<实例数)。 You can choose either a time based or health based rolling deployment. 您可以选择基于时间的部署或基于运行状况的滚动部署。 This will ensure that the code is deployed only to a subset of the instances at any given point of time. 这将确保在任何给定时间点仅将代码部署到实例的子集。

You can read about rolling deployments here: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.rollingupdates.html 您可以在此处阅读有关滚动部署的信息: http : //docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.rollingupdates.html

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

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