You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "guo Maxwell (Jira)" <ji...@apache.org> on 2025/08/28 06:30:00 UTC
[jira] [Comment Edited] (CASSANDRA-20864) Expose Prepared Statement Cache Size Metric (in bytes)
[ https://issues.apache.org/jira/browse/CASSANDRA-20864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18016674#comment-18016674 ]
guo Maxwell edited comment on CASSANDRA-20864 at 8/28/25 6:29 AM:
------------------------------------------------------------------
+1, and the ci seems to be all right. Start to commit the pr.
was (Author: maxwellguo):
+1, and the ci seems to be all right. Start to commit.
> Expose Prepared Statement Cache Size Metric (in bytes)
> ------------------------------------------------------
>
> Key: CASSANDRA-20864
> URL: https://issues.apache.org/jira/browse/CASSANDRA-20864
> Project: Apache Cassandra
> Issue Type: Improvement
> Components: Observability/Metrics
> Reporter: Isaac Reath
> Assignee: Isaac Reath
> Priority: Normal
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Currently, Cassandra exposes the count of prepared statements through a metric, PreparedStatementsCount. However, the maximum cache size is configured in terms of bytes through the configuration prepared_statements_cache_size, creating a mismatch between the exposed metrics and the configuration units. This discrepancy makes it difficult for operators to anticipate when the cache is approaching its configured limit. The scope of this ticket is to add a new metric, PreparedStatementsCacheSize, which will expose the size of the cache in bytes to improve the observability of the size of the prepared statement cache.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org