Reputation: 61
I've created an partitioned persistent Ignite cache with SQL DDL. By default the backup setting is "0", now I want to add backup with size "2" per node (we have 3 nodes). In the ignite server nodes I edited the configuration xml file to look like this:
<bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="cacheConfiguration">
<list>
<bean class="org.apache.ignite.configuration.CacheConfiguration">
.
.
</bean>
.
.
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="ourCache"/>
<property name="cacheMode" value="PARTITIONED"/>
<property name="backups" value="2"/>
<property name="groupName" value="grp" />
<property name="partitionLossPolicy" value="READ_ONLY_SAFE"/>
</bean>
</list>
</property>
Unfortunately in the ignite visior when I invoke to see the configuration I see that the "Affinity Backups" is still 0. I've checked the "cache -a" statistics where you can usually see the backup records per node - still 0.
How can I add backups for existing caches? The baseline is used in production and there are >100M records already.
Upvotes: 0
Views: 582
Reputation: 19313
The only way of changing backup factor or most of the other cache configuration properties is to create new cache, copy over all data to it from the old cache (if needed) and destroy the old cache.
Upvotes: 1