Hi Guys - I have this problem that's very recent and nothing significant
changed in the system but all of a sudden still takes lot of time to
restart. I do a graceful shutdown of one of the nodes and restart the node
after some updates. Now the ignite takes almost 30 minutes to initiate and
that's killing us.
Here is the snippet of my ignite configuration:
<bean id="igniteContainer" class="org.apache.ignite.IgniteSpringBean"
depends-on="dataSource">
<property name="configuration">
<bean id="ignite.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="workDirectory"
value="${work.space}"></property>
<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="writeThrottlingEnabled" value="true"></property>
<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" />
</bean>
</property>
<property
name="dataRegionConfigurations">
<list>
<bean
class="org.apache.ignite.configuration.DataRegionConfiguration">
<property name="name" value="indexMainDataRegion" />
<property name="initialSize" value="#{512L * 1024 * 1024}" />
<property name="maxSize" value="#{20L * 1024 * 1024 * 1024}" />
<property name="persistenceEnabled" value="true" />
</bean>
<bean
class="org.apache.ignite.configuration.DataRegionConfiguration">
<property name="name" value="indexDtlDataRegion" />
<property name="initialSize" value="#{512L * 1024 * 1024}" />
<property name="maxSize" value="#{20L * 1024 * 1024 * 1024}" />
<property name="persistenceEnabled" value="true" />
</bean>
</list>
</property>
<property name="pageSize"
value="#{4 * 1024}" />
<property name="storagePath"
value="${grid.data}" />
<property name="walPath"
value="${grid.wal}" />
<property name="walArchivePath"
value="${grid.wal}" />
<property name="walMode"
value="BACKGROUND" />
<property
name="walFlushFrequency" value="10000"></property>
</bean>
</property>
Here is the code snippet of how we create the cache
CacheConfiguration<Long, byte[]> cacheConfig = new
CacheConfiguration<>();
cacheConfig.setCacheMode(CacheMode.PARTITIONED);
cacheConfig.setRebalanceMode(CacheRebalanceMode.ASYNC);
cacheConfig.setRebalanceDelay(60000);
cacheConfig.setName("eventCache-" + xxx + "-" + xxx);
cacheConfig.setBackups(1);
cacheConfig.setAtomicityMode(CacheAtomicityMode.ATOMIC);
cacheConfig.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC);
We start the ignite like the following
context = new ClassPathXmlApplicationContext("xxx.xml");
logger.info("Cluster kernel is initializing ...Done");
engine = (Ignite) context.getBean("igniteContainer");
engine.cluster().active(true);
Thanx and Regards,
KR Kumar
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/