supervisor: Emit active/publishing task counts#17268
supervisor: Emit active/publishing task counts#17268ac9817 wants to merge 4 commits intoapache:masterfrom
Conversation
suneet-s
left a comment
There was a problem hiding this comment.
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.
|
|
This pull request has been marked as stale due to 60 days of inactivity. |
|
This pull request/issue has been closed due to lack of activity. If you think that |
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/countandtask/supervisor/publishing/count.Key changed/added classes in this PR
SeekableStreamSupervisor.javaThis PR has: