[ https://issues.apache.org/jira/browse/CASSANDRA-13890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17854443#comment-17854443 ]
Ling Mao commented on CASSANDRA-13890: -------------------------------------- # Co-authored-by Jon Haddad, because some codes based on his patch above # Exposing current compaction throughput to nodetool: {*}_getcompactionthroughput_{*}/{*}_compactionstats_{*} and metric({*}_cassandra_compaction_bytescompactedthroughput_count_{*}) # Current compaction throughput (1 minute) is more precise to react current compaction throughput than five/fifteen one # If you want the most precise, you can use the: *_rate(cassandra_compaction_bytescompactedthroughput_count\{instance=~"$instance"}[$interval])_* in the grafana # The RateLimter for the compactions is actually on reads, but we don't need to expose "read" keyword, that will confuse users and increase their mental/cognition burden # keep ratelimiter and metric together in the {_}*compactionRateLimiterAcquire*{_}, otherwise every time it is called, we would have to rely on external metrics, which can lead to oversight and inaccurate metric # _*bytescompactedthroughput*_ is the upper limit of the current compaction, when a node is very intensive, it may cannot reach that capacity. Evaluating the real-time actual compaction throughput is comprehensive and complex > Expose current compaction throughput > ------------------------------------ > > Key: CASSANDRA-13890 > URL: https://issues.apache.org/jira/browse/CASSANDRA-13890 > Project: Cassandra > Issue Type: Improvement > Components: Legacy/Tools > Reporter: Jon Haddad > Priority: Low > Labels: lhf > Fix For: 5.x > > Time Spent: 10m > Remaining Estimate: 0h > > Getting and setting the current compaction throughput limit is supported, but > there's no means of knowing if the setting is actually making a difference. > Let's expose the current throughput being utilized by Cassandra that's in the > {{compactionRateLimiter}} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org