Hi!
You only need persistence for the default data region, you can put your
caches in a different data region without persistence, that's what I do.
Mikael
Like:
<!-- Default data region -->
<property name="defaultDataRegionConfiguration">
<bean
class="org.apache.ignite.configuration.DataRegionConfiguration">
<property name="persistenceEnabled" value="true"/>
<property name="checkpointPageBufferSize"
value="#{32L * 1024 * 1024}"/>
<property name="initialSize" value="#{100L * 1024 *
1024}"/>
<property name="maxSize" value="#{200L * 1024 * 1024}"/>
<property name="metricsEnabled" value="true"/>
</bean>
</property>
<property name="dataRegionConfigurations">
<list>
<bean
class="org.apache.ignite.configuration.DataRegionConfiguration">
<property name="name" value="REGION_A"/>
<property name="initialSize" value="#{400L * 1024 *
1024}"/>
<property name="maxSize" value="#{600L * 1024 *
1024}"/>
<property name="persistenceEnabled" value="true"/>
<property name="checkpointPageBufferSize"
value="#{128L * 1024 * 1024}"/>
<property name="metricsEnabled" value="true"/>
</bean>
<!-- Region for data storage -->
<bean
class="org.apache.ignite.configuration.DataRegionConfiguration">
<property name="name" value="REGION_B"/>
<property name="initialSize" value="#{25L * 1024 *
1024}"/>
<property name="maxSize" value="#{50L * 1024 * 1024}"/>
<property name="persistenceEnabled" value="false"/>
<property name="checkpointPageBufferSize"
value="#{10L * 1024 * 1024}"/>
<property name="metricsEnabled" value="true"/>
</bean>
<!-- Region for data storage non persistent -->
<bean
class="org.apache.ignite.configuration.DataRegionConfiguration">
<property name="name" value="REGION_C"/>
<property name="initialSize" value="#{50L * 1024 *
1024}"/>
<property name="maxSize" value="#{200L * 1024 *
1024}"/>
<property name="persistenceEnabled" value="true"/>
<property name="checkpointPageBufferSize"
value="#{10L * 1024 * 1024}"/>
<property name="metricsEnabled" value="true"/>
</bean>
</list>
</property>
</bean>
</property>
Den 2019-06-04 kl. 10:34, skrev Jeff Jiao:
Hi Igniters,
We want to enable the authentication feature for our Ignite cluster, but
currently, it still requires us to enable Ignite native persistence which is
not suitable for our use case.
Is there a way to enable persistence in IgniteConfiguration but disabled for
all the caches inside?
If not, what's the plan to relax this requirement? Will it be in recent
release? we are looking forward this...
Thanks,
Jeff
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/