[ https://issues.apache.org/jira/browse/CASSANDRA-8341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14229796#comment-14229796 ]
T Jake Luciani commented on CASSANDRA-8341: ------------------------------------------- I added some code to do this in a branch and have been meaning to break it out. It adds LatencyMetrics to AbstractTracingAwareExecutorService and tracks time spent in queue for each FutureTask. The code is here https://github.com/tjake/cassandra/compare/new-executor#diff-9860b2ae7a7e9e05e2165fd319f1398eL26 The SEPExecutor would need something similar added. > Expose time spent in each thread pool > ------------------------------------- > > Key: CASSANDRA-8341 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8341 > Project: Cassandra > Issue Type: New Feature > Components: Core > Reporter: Chris Lohfink > Priority: Minor > Labels: metrics > Attachments: 8341.patch, 8341v2.txt > > > Can increment a counter with time spent in each queue. This can provide > context on how much time is spent percentage wise in each stage. > Additionally can be used with littles law in future if ever want to try to > tune the size of the pools. -- This message was sent by Atlassian JIRA (v6.3.4#6332)