[
https://issues.apache.org/jira/browse/OAK-9913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17598832#comment-17598832
]
Rishabh Kumar commented on OAK-9913:
------------------------------------
The actual time for which we have throttled the operation is available only
inside
[ThrottlingDocumentStoreWrapper|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/util/ThrottlingDocumentStoreWrapper.java].
In order to pass the throttled time to
[DocumentStoreStats|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStoreStats.java],
we have 2 options:
# Use the same throttler object (used in ThrottlingDocumentStoreWrapper) and
fetch the throttled time from it
## Throttling time value might change in between, though the chances of that
happening are very slim, still, it can vary.
## This value would not be very accurate, since we are not considering other
operations happening (like the time taken for the thread to sleep, resume, and
execute again). This value can at best be an approx. value.
# Use an inter-class communication to share actual time taken by
ThrottlingDocumentStoreWrapper via :
## ThreadLocal
## Caches
cc [~mreutegg] [~stefanegli]
> Expose Metrics for Mongo DocumentStore throttling
> -------------------------------------------------
>
> Key: OAK-9913
> URL: https://issues.apache.org/jira/browse/OAK-9913
> Project: Jackrabbit Oak
> Issue Type: New Feature
> Reporter: Rishabh Kumar
> Priority: Major
>
> Expose metrics for the Mongo DocumentStore throttling feature. This allows us
> to better observe when the DocumentStore is throttled.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)