Skip to content

fix: improve default healthcheck and deregistration settings#738

Merged
sihil merged 1 commit intomainfrom
sihil/dereg-delay
Aug 17, 2021
Merged

fix: improve default healthcheck and deregistration settings#738
sihil merged 1 commit intomainfrom
sihil/dereg-delay

Conversation

@sihil
Copy link
Copy Markdown
Contributor

@sihil sihil commented Aug 13, 2021

What does this change?

On ALBs the deregistration delay determines how quickly an instance can be removed from a target grouo. The default is five minutes which makes deploys take a lot longer than is needed.

This delay should be tuned to be longer than your longest ever expected request. As such 30s seems reasonable for most use cases but I could be convinced to push this up to 60s.

In addition we also flip the healthy/unhealthy default values which look wrong (an instance should go out of service no slower than come in) and increase the polling interval so that the load balancer is more responsive.

Does this change require changes to existing projects or CDK CLI?

Existing projects will inherit these more sensible defaults when they upgrade.

Does this change require changes to the library documentation?

These specific settings are not documented.

How can we measure success?

Deploys of apps like Prism are substantially faster.

Have we considered potential risks?

It's possible that some apps rely on this. It's worth reviewing settings in use across the department to verify these make sense.

@sihil sihil requested a review from a team August 13, 2021 21:16
@jacobwinch
Copy link
Copy Markdown
Contributor

This change looks sensible to me - I think we'll just need to update some of the tests in src/constructs/loadbalancing/alb/application-target-group.test.ts before merging this in

@sihil sihil force-pushed the sihil/dereg-delay branch from f6938a3 to c88b3d9 Compare August 17, 2021 08:52
@sihil sihil merged commit 232e34e into main Aug 17, 2021
@sihil sihil deleted the sihil/dereg-delay branch August 17, 2021 09:29
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 23.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

akash1810 added a commit to guardian/prism that referenced this pull request Sep 6, 2021
This change comes from guardian/cdk#738.
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.

2 participants