xkrogen commented on PR #4209:
URL: https://github.com/apache/hadoop/pull/4209#issuecomment-1322361104

   I am -1 on the PR as-is. We have publicly exposed the current config 
`dfs.journalnode.edit-cache-size.bytes`; we can't just rename it and change the 
behavior now. I also think there is a lot of value in being able to configure 
the cache size exactly, rather than as a fraction, but I do recognize the value 
in using a ratio as a helpful default (one less knob to tune). I would propose:
   * _Add_ (not replace) a new config 
`dfs.journalnode.edit-cache-size.fraction` (or `.ratio`? but either way I think 
we should maintain the `edit-cache-size` prefix)
   * If `edit-cache-size.bytes` is set, use that value. Otherwise, use the 
value of `edit-cache-size.fraction * Runtime#maxMemory()`, which has a default 
value set.
   * I would suggest 0.5 rather than 0.3 for the default value of `fraction` 
but am open to discussion there.
   
   This still does change the default behavior slightly, since before you would 
get a 1GB cache and now you get `-Xmx * 0.5`, but there is an easy way to 
preserve the old behavior and if you've explicitly configured the cache size 
(which you probably did, if you're using the feature) then there is no change.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to