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

Jason Lowe commented on MAPREDUCE-6847:
---------------------------------------

I understand the intent, but a time-based cache is not actually addressing the 
real problem here.  If all of the jobs are large and the users visit those jobs 
in rapid succession this change will not address the problem at all.  It only 
can work if users do not request the history of jobs "too quickly" which is not 
a robust solution.

The real issue here is that the cache is based on the number of jobs without 
considering how large the jobs are.  This is better addressed by a change like 
MAPREDUCE-6622 which allows the cache to be configured based on a total task 
count rather than a job count, which is a closer approximation to the real 
memory costs of caching a particular job.  This also has the advantage of 
allowing the JHS to cache more jobs if many are small.

> 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]

Reply via email to