You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by joseheitor <jo...@heitorprojects.com> on 2018/09/02 08:50:06 UTC

Re: configuration for some persistent and some non-persistent caches

Hi Denis,

I am struggling to get this properly configured for a persistent cache
(DATASTORE) and a non-persistent cache (SESSIONCACHE). Here is my config ...
(what am I doing wrong?):

    <bean id="ignite.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">

      <property name="dataStorageConfiguration">
        <bean
class="org.apache.ignite.configuration.DataStorageConfiguration">
          <property name="dataRegionConfigurations">
            <list>
              <bean
class="org.apache.ignite.configuration.DataRegionConfiguration">
                <property name="name" value="Persistent_Region"/>
                <property name="initialSize" value="#{100L * 1024 * 1024}"/>
                <property name="maxSize" value="#{500L * 1024 * 1024}"/>
                <property name="persistenceEnabled" value="true"/>
              </bean>
            </list>
          </property>
        </bean>
      </property>
      <property name="cacheConfiguration">
        <list>
            <bean
class="org.apache.ignite.configuration.CacheConfiguration">
                <property name="dataRegionName" value="Persistent_Region"/>
                <property name="name" value="DATASTORE"/>
            </bean>
            <bean
class="org.apache.ignite.configuration.CacheConfiguration">
                <property name="name" value="SESSIONCACHE"/>
            </bean>
        </list>
      </property>
...      




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: configuration for some persistent and some non-persistent caches

Posted by Вячеслав Коптилин <sl...@gmail.com>.
I meant `datastore` cache of course )

Thanks,
S.

ср, 5 сент. 2018 г. в 19:04, Вячеслав Коптилин <sl...@gmail.com>:

> Hello,
>
> I just tried the configuration, you provided, and it works as expected.
> I mean that only `datasource` cache persists its own data.
> Please make sure you clean up working directory before testing.
>
> Thanks,
> S.
>
>
> вс, 2 сент. 2018 г. в 11:50, joseheitor <jo...@heitorprojects.com>:
>
>> Hi Denis,
>>
>> I am struggling to get this properly configured for a persistent cache
>> (DATASTORE) and a non-persistent cache (SESSIONCACHE). Here is my config
>> ...
>> (what am I doing wrong?):
>>
>>     <bean id="ignite.cfg"
>> class="org.apache.ignite.configuration.IgniteConfiguration">
>>
>>       <property name="dataStorageConfiguration">
>>         <bean
>> class="org.apache.ignite.configuration.DataStorageConfiguration">
>>           <property name="dataRegionConfigurations">
>>             <list>
>>               <bean
>> class="org.apache.ignite.configuration.DataRegionConfiguration">
>>                 <property name="name" value="Persistent_Region"/>
>>                 <property name="initialSize" value="#{100L * 1024 *
>> 1024}"/>
>>                 <property name="maxSize" value="#{500L * 1024 * 1024}"/>
>>                 <property name="persistenceEnabled" value="true"/>
>>               </bean>
>>             </list>
>>           </property>
>>         </bean>
>>       </property>
>>       <property name="cacheConfiguration">
>>         <list>
>>             <bean
>> class="org.apache.ignite.configuration.CacheConfiguration">
>>                 <property name="dataRegionName"
>> value="Persistent_Region"/>
>>                 <property name="name" value="DATASTORE"/>
>>             </bean>
>>             <bean
>> class="org.apache.ignite.configuration.CacheConfiguration">
>>                 <property name="name" value="SESSIONCACHE"/>
>>             </bean>
>>         </list>
>>       </property>
>> ...
>>
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>
>

Re: configuration for some persistent and some non-persistent caches

Posted by Вячеслав Коптилин <sl...@gmail.com>.
Hello,

I just tried the configuration, you provided, and it works as expected.
I mean that only `datasource` cache persists its own data.
Please make sure you clean up working directory before testing.

Thanks,
S.


вс, 2 сент. 2018 г. в 11:50, joseheitor <jo...@heitorprojects.com>:

> Hi Denis,
>
> I am struggling to get this properly configured for a persistent cache
> (DATASTORE) and a non-persistent cache (SESSIONCACHE). Here is my config
> ...
> (what am I doing wrong?):
>
>     <bean id="ignite.cfg"
> class="org.apache.ignite.configuration.IgniteConfiguration">
>
>       <property name="dataStorageConfiguration">
>         <bean
> class="org.apache.ignite.configuration.DataStorageConfiguration">
>           <property name="dataRegionConfigurations">
>             <list>
>               <bean
> class="org.apache.ignite.configuration.DataRegionConfiguration">
>                 <property name="name" value="Persistent_Region"/>
>                 <property name="initialSize" value="#{100L * 1024 *
> 1024}"/>
>                 <property name="maxSize" value="#{500L * 1024 * 1024}"/>
>                 <property name="persistenceEnabled" value="true"/>
>               </bean>
>             </list>
>           </property>
>         </bean>
>       </property>
>       <property name="cacheConfiguration">
>         <list>
>             <bean
> class="org.apache.ignite.configuration.CacheConfiguration">
>                 <property name="dataRegionName" value="Persistent_Region"/>
>                 <property name="name" value="DATASTORE"/>
>             </bean>
>             <bean
> class="org.apache.ignite.configuration.CacheConfiguration">
>                 <property name="name" value="SESSIONCACHE"/>
>             </bean>
>         </list>
>       </property>
> ...
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>