baohe-zhang commented on pull request #28412:
URL: https://github.com/apache/spark/pull/28412#issuecomment-624445143


   Another way is to keep a thread-safe variable called availableMemory in 
FsHistoryProvider. The initial value can be set as a percentage of Xmx. When we 
parse a file via hybrid kvstore, we subtract an approximate memory usage from 
availableMemory, and when the hybrid store switches to leveldb, we add back 
this approximate memory usage. When availableMemory is below a threshold, we 
can disable hybridKVstore.


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to