[ 
https://issues.apache.org/jira/browse/OAK-2065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14552174#comment-14552174
 ] 

Chetan Mehrotra commented on OAK-2065:
--------------------------------------

[~rombert] Have a look at AsyncIndexStats [1] on how it uses the TimeSeries 
support to track the time taken and number of times index is performed over a 
given time period. So for background read we would need similar support
* TimeSeries for count - That would enable us to see in past 60 sec how many 
time the read has happened
* TimeSeries for read time -  That would enable us to see in past 60 sec if 
read is performed how much time it took

[1] 
https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/AsyncIndexUpdate.java#L527-527

> JMX stats for operations being performed in DocumentStore
> ---------------------------------------------------------
>
>                 Key: OAK-2065
>                 URL: https://issues.apache.org/jira/browse/OAK-2065
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: mongomk
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>              Labels: tooling
>             Fix For: 1.3.0
>
>         Attachments: OAK-2065-1.patch
>
>
> Currently DocumentStore performs various background operations like
> # Cache consistency check
> # Pushing the lastRev updates
> # Synchrnizing the root node version
> We should capture some stats like time taken in various task and expose them 
> over JMX to determine if those background operations are performing well or 
> not. For example its important that all tasks performed in background task 
> should be completed under 1 sec (default polling interval). If the time taken 
> increases then it would be cause of concern
> See http://markmail.org/thread/57fax4nyabbubbef



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to