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

fix: detect spread scaler requirements violation #491

Conversation

ahmedtadde
Copy link
Contributor

@ahmedtadde ahmedtadde commented Nov 13, 2024

Feature or Problem

A ComponentSpreadScaler config may have a set of requirements which cannot fully be satisfied so the deployment status remains as "Reconciling".

Related Issues

#432

Release Information

next

Consumer Impact

This is an enhancement/correctness change. It should have no adverse effect on existing functionality. This change prevents potential Heisenbugs where wadm could potentially operate on faulty instance spread without any detection.

Testing

All existing tests (unit and e2e) are functional

Unit Test(s)

Added two test cases can_detect_spread_requirements_violation_1 and can_detect_spread_requirements_violation_2

@ahmedtadde ahmedtadde requested a review from a team as a code owner November 13, 2024 20:16
Copy link
Member

@brooksmtownsend brooksmtownsend left a comment

Choose a reason for hiding this comment

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

Logic looks great, and tests are 👨🏻‍🍳 💋. Just a comment around the wording of the status message and thoughts around reconciliation

crates/wadm/src/scaler/spreadscaler/mod.rs Outdated Show resolved Hide resolved
crates/wadm/src/scaler/spreadscaler/mod.rs Outdated Show resolved Hide resolved
@ahmedtadde ahmedtadde force-pushed the fix/component-spreadscaler-infinite-reconcialiation-loop branch from 9804e81 to 31c2a19 Compare November 20, 2024 17:54
Copy link
Member

@brooksmtownsend brooksmtownsend left a comment

Choose a reason for hiding this comment

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

Great stuff @ahmedtadde, feel free to merge once ready

@ahmedtadde ahmedtadde merged commit ca5a631 into wasmCloud:main Dec 5, 2024
5 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