Repository navigation
[fix][broker] calculate default cache size correctly in standalone mode - #18217
Conversation
|
/pulsarbot rerun-failure-checks |
2 similar comments
|
/pulsarbot rerun-failure-checks |
|
/pulsarbot rerun-failure-checks |
codelipenghui
left a comment
There was a problem hiding this comment.
Is it able to fix the PulsarStandaloneStarter? I mean we can rewrite the memory configurations according to how many bookies will start in the standalone.
Looks like If we have 2GB direct memory in total, 1 broker, and 2 bookies. We can assign 667 MB of direct memory for each broker and bookie. Then we can rewrite like dbStorage_writeCacheMaxSizeMb = 0.25 * 667
|
/pulsarbot rerun-failure-checks |
|
Thanks for the hint, I'll try to fix it : ) @codelipenghui |
2a919d9 to
7223ff1
Compare
|
PTAL @codelipenghui |
Codecov Report
@@ Coverage Diff @@
## master #18217 +/- ##
============================================
+ Coverage 34.91% 38.74% +3.82%
- Complexity 5707 8261 +2554
============================================
Files 607 683 +76
Lines 53396 67326 +13930
Branches 5712 7217 +1505
============================================
+ Hits 18644 26085 +7441
- Misses 32119 38241 +6122
- Partials 2633 3000 +367
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
/pulsarbot rerun-failure-checks |
Fixes #18206
Motivation
Calculate
dbStorage_readAheadCacheMaxSizeMbanddbStorage_writeCacheMaxSizeMbcorrectly in standalone mode to avoid OOM.Modifications
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: labuladong#4