[
https://issues.apache.org/jira/browse/MAPREDUCE-6847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15867999#comment-15867999
]
Jason Lowe commented on MAPREDUCE-6847:
---------------------------------------
Thanks for the report and patch!
I do not understand the motivation to evict entries based on time. Typically
caches that evict based on time do so because the usefulness of the entries has
diminished with time (e.g.: DNS entries that may have changed and need to be
re-cached). In this case old data is still perfectly valid, it has not
changed. If a user needs to access that job the cache would still be just as
valid as if the job was fresh.
>From the JIRA description it sounds like the motivation has to do with
>concerns about the JHS heap size, but how does a time expiration really solve
>that problem? One could still load a bunch of large jobs within the cache
>timeout period and have the JHS heap become "too large," so I don't understand
>how adding a time expiration helps with that. If this is really about the
>heap then it seems to me the JHS cache size needs to be tuned properly rather
>than adding a cache timeout and hoping users do not hit enough large jobs too
>quickly for it to "work." With a properly tuned cache size, JHS entries will
>be evicted in an LRU fashion, so old entries will be automatically removed.
>However the advantage is those entries will only be removed when that is
>necessary rather than on an arbitrary time schedule.
> Job history server should release jobs from cache after a fixed duration
> ------------------------------------------------------------------------
>
> Key: MAPREDUCE-6847
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-6847
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: jobhistoryserver
> Reporter: Weiwei Yang
> Assignee: Weiwei Yang
> Attachments: MAPREDUCE-6847.01.patch
>
>
> We found history server is consuming a lot of memory when there are large
> jobs (with more than 100k of tasks in a single job). Currently JHS cache only
> evicts entries with size, it's better to add the time expiration as well to
> reduce heap usage if job has no one accessing for sometime.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]