[
https://issues.apache.org/jira/browse/HDFS-5431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Wang updated HDFS-5431:
------------------------------
Attachment: hdfs-5431-1.patch
Patch attached. This implements quotas, and a few other things:
* Quotas are based on the demand, not the current amount of cached data.
They're enforced at scan time.
* Introduce two new CachePool fields, quota and reservation. We only use quota,
reservation and weight are present in the fsimage and edit log so we can later
implement these without doing a metadata upgrade, but are not present in proto
format so clients can't actually set them.
* Made the CacheManager success/fail prints for pools consistent with
directives, now we actually always see a NN log print which is nice for
debugging.
* Some misc CacheAdmin cleanups on top of removing weight and adding quota
* Some TestCacheDirective cleanups, basically unifying the setup/teardown so we
aren't always restarting a new cluster. Might help to use "git diff -w" to view
this.
> support cachepool-based quota management in path-based caching
> --------------------------------------------------------------
>
> Key: HDFS-5431
> URL: https://issues.apache.org/jira/browse/HDFS-5431
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: datanode, namenode
> Affects Versions: 3.0.0
> Reporter: Colin Patrick McCabe
> Assignee: Andrew Wang
> Attachments: hdfs-5431-1.patch
>
>
> We should support cachepool-based quota management in path-based caching.
--
This message was sent by Atlassian JIRA
(v6.1#6144)