-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Add worker category dimension #11554
Changes from all commits
7bab5a5
78de1b4
1a78f60
6c80b1f
4514a80
8d6bd16
269b436
28b3685
f7c16ce
0420a78
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ | |
import javax.annotation.Nullable; | ||
import java.util.Collection; | ||
import java.util.List; | ||
import java.util.Map; | ||
import java.util.concurrent.Executor; | ||
|
||
/** | ||
|
@@ -124,14 +125,14 @@ default TaskLocation getTaskLocation(String taskId) | |
|
||
/** | ||
* APIs useful for emitting statistics for @TaskSlotCountStatsMonitor | ||
*/ | ||
long getTotalTaskSlotCount(); | ||
*/ | ||
Map<String, Long> getTotalTaskSlotCount(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: could use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since I'm returning There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure what you mean. My suggestion is changing all return type here including all their implementations. For singleton map, you can use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If it's okay I'm not planning to address this change in this PR. |
||
|
||
long getIdleTaskSlotCount(); | ||
Map<String, Long> getIdleTaskSlotCount(); | ||
|
||
long getUsedTaskSlotCount(); | ||
Map<String, Long> getUsedTaskSlotCount(); | ||
|
||
long getLazyTaskSlotCount(); | ||
Map<String, Long> getLazyTaskSlotCount(); | ||
|
||
long getBlacklistedTaskSlotCount(); | ||
Map<String, Long> getBlacklistedTaskSlotCount(); | ||
} |
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.
hmm, it looks like other emitters have files like this too:
should they be updated as well after this change? I didn't look super closely at their contents, and i'm not sure how consistent they actually are with each other since I'm not sure they are currently emitting these metrics at all... but this seemed worth discussing.
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 created #11958.
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.
This is worth discussing, but I think we can do it in #11958.