-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Refactor of Allocator classes #9074
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9074 +/- ##
============================================
+ Coverage 17.66% 17.70% +0.04%
- Complexity 14063 14111 +48
============================================
Files 5307 5308 +1
Lines 473814 473740 -74
Branches 55637 55585 -52
============================================
+ Hits 83715 83893 +178
+ Misses 380774 380530 -244
+ Partials 9325 9317 -8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
1ff8f4a
to
42d16d9
Compare
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
537c10f
to
952c273
Compare
server/src/main/java/com/cloud/agent/manager/allocator/impl/TestingAllocator.java
Show resolved
Hide resolved
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, I did some basic testing, changed the allocator to FirstFit and created some VMs, the VM allocation worked fine with and without tags. However, my tests were limited, further testing would be good.
dd1eb14
to
952c273
Compare
952c273
to
b7cc66f
Compare
@blueorangutan package |
@DaanHoogland 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. |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10801 |
@blueorangutan LLtest |
@blueorangutan package |
@DaanHoogland 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. |
@winterhazel , I do understand that your request for changes is honoured to satisfaction? |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14113 |
@DaanHoogland yes |
eae724a
to
e9ea442
Compare
Hey @winterhazel @JoaoJandre @DaanHoogland, this should be good for testing now. |
requests for changes satisfied
@blueorangutan package |
@DaanHoogland 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. |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14152 |
@blueorangutan test |
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
[SF] Trillian test result (tid-13769)
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
server/src/main/java/com/cloud/server/ManagementServerImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/cloud/agent/manager/allocator/impl/FirstFitAllocator.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/cloud/agent/manager/allocator/impl/FirstFitAllocator.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
…method # Conflicts: # server/src/main/java/com/cloud/agent/manager/allocator/impl/FirstFitAllocator.java
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
Description
This PR refactors some
*Allocator
classes, improving modularity and code legibility. This PR also made some changes to logs across these classes.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
How Has This Been Tested?
I tested the allocation process in my personal lab, using both the
RandomAllocator
andFirstFitAllocator
allocators. I tried some variation of tags and offerings, and everything looks good. Furthermore, I also added a lot of unit tests for the methods that I refactored.How did you try to break this feature and the system with this change?