Re: OFFHEAP_VALUES ignoring max memory limit

2016-09-23 Thread vkulichenko
Hi,

Expiration comes from JCache API, while evictions are added by Ignite. And
actually I think it's correct that these are different APIs, because
features are different.

As for the custom expiration, you can try to implement your own
ExpiryPolicy.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/OFFHEAP-VALUES-ignoring-max-memory-limit-tp7766p7934.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: OFFHEAP_VALUES ignoring max memory limit

2016-09-15 Thread Anmol Rattan
Also, why there are two things eviction and expiration policy. We could
have kept one class with exclusive property based on time (expiration) and
eviction based on size. Regarding expiration, I have a specific requirement
to keep 3 days worth cache data. However, that shall be rolled over weekend
so weekend shall not be counted else on Monday I will only have 1 day worth
of data (as nothing arrived on weekend). I there a way or does it look like
a proposal for a new feature. E.g for cache carry forward.
Tu We Th
We Th Fr
Th Fr Mo
Fr Mo Tu
Mo Tu Wd

On Sep 16, 2016 12:49 AM, "vkulichenko" 
wrote:

Hi,

In OFFHEAP_VALUES mode entries are actually stored on-heap, but instead of
actual values these entries have pointers to off-heap memory. Example in the
doc in incorrect, you should configure eviction policy to limit the cache
size: http://apacheignite.gridgain.org/v1.0/docs/evictions

-Val



--
View this message in context: http://apache-ignite-users.
70518.x6.nabble.com/OFFHEAP-VALUES-ignoring-max-memory-
limit-tp7766p7783.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: OFFHEAP_VALUES ignoring max memory limit

2016-09-15 Thread vkulichenko
Hi,

In OFFHEAP_VALUES mode entries are actually stored on-heap, but instead of
actual values these entries have pointers to off-heap memory. Example in the
doc in incorrect, you should configure eviction policy to limit the cache
size: http://apacheignite.gridgain.org/v1.0/docs/evictions

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/OFFHEAP-VALUES-ignoring-max-memory-limit-tp7766p7783.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.