Hello!

Data is always stored in offheap. Eviction strictly controls onheap cache.
Once data is evicted from onheap it is available in offheap.

Regards,
-- 
Ilya Kasnacheev


пн, 8 июл. 2019 г. в 17:31, Andrey Dolmatov <[email protected]>:

> We plan to use persistence in production. I didn't understand,
> CacheConfiguration.EvictionPolicy specify heap->offheap eviction,
> offheap->persistence eviction or both. It's not clear for me.
>
> On Mon, Jul 8, 2019, 5:19 PM Ilya Kasnacheev <[email protected]>
> wrote:
>
>> Hello!
>>
>> Oops, I was wrong. This is indeed the wrong setting.
>>
>> Have you tried specifying evictionPolicy? I think it is the one that
>> controls eviction from onheap cache. You can put a LruEvictionPolicy of 100
>> 000 here, for example.
>>
>> Regards,
>> --
>> Ilya Kasnacheev
>>
>>
>> пн, 8 июл. 2019 г. в 17:09, Andrey Dolmatov <[email protected]>:
>>
>>> No, because we didnt specify QueryEntity.
>>> Does onheapCacheEnabled uses for SQL only?
>>> What default value for sqlOnheapCacheMaxSize?
>>>
>>> пн, 8 июл. 2019 г. в 17:05, Ilya Kasnacheev <[email protected]>:
>>>
>>>> Hello!
>>>>
>>>> Have you tried also specifying sqlOnheapCacheMaxSize? You can specify
>>>> 100 000 if you like.
>>>>
>>>> Regards,
>>>> --
>>>> Ilya Kasnacheev
>>>>
>>>>
>>>> пн, 8 июл. 2019 г. в 17:01, Andrey Dolmatov <[email protected]>:
>>>>
>>>>> We use simple replicated KV cache.
>>>>> We try to upload 32 000 000 small records <Long, Long> to it (about
>>>>> 6Gb in data region, persistance disabled). We load data using 
>>>>> DataStreamer.
>>>>>
>>>>> If we set onheapCacheEnabled=false, server node consumes heap about
>>>>> 500 Mb.
>>>>> If we set onheapCacheEnabled=true, server node consumes heap about 6
>>>>> Gb.
>>>>>
>>>>> Why DataStreamer uses heap memory to load data? Why on-heap size is
>>>>> unlimited (not just 100.000 records)? What default on-heap eviction 
>>>>> policy?
>>>>>
>>>>> <bean class="org.apache.ignite.configuration.CacheConfiguration">
>>>>>
>>>>>                     <property name="cacheMode" value="REPLICATED"/>
>>>>>                     <property name="onheapCacheEnabled" value="true"/>
>>>>>                     <property name="copyOnRead" value="false"/>
>>>>>
>>>>> Thanks!
>>>>>
>>>>

Reply via email to