Hi!
So it does not matter what node you restart ? it's always that one that
keeps the data ?
Are all 4 nodes part of the baseline topology ?
I pretty much have the same setup but with 3 nodes and have not had any
problems at all, not sure what it could be ?
If you turn on all logging you will see all it does at startup and can
see if there is something weird going on, it's lots of information but
it usually gives a good indication if there is any problem, nothing else
in the logs ? if the nodes clear everything at startup there should be
something in the logs.
Mikael
Den 2019-11-16 kl. 04:16, skrev KR Kumar:
Hi Guys - I have a four node cluster with native persistence enabled.
Its a partitioned cache and sync rebalance is enabled. When I restart
the cluster the first node that starts retain the data and all the
other nodes data is deleted and all the ignite data files are turned
into 4096 byte files. Am I missing something? or some configuration
that I missing.
Following is the cache configuration:
CacheConfiguration<Long, byte[]> cacheConfig = new
CacheConfiguration<Long, byte[]>();
cacheConfig.setCacheMode(CacheMode.PARTITIONED);
cacheConfig.setRebalanceMode(CacheRebalanceMode.SYNC);
//cacheConfig.setRebalanceDelay(300000);
cacheConfig.setName("eventCache-"+ tenantRunId+ "-"+ tenantId);
cacheConfig.setBackups(1);
cacheConfig.setAtomicityMode(CacheAtomicityMode.ATOMIC);
cacheConfig.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC);
IgniteCache<Long, byte[]> cache =
IgniteContextWrapper.getInstance().getEngine()
.getOrCreateCache(cacheConfig);
Here is the configuration of ignite
<property name="configuration">
<bean id="ignite.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="workDirectory" value="${work.space}"></property>
<property name="peerClassLoadingEnabled" value="true" />
<property name="communicationSpi">
<bean class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
<property name="connectTimeout" value="10000"></property>
<property name="socketWriteTimeout" value="30000"></property>
</bean>
</property>
<property name="failureDetectionTimeout" value="120000"></property>
<property name="rebalanceThreadPoolSize" value="8"></property>
<property name="publicThreadPoolSize" value="64" />
<property name="systemThreadPoolSize" value="32" />
<property name="dataStorageConfiguration">
<bean class="org.apache.ignite.configuration.DataStorageConfiguration">
<property name="defaultDataRegionConfiguration">
<bean class="org.apache.ignite.configuration.DataRegionConfiguration">
<property name="initialSize" value="#{512L * 1024 * 1024}"></property>
<property name="maxSize" value="#{20L * 1024 * 1024 * 1024}" />
<property name="persistenceEnabled" value="true" />
<property name="checkpointPageBufferSize" value="#{1024 * 1024 * 1024}" />
</bean>
</property>
<!-- <property name="checkpointFrequency" value="600000" />
--><property name="pageSize" value="#{4 * 1024}" />
<property name="storagePath" value="${grid.data}" />
<property name="walPath" value="${grid.wal}" />
<property name="walMode" value="BACKGROUND" />
<property name="walFlushFrequency" value="10000"></property>
</bean>
</property>
Any quick pointers ??
Thanx and Regards,
KR Kumar