You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2020/09/16 02:27:24 UTC

[GitHub] [druid] jihoonson commented on a change in pull request #10379: Adding more task slot count metrics to Druid Overlord

jihoonson commented on a change in pull request #10379:
URL: https://github.com/apache/druid/pull/10379#discussion_r489123722



##########
File path: indexing-service/src/main/java/org/apache/druid/indexing/overlord/TaskRunner.java
##########
@@ -121,4 +121,17 @@ default TaskLocation getTaskLocation(String taskId)
    * @return ScalingStats if the runner has an underlying resource which can scale, Optional.absent() otherwise
    */
   Optional<ScalingStats> getScalingStats();
+
+  /**
+   * APIs useful for emitting statistics for @TaskSlotCountStatsMonitor
+  */
+  long getTotalTaskSlotCount();

Review comment:
       How about adding new interfaces such as `TaskSlotCountable` and `WorkerCountable`? Then, we can avoid implementing unnecessary interfaces, e.g., the new methods in `SingleThreadedBackgroundRunner`, by implementing required interfaces only.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org