fix: improve default healthcheck and deregistration settings#738
Merged
Conversation
Contributor
|
This change looks sensible to me - I think we'll just need to update some of the tests in |
f6938a3 to
c88b3d9
Compare
jacobwinch
approved these changes
Aug 17, 2021
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.