-
Notifications
You must be signed in to change notification settings - Fork 154
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
[ISSUE-378][HugePartition][Part-3] Introduce more metrics about huge partition #494
Conversation
Codecov Report
@@ Coverage Diff @@
## master #494 +/- ##
============================================
+ Coverage 58.83% 59.49% +0.65%
- Complexity 1707 1759 +52
============================================
Files 206 205 -1
Lines 11508 11539 +31
Branches 1030 1035 +5
============================================
+ Hits 6771 6865 +94
+ Misses 4323 4267 -56
+ Partials 414 407 -7
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
server/src/main/java/org/apache/uniffle/server/ShuffleTaskInfo.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/uniffle/server/ShuffleTaskInfo.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/uniffle/server/ShuffleTaskInfo.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/uniffle/server/ShuffleTaskInfo.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/uniffle/server/ShuffleTaskInfo.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/uniffle/server/ShuffleTaskInfo.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/uniffle/server/ShuffleTaskInfo.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/uniffle/server/ShuffleTaskInfo.java
Outdated
Show resolved
Hide resolved
} | ||
|
||
public void markHugePartition(int shuffleId, int partitionId) { | ||
if (!existHugePartition.get()) { |
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.
Previously, I was thinking:
if (!existHugePartition.getAndSet(true)) {
ShuffleServerMetrics.gaugeAppWithHugePartitionNum.inc();
ShuffleServerMetrics.counterTotalAppWithHugePartitionNum.inc();
}
But maybe get is cheaper, and we should guide by it first.
Generally lgtm, except two minor comments. |
LGTM, pending CI passes |
PTAL @advancedxy . CI passed |
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
### What changes were proposed in this pull request? Fix the metric huge_partition_num. ### Why are the changes needed? A follow-up PR for: #494. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing UTs.
### What changes were proposed in this pull request? Fix the metric huge_partition_num. ### Why are the changes needed? A follow-up PR for: #494. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing UTs.
What changes were proposed in this pull request?
Introduce more metrics about huge partition
counter
Gauge
Why are the changes needed?
Having these metrics, we should observe the concrete influence from huge partition for regular partition and huge partition number in one shuffle-server
Does this PR introduce any user-facing change?
No
How was this patch tested?