Working with Deployment Configurations in CodeDeploy
Posted cloudrivers
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Working with Deployment Configurations in CodeDeploy相关的知识,希望对你有一定的参考价值。
Deployment Configurations on an AWS Lambda Compute Platform
When you deploy to an AWS Lambda compute platform, the deployment configuration specifies the way traffic is shifted to the new Lambda function versions in your application.
There are three ways traffic can shift during a deployment:
-
Canary: Traffic is shifted in two increments. You can choose from predefined canary options that specify the percentage of traffic shifted to your updated Lambda function version in the first increment and the interval, in minutes, before the remaining traffic is shifted in the second increment.
-
Linear: Traffic is shifted in equal increments with an equal number of minutes between each increment. You can choose from predefined linear options that specify the percentage of traffic shifted in each increment and the number of minutes between each increment.
-
All-at-once: All traffic is shifted from the original Lambda function to the updated Lambda function version all at once.
You can also create your own custom canary or linear deployment configuration.
Predefined Deployment Configurations for an AWS Lambda Compute Platform
The following table lists the predefined configurations available for AWS Lambda deployments.
Deployment Configuration | Description |
---|---|
CodeDeployDefault.LambdaCanary10Percent5Minutes |
Shifts 10 percent of traffic in the first increment. The remaining 90 percent is deployed five minutes later. |
CodeDeployDefault.LambdaCanary10Percent10Minutes |
Shifts 10 percent of traffic in the first increment. The remaining 90 percent is deployed 10 minutes later. |
CodeDeployDefault.LambdaCanary10Percent15Minutes |
Shifts 10 percent of traffic in the first increment. The remaining 90 percent is deployed 15 minutes later. |
CodeDeployDefault.LambdaCanary10Percent30Minutes |
Shifts 10 percent of traffic in the first increment. The remaining 90 percent is deployed 30 minutes later. |
CodeDeployDefault.LambdaLinear10PercentEvery1Minute |
Shifts 10 percent of traffic every minute until all traffic is shifted. |
CodeDeployDefault.LambdaLinear10PercentEvery2Minutes |
Shifts 10 percent of traffic every two minutes until all traffic is shifted. |
CodeDeployDefault.LambdaLinear10PercentEvery3Minutes |
Shifts 10 percent of traffic every three minutes until all traffic is shifted. |
CodeDeployDefault.LambdaLinear10PercentEvery10Minutes | Shifts 10 percent of traffic every 10 minutes until all traffic is shifted. |
CodeDeployDefault.LambdaAllAtOnce |
Shifts all traffic to the updated Lambda functions at once. |
EC2/本地计算平台的预定义部署配置
下表列出了预定义的部署配置。
部署配置 | 描述 |
---|---|
CodeDeployDefault.AllAtOnce |
就地部署: 一次性尝试将应用程序修订部署到尽可能多的实例。如果将应用程序修订部署到一个或多个实例,则整个部署的状态将显示为成功。如果尚未向任何实例部署应用程序修订,则整个部署的状态将显示为失败。在包含 9 个实例的示例中,CodeDeployDefault.AllAtOnce 将尝试一次性部署到所有 9 个实例。如果部署到单个实例成功,则整体部署成功。仅当所有 9 个实例的部署失败时,它才会失败。蓝/绿部署:
|
CodeDeployDefault.HalfAtATime |
就地部署: 一次最多可部署到一半实例(小数向下取整)。如果将应用程序修订部署到至少一半实例(小数向下取整),则整个部署成功。否则,部署失败。在包含 9 个实例的示例中,一次部署到最多 4 个实例。如果成功部署到 5 个或更多实例,则整个部署成功。否则,部署失败。 蓝/绿部署:
|
CodeDeployDefault.OneAtATime |
就地部署: 一次仅将应用程序修订部署到一个实例。 对于包含多个实例的部署组:
对于仅包含一个实例的部署组,整个部署仅在成功部署到单个实例时成功. 蓝/绿部署:
|
以上是关于Working with Deployment Configurations in CodeDeploy的主要内容,如果未能解决你的问题,请参考以下文章
Chapter 1 Working with strings
Spring For Hadoop--Working With HBase