Repository navigation
[fix][load-balancer] skip mis-configured resource usage(>100%) in load balancer - #16937
Conversation
| if (minimumThroughputToOffload < minThroughputThreshold) { | ||
| if (log.isDebugEnabled()) { | ||
| log.debug("[{}] broker is planning to shed throughput {} MByte/s less than " | ||
| if (sampleLog) { |
There was a problem hiding this comment.
How about use log.info directly since sampleLog maybe miss some log ?
There was a problem hiding this comment.
I intentionally sample the logs as this shedding logic computes the load frequently every x min(I think the default is every one minute).
Here, we want to emit logs for every unload decision (as-is) but sample logs for the skip(non-unload) decisions.
|
/pulsarbot run-failure-checks |
1 similar comment
|
/pulsarbot run-failure-checks |
c3141a7 to
0d990c3
Compare
|
/pulsarbot rerun-failure-checks |
1 similar comment
|
/pulsarbot rerun-failure-checks |
|
Hi @heesung-sn |
Raised a PR: #17285 |
…100%) in load computation (#16937) (#17285) ### Motivation cherry-pick this commit to branch-2.9 requested by : #16937 (comment)
…d computation (apache#16937) (cherry picked from commit eb833e6) (cherry picked from commit 688fb76)
…) in load computation (apache#16937)" This reverts commit eb833e6.
…) in load computation (apache#16937)" This reverts commit 688fb76. (cherry picked from commit 76d48c3)
…) in load computation (apache#16937)" This reverts commit 688fb76. (cherry picked from commit 76d48c3)
Motivation
Incorrectly scaled resource load usage(cpu, memory, network usages bigger than 100%) can harm the load computation in the load balancer logics, as the load balancer computation expects all resource usages are normalized to the 100% scale.
Also, we need more logs to debug load balance issues in the production. For example, we need more logs to investigate why the load balancer does not unload the bundles to the underloaded brokers and etc.
Modifications
Verifying this change
This change is already covered by existing tests, such as ThresholdShedderTest
Does this pull request potentially affect one of the following parts:
If
yeswas chosen, please highlight the changesDocumentation
Check the box below or label this PR directly.
Need to update docs?
doc-required(Your PR needs to update docs and you will update later)
doc-not-needed(Please explain why) This fix covers the load computation edge case from the Load Balancer.
doc(Your PR contains doc changes)
doc-complete(Docs have been already added)