[
https://issues.apache.org/jira/browse/OAK-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15085203#comment-15085203
]
Michael Dürig commented on OAK-3819:
------------------------------------
Maybe an alternative is to collect size changes through something like this:
{code}
interface FileStoreMonitor {
void written(long bytes);
}
{code}
This could then also be passed to the {{TarWriter}} like you propose. Negative
values would stand for reclaimed space. If this is too cryptic, we could also
add an extra method {{reclaimed(long)}}. If at the same time we replace
{{FileStoreStats#initializeRepoSize}} by passing the initial size to the
constructor, all size changes would be reported through above interface.
> Collect and expose statistics related to Segment FileStore operations
> ---------------------------------------------------------------------
>
> Key: OAK-3819
> URL: https://issues.apache.org/jira/browse/OAK-3819
> Project: Jackrabbit Oak
> Issue Type: New Feature
> Components: segmentmk
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Fix For: 1.4
>
> Attachments: OAK-3819-v1.patch, segment-writes.png
>
>
> It would be useful to collect some more stats around FileStore operations in
> SegmentMK
> * Writes per second - How many bytes are being written measured per second
> * Repository size time series - There is a time series in {{GCMonitorMBean}}
> but that looks like get updated upon GC and hence bit stale
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)