-
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
supervisor: Emit active/publishing task counts #17268
base: master
Are you sure you want to change the base?
Conversation
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.
Instead of reporting 2 new metrics, could you add the SeekableStreamIndexTaskRunner#status
as a dimension to the service/heartbeat
metric instead.
This change would make it so that we have visibility into all the different states a streaming task could be in, and the metrics would also provide visibility into which specific task is in which state, as opposed to just knowing the number of tasks that are in the publishing state.
3ff470a
to
84e2f10
Compare
There has to be some docs changes. How are you going to infer the time in publishing tasks (btw what does supervisor publishing a task mean exactly)? And how do you keep that time low assuming you can find the time is high. |
@adithyachakilam , leaving some suggestions here even though the PR is in draft right now.
Could you please elaborate? What time are you referring to exactly? If you want to capture the time a task spends in publishing segments, If you want to capture the number of tasks currently in publishing phase etc, then as @suneet-s has suggested, emitting the current phase/state of a streaming task in its heartbeat makes sense.
|
Description
Adding this metric would help see how much of time a supervisor is spending to publish tasks, It is important to keep this time low because auto scaling would be skipped in during this period which could cause increased lag.
Release note
Adds new metrics:
task/supervisor/active/count
andtask/supervisor/publishing/count
.Key changed/added classes in this PR
SeekableStreamSupervisor.java
This PR has: