Uh oh!
There was an error while loading. Please reload this page.
vpc: optimize createMonitorServiceCommand() execution - #8385
Conversation
Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
|
DaanHoogland
commented
Dec 20, 2023
@blueorangutan package |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@## 4.18 #8385 +/- ##
=============================================
+ Coverage 13.16% 30.74% +17.58% - Complexity 9203 33064 +23861
=============================================
Files 2724 5353 +2629 Lines 258120 374609 +116489 Branches 40231 54635 +14404 =============================================
+ Hits 33989 115188 +81199 - Misses 219823 244149 +24326 - Partials 4308 15272 +10964
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
weizhouapache
commented
Dec 20, 2023
@blueorangutan package |
blueorangutan
commented
Dec 20, 2023
@weizhouapache 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. |
blueorangutan
commented
Dec 20, 2023
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8103 |
harikrishna-patnala
commented
Dec 21, 2023
@blueorangutan test |
blueorangutan
commented
Dec 21, 2023
@harikrishna-patnala a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
harikrishna-patnala
left a comment
There was a problem hiding this comment.
results seems to be very interesting @phsm
blueorangutan
commented
Dec 21, 2023
[SF] Trillian test result (tid-8650)
|
Uh oh!
There was an error while loading. Please reload this page.
sureshanaparti
commented
Dec 22, 2023
@blueorangutan package |
blueorangutan
commented
Dec 22, 2023
@sureshanaparti 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. |
blueorangutan
commented
Dec 22, 2023
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8130 |
sureshanaparti
commented
Dec 22, 2023
@blueorangutan test |
blueorangutan
commented
Dec 22, 2023
@sureshanaparti a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Dec 23, 2023
[SF] Trillian test result (tid-8666)
|
phsm
commented
Jan 11, 2024
Is there anything else that I can do for this PR to be merged? I see some tests are failed but my Java knowledge isn't that great to actually fix them so I'd appreciate any help on this. |
weizhouapache
commented
Jan 11, 2024
@DaanHoogland@shwstppr can you please review ? |
DaanHoogland
left a comment
There was a problem hiding this comment.
clgtm, not sure what we need to test for this (assuming the smoke tests have tested health check functionality)
phsm
commented
Feb 2, 2024
So, can this PR be merged if everyone approves? :) |
weizhouapache
commented
Feb 2, 2024
Not yet. |
DaanHoogland
commented
Feb 15, 2024
@phsm I think you wanted to rebase your commit onto 4.18, did you? |
weizhouapache
commented
Feb 15, 2024
@phsm |
Avoid an expensive getRouterHealthChecksConfig() execution multiple times during VPC restart. Fixes#8055
phsm
commented
Feb 15, 2024
Thanks, that seems to have worked. |
vishesh92
commented
Feb 15, 2024
@blueorangutan package |
blueorangutan
commented
Feb 15, 2024
@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. |
blueorangutan
commented
Feb 15, 2024
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8673 |
vishesh92
commented
Feb 15, 2024
@blueorangutan test |
blueorangutan
commented
Feb 15, 2024
@vishesh92 a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Feb 16, 2024
[SF] Trillian test result (tid-9247)
|
weizhouapache
commented
Feb 17, 2024
@blueorangutan test rocky8 kvm-rocky8 |
blueorangutan
commented
Feb 17, 2024
@weizhouapache a [SL] Trillian-Jenkins test job (rocky8 mgmt + kvm-rocky8) has been kicked to run smoke tests |
vishesh92
commented
Feb 19, 2024
@blueorangutan test rocky8 kvm-rocky8 |
blueorangutan
commented
Feb 19, 2024
@vishesh92 a [SL] Trillian-Jenkins test job (rocky8 mgmt + kvm-rocky8) has been kicked to run smoke tests |
vishesh92
commented
Feb 19, 2024
Tested these changes. I couldn't find any difference in performance for these changes. I followed these steps:
|
Hi, |
weizhouapache
commented
Feb 19, 2024
@vishesh92 considering this is an optimization, it looks there is no regression (in manual and smoke tests), can we say it is good to merge ? @vishesh92 |
vishesh92
commented
Feb 19, 2024
@weizhouapache@phsm Got it. It is good to merge from my side. For manual testing, I just did what I mentioned in the above steps and tried to connect VMs I launched. |
weizhouapache
commented
Feb 19, 2024
thanks @vishesh92 for the testing I will merge it then |
Awesome work, congrats on your first merged pull request! |
blueorangutan
commented
Feb 19, 2024
[SF] Trillian test result (tid-9286)
|
* Optimize createMonitorServiceCommand() execution. Avoid an expensive getRouterHealthChecksConfig() execution multiple times during VPC restart. Fixesapache#8055 * Move getRouterHealthChecksConfig() outside of loop
Description
This PR moves an expensive getRouterHealthChecksConfig() upper the execution stack during VPC restart. So this way it is only executed once instead of tens or hundreds times (depending on VPC tiers amount).
This is done by introducing a
Map<String, String> routerHealthCheckConfigargument to createMonitorServiceCommand() method that accepts pre-computed health check config.Fixes#8055
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?