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
DRS: Use free metrics instead of used for computation #8458
Conversation
@blueorangutan package |
@vishesh92 a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #8458 +/- ##
============================================
- Coverage 30.85% 30.80% -0.05%
+ Complexity 34048 33986 -62
============================================
Files 5341 5341
Lines 374861 374870 +9
Branches 54518 54521 +3
============================================
- Hits 115659 115493 -166
- Misses 243973 244117 +144
- Partials 15229 15260 +31
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8225 |
@blueorangutan test |
@vishesh92 a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
[SF] Trillian test result (tid-8753)
|
Though it sounds reasonable, I would expect to see some kind of used/free ratio as the measure. I can also see why this would not be reasonable though. Have you considered this @vishesh92 ? |
I didn't consider this earlier. But this might cause issues since used/free ratio can be very small or very large in some cases. This will also require a lot of changes at this point of time and not sure if it will work as expected or not. We can explore this in future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, tested manually
Deployed some 4 vm’s
Set the following cluster level settings
Infrastructure > Cluster > Settings > Search “drs”
drs.imbalance= 0.4/0.9
drs.algorithm= condensed/balanced
drs.metric=memory/cpu
Drs.imbalance= 0.9 and drs.alogirithm=condensed >> The vms migrated to a single host
Drs.imbalance= 0.4 and drs.alogirthm=balanced >> The vms got distributed across the hosts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code lgtm
This PR makes changes to use cluster's free metrics instead of used while computing imbalance for the cluster. This allows DRS to run for clusters where hosts doesn't have the same amount of metrics.
Description
This PR makes changes to use cluster's free metrics instead of used while computing imbalance for the cluster. This allows DRS to run for clusters where hosts doesn't have the same amount of metrics.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?