[AI-8th] optimizes SOFABoot bean async initialization#1423
Open
pmupkin wants to merge 1 commit intosofastack:masterfrom
Open
[AI-8th] optimizes SOFABoot bean async initialization#1423pmupkin wants to merge 1 commit intosofastack:masterfrom
pmupkin wants to merge 1 commit intosofastack:masterfrom
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #1423 +/- ##
============================================
- Coverage 82.94% 82.61% -0.34%
- Complexity 2975 3080 +105
============================================
Files 340 349 +9
Lines 9833 10128 +295
Branches 1178 1241 +63
============================================
+ Hits 8156 8367 +211
- Misses 1163 1214 +51
- Partials 514 547 +33 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR(Related issue #1408) optimizes SOFABoot bean async initialization by adding smart async candidate analysis, unified async-init configuration, startup optimization reporting, and an actuator endpoint for optimization suggestions.
Changes
SmartAsyncInitAnalyzerto automatically identify safe async-init candidates based on bean metadata, dependency signals, stateful annotations, constructor/property references, and auto mode.sofa.boot.async-init, including:enabledcorePoolSizemaxPoolSizequeueCapacitytimeoutMillisautoModeAsyncInitAutoModewithOFF,CONSERVATIVE, andAGGRESSIVEmodes.@SofaAsyncInitand XML configuration behavior.AsyncInitMethodManager.StartupOptimizerStartupReportBeanInitInfoStartupRecommendationstartup-optimizationactuator endpoint to expose startup bottleneck analysis and slow bean information.Compatibility
@SofaAsyncInitusage.