You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by breischl <br...@gmail.com> on 2018/05/23 15:06:58 UTC
Setting DefaultDataRegion to zero size
I'm working on a project where we're using Ignite primarily as a cache for
large & complex objects that we need in their entirety. Based on reading
elsewhere it seems like our performance would be best if we didn't use
off-heap storage at all. To that end, would it make sense (or even work) for
me to effectively disable off-heap sotrage by setting the default DataRegion
to a zero size? Something roughly like the following:
<property name="dataStorageConfiguration">
<bean class="org.apache.ignite.configuration.DataStorageConfiguration">
<property name="defaultDataRegionConfiguration">
<bean class="org.apache.ignite.configuration.DataRegionConfiguration">
<property name="name" value="Default_Region"/>
<property name="maxSize" value="0"/>
</bean>
</property>
</bean>
</property>
Thanks!
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Setting DefaultDataRegion to zero size
Posted by Evgenii Zhuravlev <e....@gmail.com>.
There is a validation for region size, so, you can't even create region
with the less than 10 mb size. Off-heap can't be disabled at all, it's a
core part of data grid architecture.
Evgenii
2018-05-23 22:13 GMT+03:00 breischl <br...@gmail.com>:
> Hi,
> Thanks for the reply. We have enabled onHeap cache, and I know there's no
> way to explicitly disable off heap storage. But if I set the default
> DataRegion to zero size will that /effectively/ disable off-heap storage
> for
> all of our data? And would doing that cause anything else to fail?
>
> Thanks!
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>
Re: Setting DefaultDataRegion to zero size
Posted by breischl <br...@gmail.com>.
Hi,
Thanks for the reply. We have enabled onHeap cache, and I know there's no
way to explicitly disable off heap storage. But if I set the default
DataRegion to zero size will that /effectively/ disable off-heap storage for
all of our data? And would doing that cause anything else to fail?
Thanks!
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Setting DefaultDataRegion to zero size
Posted by Evgenii Zhuravlev <e....@gmail.com>.
Hi,
You can't disable off-heap storage since version 2.0. However, you can use
additional onHeap cache for the values stored in offheap using
CacheConfiguration.onHeapCacheEnabled:
https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/configuration/CacheConfiguration.html#isOnheapCacheEnabled--
Evgenii
2018-05-23 18:06 GMT+03:00 breischl <br...@gmail.com>:
> I'm working on a project where we're using Ignite primarily as a cache for
> large & complex objects that we need in their entirety. Based on reading
> elsewhere it seems like our performance would be best if we didn't use
> off-heap storage at all. To that end, would it make sense (or even work)
> for
> me to effectively disable off-heap sotrage by setting the default
> DataRegion
> to a zero size? Something roughly like the following:
>
> <property name="dataStorageConfiguration">
> <bean class="org.apache.ignite.configuration.DataStorageConfiguration">
>
> <property name="defaultDataRegionConfiguration">
> <bean class="org.apache.ignite.configuration.
> DataRegionConfiguration">
> <property name="name" value="Default_Region"/>
>
>
> <property name="maxSize" value="0"/>
>
> </bean>
> </property>
> </bean>
> </property>
>
> Thanks!
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>