Repository navigation
Run ResourceCountCheckTask only in the longest running management server - #7977
Conversation
|
@blueorangutan package |
Codecov Report
@@ Coverage Diff @@
## main #7977 +/- ##
============================================
+ Coverage 29.19% 31.01% +1.81%
+ Complexity 30460 30375 -85
============================================
Files 5101 4758 -343
Lines 358726 332912 -25814
Branches 52348 47906 -4442
============================================
- Hits 104723 103242 -1481
+ Misses 239643 215462 -24181
+ Partials 14360 14208 -152
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 403 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
@blueorangutan package |
|
@nvazquez a [SF] 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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7064 |
|
@blueorangutan test |
|
@nvazquez a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-7693)
|
DaanHoogland
left a comment
There was a problem hiding this comment.
clgtm, some comment though
604c28b to
b38976a
Compare
|
@DaanHoogland @shwstppr can you please re-review? The PR description is updated to match the current changes after the refactor |
|
@blueorangutan package |
|
@nvazquez a [SF] 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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7264 |
| SearchCriteria<ManagementServerHostVO> sc = StateSearch.create(); | ||
| sc.setParameters("state", ManagementServerHost.State.Up); | ||
| sc.setParameters("runid", 0); | ||
| Filter filter = new Filter(ManagementServerHostVO.class, "runid", true, 0L, 1L); |
There was a problem hiding this comment.
so we order by runid and assume that means the first one is the longest running.
I think this will work, but there is the issue of re-joining the cluster and time skews (this is about milliseconds. I don´t think these will be issues for this functionality but just giving a heads-up. Maybe someone else knows??
There was a problem hiding this comment.
In such cases would the runid field get updated? If that is the case then another management server will acquire the lock for this task
|
@blueorangutan package |
|
@nvazquez a [SF] 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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7319 |
|
@blueorangutan test matrix |
|
@rohityadavcloud a [SF] Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-7924)
|
|
[SF] Trillian test result (tid-7926)
|
|
Smoketests EL7 failures look intermittent and not related to this PR, let's kick after merging this on main health check PR. |
|
[SF] Trillian test result (tid-7925)
|
This adds the missing commit to the fix #335 from the upstream PR: apache/cloudstack#7977 (cherry picked from commit b5f77f9c3b53af7e8b05730da9807a2c9eb017a5) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Description
This PR improves the DB locking on the ResourceLimitManager class, after observed issues on scaling.
This PR includes:
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Tested on KVM with multiple management servers and 800+ level 2 domains