-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Improvement] Enable set ServerLoadProtection fot Master/Worker #15439
[Improvement] Enable set ServerLoadProtection fot Master/Worker #15439
Conversation
f40cc59
to
0d5b555
Compare
...meter/src/main/java/org/apache/dolphinscheduler/meter/metrics/PrometheusMetricsProvider.java
Fixed
Show fixed
Hide fixed
a2f0c99
to
9f46edb
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #15439 +/- ##
============================================
- Coverage 38.11% 38.00% -0.11%
+ Complexity 4697 4686 -11
============================================
Files 1299 1304 +5
Lines 44777 44769 -8
Branches 4797 4798 +1
============================================
- Hits 17067 17015 -52
- Misses 25863 25904 +41
- Partials 1847 1850 +3 ☔ View full report in Codecov by Sentry. |
d11ef47
to
d18c963
Compare
d18c963
to
d6d30cc
Compare
6408e09
to
0b51840
Compare
...uler-common/src/main/java/org/apache/dolphinscheduler/common/model/AlertServerHeartBeat.java
Fixed
Show fixed
Hide fixed
@NonNull RegistryClient registryClient) { | ||
super("MasterHeartBeatTask", masterConfig.getHeartbeatInterval().toMillis()); | ||
super("MasterHeartBeatTask", masterConfig.getMaxHeartbeatInterval().toMillis()); |
Check warning
Code scanning / CodeQL
Dereferenced variable may be null Warning
masterConfig
this
@NonNull Supplier<Integer> workerWaitingTaskCount) { | ||
super("WorkerHeartBeatTask", workerConfig.getHeartbeatInterval().toMillis()); | ||
@NonNull WorkerTaskExecutorThreadPool workerTaskExecutorThreadPool) { | ||
super("WorkerHeartBeatTask", workerConfig.getMaxHeartbeatInterval().toMillis()); |
Check warning
Code scanning / CodeQL
Dereferenced variable may be null Warning
workerConfig
this
8f66358
to
91b0eca
Compare
Please retry analysis of this Pull-Request directly on SonarCloud |
364fae9
to
306f4ca
Compare
306f4ca
to
73270ee
Compare
} | ||
if (systemMetrics.getSystemMemoryUsedPercentage() > maxSystemMemoryUsagePercentageThresholds) { | ||
log.info( | ||
"Worker OverLoad: the SystemMemoryUsedPercentage: {} is over then the MaxSystemMemoryUsagePercentageThresholds {}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, typo.
...c/main/java/org/apache/dolphinscheduler/server/master/config/MasterServerLoadProtection.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/apache/dolphinscheduler/server/master/config/MasterServerLoadProtection.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/apache/dolphinscheduler/server/master/config/MasterServerLoadProtection.java
Show resolved
Hide resolved
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
|
||
class MasterServerLoadProtectionTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
.jvmMemoryUsedPercentage(0.71) | ||
.systemMemoryUsedPercentage(0.71) | ||
.totalCpuUsedPercentage(0.71) | ||
.diskUsedPercentage(0.71) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.jvmMemoryUsedPercentage(0.71) | |
.systemMemoryUsedPercentage(0.71) | |
.totalCpuUsedPercentage(0.71) | |
.diskUsedPercentage(0.71) | |
.jvmMemoryUsedPercentage(0.81) | |
.systemMemoryUsedPercentage(0.81) | |
.totalCpuUsedPercentage(0.81) | |
.diskUsedPercentage(0.81) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I change the default configuration to 0.7
, so this test case doesn't need to change.
73270ee
to
c99f1ea
Compare
c99f1ea
to
2cadae0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
bf49597
to
704e6fc
Compare
Quality Gate failedFailed conditions 29.7% Coverage on New Code (required ≥ 60%) See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Purpose of the pull request
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md