[
https://issues.apache.org/jira/browse/OAK-3791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15098025#comment-15098025
]
Chetan Mehrotra commented on OAK-3791:
--------------------------------------
bq. IMO timing the database related methods would be very useful. Is a timer
costly? I expect the DocumentStore methods that hit the database to be quite
expensive ( order >= milliseconds ). I needed, I could spend some time
investigating the impact.
agreed. Overhead of timer was not the driving concern here. It was just that it
require bit more changes and then we had some similar existing support in
PerfLogger. So all that would need to be consolidated (see patch proposed
below) and hence those thoughts. But based on feedback I agree that collecting
time would be helpful
bq. On the long run having a lot of stats will add overhead.
Per various users of Metric the overhead is not very high and its designed for
runtime usage where it is enabled by default. So lets have that in and see how
it performs. If required we can go for fine grained control of enabling
metrics. Key point being that we have required metrics in place
> Time measurements for DocumentStore methods
> -------------------------------------------
>
> Key: OAK-3791
> URL: https://issues.apache.org/jira/browse/OAK-3791
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: core, documentmk
> Reporter: Teodor Rosu
> Assignee: Chetan Mehrotra
> Fix For: 1.4
>
> Attachments: OAK-3791-RDB-0.patch, OAK-3791-v1.patch,
> OAK-3791-v2-chetanm.patch, oak-document-stats.png
>
>
> For monitoring ( in big latency environments ), it would be useful to measure
> and report time for the DocumentStore methods.
> These could be exposed as (and/or):
> - as Timers generated obtained from StatisticsProvider ( statistics registry )
> - as TimeSeries
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)