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

Bharat Viswanadham commented on HDDS-816:
-----------------------------------------

Hi [~arpitagarwal]

Yes, I agree after unclean shutdown metrics count for keys will be wrong. But 
using rocksdb estimate of keys also will not solve, as it depends on compaction 
time and our operations on om. So, it will be very rare to be correct even in 
this scenario and also according to above reasons.
{quote}When we have HA we will take periodic RocksDB snapshots. Perhaps we can 
persist the object count at the time of the snapshot and the calculate the 
delta changes since the snapshot. We could use that to reconcile the count on 
OM restart.
{quote}
Yes, I think when we have HA, we can take rocksdb snapshots. With the approach, 
you have proposed it might work. we can revisit this, during HA.

 

> Create OM metrics for bucket, volume, keys
> ------------------------------------------
>
>                 Key: HDDS-816
>                 URL: https://issues.apache.org/jira/browse/HDDS-816
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone Manager
>            Reporter: Bharat Viswanadham
>            Assignee: Bharat Viswanadham
>            Priority: Major
>         Attachments: HDDS-816.00.patch, HDDS-816.01.patch, HDDS-816.03.patch, 
> HDDS-816.04.patch, HDDS-816.05.patch, Metrics for number of volumes, buckets, 
> keys.pdf, Proposed Approach.pdf
>
>
> This Jira is used to create the following metrics in Ozone manager.
>  # number of volumes 
>  # number of buckets
>  # number of keys



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to