[
https://issues.apache.org/jira/browse/OAK-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15085026#comment-15085026
]
Chetan Mehrotra commented on OAK-3819:
--------------------------------------
bq. FileStoreStats#getSize calls FileStore#size. The latter is very prone to
contention and shouldn't be called too often
I thought about that but thought that MBean would not be called that
frequently. But appoximateSize makes sense. Would do that
bq. FileStoreStats#addWrites is called from FileStore. However the amount of
data written is rather a concern of TarWriter and the method should be called
from there
Was doing that only but it required bit wider change as TarWriter gets called
from many places and stats instance would not be passed from there. One way
could be to add a {{TarWriterStatsCollector#writes(long byteCount)}} interface
to TarWriter and provide an implementation when it gets created within
FileStore. For other cases a noop implementation would be used. [~mduerig]
Should I update patch with this approach?
bq. I don't like the extra call to FileStoreStats#reclaimed in FileStore#cleanup
The Metric counts cannot be set to arbitrary value. They can either be inc or
dec. So need to dec the repo size otherwise counter would go out of sync
> 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)