[
https://issues.apache.org/jira/browse/CASSANDRA-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13737330#comment-13737330
]
Jonathan Ellis commented on CASSANDRA-5078:
-------------------------------------------
I think you'd want a new table, something like
{code}
CREATE TABLE compaction_history (
text keyspace,
text columnfamily,
compacted_at timestamp,
bytes_in long,
bytes_out long,
rows_merged Map<int, long>,
PRIMARY KEY (keyspace, columnfamily, compacted_at)
);
{code}
Look at CFMetadata for where the system tables are created, and SystemKeyspace
for loading/storing examples.
> save compaction merge counts in a system table
> ----------------------------------------------
>
> Key: CASSANDRA-5078
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5078
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Matthew F. Dennis
> Priority: Minor
> Labels: lhf
>
> we should save the compaction merge stats from CASSANDRA-4894 in the system
> table and probably expose them via JMX (and nodetool)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira