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

Add a backing instance max count config option for clustermgtd to be robust to eventual EC2 consistency #613

Merged

Conversation

dreambeyondorange
Copy link
Contributor

@dreambeyondorange dreambeyondorange commented Feb 13, 2024

Description of changes

  • Add a backing_instance_max_count config option for clustermgtd to be robust to eventual EC2 consistency

  • Adding a config option to clustermgtd, ec2_backing_instance_max_count, to allow more time for describe-instances to reach eventual consistency with run-instances data

  • Passes the max count and map to is_healthy() for static and dynamic nodes to evaluate the count for individual instances.

Tests

  • Existing unit tests are passing
  • Added unit tests for additional logic

Checklist

  • Make sure you are pointing to the right branch.
  • If you're creating a patch for a branch other than develop add the branch name as prefix in the PR title (e.g. [release-3.6]).
  • Check all commits' messages are clear, describing what and why vs how.
  • Make sure to have added unit tests or integration tests to cover the new/modified code.
  • Check if documentation is impacted by this change.

Please review the guidelines for contributing and Pull Request Instructions.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dreambeyondorange dreambeyondorange requested review from a team as code owners February 13, 2024 20:37
Copy link

codecov bot commented Feb 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (853f48d) 90.73% compared to head (de74342) 90.78%.

❗ Current head de74342 differs from pull request most recent head 1cad1c9. Consider uploading reports for the commit 1cad1c9 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #613      +/-   ##
===========================================
+ Coverage    90.73%   90.78%   +0.04%     
===========================================
  Files           20       20              
  Lines         3109     3125      +16     
===========================================
+ Hits          2821     2837      +16     
  Misses         288      288              
Flag Coverage Δ
unittests 90.78% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@dreambeyondorange dreambeyondorange changed the title Add a backing instance timeout config option for clustermgtd to be robust to eventual EC2 consistency Add a backing instance max count config option for clustermgtd to be robust to eventual EC2 consistency Feb 16, 2024
@dreambeyondorange dreambeyondorange force-pushed the backing_instance_timeout branch 10 times, most recently from ce0bb32 to 70b11f6 Compare February 16, 2024 23:13
@dreambeyondorange dreambeyondorange force-pushed the backing_instance_timeout branch 3 times, most recently from 9ed93bf to 1596798 Compare February 20, 2024 17:01
CHANGELOG.md Outdated Show resolved Hide resolved
@dreambeyondorange dreambeyondorange force-pushed the backing_instance_timeout branch 3 times, most recently from 8b8adb7 to 8fd54d7 Compare February 20, 2024 17:21
…e robust to eventual EC2 consistency

Adding a config option to clustermgtd, ec2_backing_instance_max_count, to allow more time for describe-instances to reach eventual consistency with run-instances data
Passes the max count and map to is_healthy() and is_bootstrap_failure() for static and dynamic nodes to evaluate the count for individual instances.
lukeseawalker
lukeseawalker previously approved these changes Feb 20, 2024
@dreambeyondorange dreambeyondorange merged commit 1b4ba77 into aws:develop Feb 20, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants