[
https://issues.apache.org/jira/browse/HDFS-5378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Colin Patrick McCabe updated HDFS-5378:
---------------------------------------
Attachment: HDFS-5378-caching.004.patch
thanks for the review.
I renamed the datanode-wide cache stats 'dnCacheCapacity' and 'dnCacheUsed'.
Since they're not per-storage, they belong in the heartbeat itself, not in the
StorageReport (which is per-storage, after all). We can always add per-storage
statistics later-- it will be easy to add in a compatible way if/when a need
comes up.
> In CacheReport, don't send genstamp and length on the wire
> ----------------------------------------------------------
>
> Key: HDFS-5378
> URL: https://issues.apache.org/jira/browse/HDFS-5378
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: datanode
> Affects Versions: HDFS-4949
> Reporter: Colin Patrick McCabe
> Assignee: Colin Patrick McCabe
> Attachments: HDFS-5378-caching.001.patch,
> HDFS-5378-caching.002.patch, HDFS-5378-caching.003.patch,
> HDFS-5378-caching.004.patch
>
>
> As discussed in HDFS-5096, we don't need genstamp and block length when
> processing cache reports. So let's not send them over the wire (it increases
> the size of cache reports to 3x what it could be).
> Also, we should report the caching statistics alongside the normal DN stats
> in {{StorageReport}}. There's no reason for them to be separate. Since the
> new fields will be optional and default to 0, there will be no extra overhead
> in the non-caching case.
--
This message was sent by Atlassian JIRA
(v6.1#6144)