Skip to content
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

Introduce service stable logic to ensure ECS workload available #4548

Merged
merged 5 commits into from
Aug 22, 2023

Conversation

khanhtc1202
Copy link
Member

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #4478

Does this PR introduce a user-facing change?:

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

@codecov
Copy link

codecov bot commented Aug 18, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.03% ⚠️

Comparison is base (46fd914) 29.97% compared to head (088ac62) 29.95%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4548      +/-   ##
==========================================
- Coverage   29.97%   29.95%   -0.03%     
==========================================
  Files         220      220              
  Lines       25851    25872      +21     
==========================================
  Hits         7749     7749              
- Misses      17455    17476      +21     
  Partials      647      647              
Files Changed Coverage Δ
pkg/app/piped/platformprovider/ecs/client.go 0.00% <0.00%> (ø)
pkg/app/piped/platformprovider/ecs/ecs.go 0.00% <ø> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@khanhtc1202 khanhtc1202 changed the title Introduce service stable logic to ensure ECS workload available [WIP] Introduce service stable logic to ensure ECS workload available Aug 18, 2023
@khanhtc1202 khanhtc1202 changed the title [WIP] Introduce service stable logic to ensure ECS workload available Introduce service stable logic to ensure ECS workload available Aug 21, 2023
@khanhtc1202
Copy link
Member Author

@kentakozuka plz

Copy link
Member

@kentakozuka kentakozuka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice :)
Left a comment.

Comment on lines +38 to +41
// Retry wait service stable check.
retryServiceStable = 40
// Interval wait service stable check.
retryServiceStableInterval = 15 * time.Second
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you tell me why this timeout is 10mins(40 * 15sec)?
The default deployment timeout is now 6 hours.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This follows the AWS cli implementation, where they use the above numbers. Of course, we can wait up to 6 hours, but I just feel like it's overdoing.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/wait/services-stable.html#description

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK 👍 Thanks

Copy link
Member

@kentakozuka kentakozuka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super!
Let's go 🚀

@khanhtc1202 khanhtc1202 merged commit ef1a913 into master Aug 22, 2023
12 of 14 checks passed
@khanhtc1202 khanhtc1202 deleted the service-stable branch August 22, 2023 07:18
@github-actions github-actions bot mentioned this pull request Aug 23, 2023
sZma5a pushed a commit to sZma5a/pipecd that referenced this pull request Aug 27, 2023
…-cd#4548)

* Introduce service stable logic to ensure ECS workload available

Signed-off-by: khanhtc1202 <[email protected]>

* Reimplement WaitServiceStable logic

Signed-off-by: khanhtc1202 <[email protected]>

* Update waiting logic

Signed-off-by: khanhtc1202 <[email protected]>

* Update service stable condition

Signed-off-by: khanhtc1202 <[email protected]>

---------

Signed-off-by: khanhtc1202 <[email protected]>
Signed-off-by: sZma5a <[email protected]>
moko-poi pushed a commit to moko-poi/pipecd that referenced this pull request Nov 3, 2023
…-cd#4548)

* Introduce service stable logic to ensure ECS workload available

Signed-off-by: khanhtc1202 <[email protected]>

* Reimplement WaitServiceStable logic

Signed-off-by: khanhtc1202 <[email protected]>

* Update waiting logic

Signed-off-by: khanhtc1202 <[email protected]>

* Update service stable condition

Signed-off-by: khanhtc1202 <[email protected]>

---------

Signed-off-by: khanhtc1202 <[email protected]>
Signed-off-by: moko-poi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ECS deployment should wait until new version is rolled out completely
2 participants