nvazquez opened a new pull request, #7977: URL: https://github.com/apache/cloudstack/pull/7977
### Description This PR improves the DB locking on the ResourceLimitManager class, after observed issues on scaling. This PR includes: - Making the ResourceCountCheckTask run only on one management server at a time - Do not recalculate the ROOT domain resource count before all the immediate children domains - Do not lock the entire rows for checking resource limits of a certain type for an account, but lock only per row to update - Do not lock the entire domain rows for the ResourceCountCheckTask at once, instead lock recursively on each step ### Types of changes - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] New feature (non-breaking change which adds functionality) - [ ] Bug fix (non-breaking change which fixes an issue) - [x] Enhancement (improves an existing feature and functionality) - [ ] Cleanup (Code refactoring and cleanup, that may add test cases) ### Feature/Enhancement Scale or Bug Severity #### Feature/Enhancement Scale - [ ] Major - [ ] Minor #### Bug Severity - [ ] BLOCKER - [ ] Critical - [ ] Major - [ ] Minor - [ ] Trivial ### Screenshots (if appropriate): ### How Has This Been Tested? Tested on KVM with multiple management servers and 800+ level 2 domains -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
