buck-http-cache icon indicating copy to clipboard operation
buck-http-cache copied to clipboard

No way to manage memory usage

Open cwoodwar6 opened this issue 8 years ago • 4 comments

This is a follow up to #4 since the solution proposed there isn't ideal for us. Our keys are generally small and the values are big which matches OFFHEAP_VALUES best so OFFHEAP_TIERED isn't ideal for us. We also use a 2 day retention policy.

Our issue in particular is that we exceed our memory capacity and are being killed by the system.

Ideally, we'd like to see a way to set a max memory usage so that we aren't being killed by the system.

cwoodwar6 avatar Aug 10 '17 18:08 cwoodwar6

apologies for the delay, I was out on vacation. Let me make this change(among other things) this week (mostly by Thursday).

dhaval2025 avatar Aug 15 '17 22:08 dhaval2025

I pushed the change where you can now set the cacheMemoryMode using configs.

dhaval2025 avatar Aug 23 '17 20:08 dhaval2025

@dhaval2025 Thanks. Though, that change does not seem to address the max memory usage issue that @cwoodwar6 is dealing with. Unless I'm missing something... ? offHeapStorageSize does not seem to make a difference.

wirehat avatar Aug 28 '17 17:08 wirehat

@wirehat when you use cacheMemoryMode= OFFHEAP_VALUES, according to ignite documentaion offHeapStorageSize will not be respected. You need to change the mode to either ONHEAP_TIERED or OFFHEAP_TIERED.

dhaval2025 avatar Aug 29 '17 00:08 dhaval2025