question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lower elbv2 target group draining timeout for ECS services

See original GitHub issue

The default registration delay timeout of elbv2 target group is 300s which is way too long for some simple web applications and user will wait at least 5min when they cdk deploy to kickoff the service rolling update.

see discussion here https://twitter.com/pahudnet/status/1185232660081197056

Use Case

Users need lower draining timeout and faster ECS service rolling update experience.

Proposed Solution

Option 1

To provide a new optional drainingTimeout property for all *LoadBalanced*Service classes. If customer specify the new drainingTimeout duration, CDK update the target group attribute accordingly. Otherwaise, it remains the default 300s.

For example

    const webSvc = new ecsPatterns.ApplicationLoadBalancedEc2Service(this, 'webSvc', {
      cluster,
      taskDefinition,
      desiredCount: 3,
      drainingTimeout: Duration.seconds(30),
    })

Option 2

To provide new ECS patters for “fast API / web server with no long connections” without surfacing the implementation details.

Other

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:7
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
rix0rrrcommented, Oct 23, 2019

I understand that, but people in non-common situations can still adjust the timeout (and there should be a discoverable, convenient API for it via a Duration property!).

We should be optimizing for the common case, that helps the most people.

1reaction
tmokmsscommented, Feb 2, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Target groups for your Application Load Balancers
After you create a target group, you cannot change its target type. ... the target is displayed as draining until the deregistration delay...
Read more >
Application Load Balancer Target Group Register/Deregister ...
... no longer exists), so that clears up why a health check wasn't being performed and the registered instances were draining immediately.
Read more >
ElasticLoadBalancingv2 — Boto3 Docs 1.26.36 documentation
A low-level client representing Elastic Load Balancing (Elastic Load Balancing v2) ... You configure a target group with a protocol and port number...
Read more >
6 Tips to Improve Availability with AWS Load Balancers and ...
If your deregistration idle timeout is set too low, ... It keeps the ALB/NLB target groups in sync before it moves on to...
Read more >
Target Group | AWS Cloud Resource Directory - Lightlytics
Target group is a logical grouping of EC2 instances that sits behind a load balancer ... at the end of the deregistration timeout...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found