-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli): add ability to configure hotswap properties for ECS #30511
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed add Clarification Request
to a comment.
Clarification Request
I was able to execute the integration tests I added locally successfully, but there doesn't seem to be any snapshot changes for me to report. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would have made it easier / more likely for us to stay on ECS instead of moving to EKS.
This PR has been in the CHANGES REQUESTED state for 3 weeks, and looks abandoned. To keep this PR from being closed, please continue work on it. If not, it will automatically be closed in a week. |
Co-authored-by: Andrew Hammond <[email protected]>
This PR has been deemed to be abandoned, and will be automatically closed. Please create a new PR for these changes if you think this decision has been made in error. |
@comcalvi @kaizencc I had to update the PR as mergify failed to merge this automatically due to what I assume is an incoming change. Can you please review again? |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
@comcalvi Same thing again 😕 Seems like This time I won't update the PR myself as to not dismiss your review. |
Pull request has been modified.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
➡️ PR build request submitted to A maintainer must now check the pipeline and add the |
Comments on closed issues and PRs are hard for our team to see. |
Issue #29618
Reason for this change
We aim to speed up deployment times in our development environment by using the hotswap feature. However, our services have dependencies on each other, and the current hotswap behavior is too disruptive.
Description of changes
We modified the hotswap implementation for ECS services to pass the
minimumHealthyPercent
andmaximumHealthyPercent
configurable parameters. These parameters are exposed to the cli and can be passed as--hotswap-ecs-minimum-healthy-percent <number>
and--hotswap-ecs-maximum-healthy-percent <number>
The implementation is careful to maintain the existing behaviour. That is, if none of the new flags is used, the current
minimumHealthyPercent = 0
andmaximumHealthyPercent = undefined
values are used.Description of how you validated changes
We added a unit test validating that the correct values are passed to the task definition. We also executed using the locally built version of cdk validating that the behavior is as expected: the parameters are respected during hotswap deployments, and the existing API is maintained.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license