I configured ConsistentId equal to hostname for each node and this issue is
not reproduced anymore
One more strange behaviour I noticed is that one of client nodes gets
disconnected after one of server nodes goes down.
I have reconnect logic in place so it comes back later but is such
behaviour expected?
Not sure whether it is related with consistent IDs but I didn't see it
earlier...
BTW, after configuring consistent IDs I see them in "control.bat
--baseline" output only.
Visor output and server logs still show generated IDs
That looks confusing...
<control.bat output>
Cluster state: active
Current topology version: 7
Baseline nodes:
ConsistentID=V-HP-LK-DCN01, STATE=ONLINE
ConsistentID=V-HP-LK-DCN02, STATE=ONLINE
<Visor output>
9871EAFF(@n0) | Server
BBA63A1F(@n2) | Server
1DEDB701(@n1) | Client
5931AF53(@n3) | Client
<server logs>
logs\v-hp-lk-dcn01\ignite.log:383:>>> Local node
[ID=9871EAFF-73AF-4E2E-99A7-8F5DF58A3C40, order=1, clientMode=false]
logs\v-hp-lk-dcn02\ignite.log:274:>>> Local node
[ID=BBA63A1F-559E-461C-B7ED-B10CE3DE33CC, order=7, clientMode=false]
On Tue, Jun 12, 2018 at 9:48 PM, Olexandr K <[email protected]>
wrote:
> Hi, Dmitry
>
> server nodes start with ignite-server.xml and client nodes with
> ignite-client.xml
> server node hosts: v-hp-lk-dcn01, v-hp-lk-dcn02
>
> <ignite-client.xml>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd">
>
> <bean id="ignite.cfg"
> class="org.apache.ignite.configuration.IgniteConfiguration">
>
>
> <property name="workDirectory" value="c:\\work\\ignite\\workdir"
> />
>
> <property name="metricsLogFrequency" value="0" />
>
> <property name="systemThreadPoolSize" value="2" />
> <property name="publicThreadPoolSize" value="1" />
> <property name="queryThreadPoolSize" value="1" />
> <property name="serviceThreadPoolSize" value="1" />
> <property name="stripedPoolSize" value="1" />
> <property name="dataStreamerThreadPoolSize" value="1" />
>
> <property name="sslContextFactory">
> <bean class="com.xxx.SslContextFactory">
> <property name="keyStoreFilePath"
> value="\\\\s-hp-fs01\\dev$\\config\\keystore.jks"
> />
> <property name="keyStorePassword" value="null" /> <!--
> password loaded from application.properties -->
> <property name="trustManagers">
> <bean class="org.apache.ignite.ssl.SslContextFactory"
> factory-method="getDisabledTrustManager" />
> </property>
> </bean>
> </property>
>
> <property name="gridLogger">
> <bean class="org.apache.ignite.logger.log4j2.Log4J2Logger">
> <constructor-arg type="java.lang.String"
> value="\\\\S-hp-fs01\\dev$\\config\\log4j2.xml"/>
> </bean>
> </property>
>
> <property name="cacheConfiguration">
> <list>
> <bean class="org.apache.ignite.configuration.
> CacheConfiguration">
> <property name="name" value="RefreshToken"/>
> <property name="dataRegionName"
> value="auth_durable_region"/>
> <property name="atomicityMode" value="ATOMIC"/>
> <property name="writeSynchronizationMode"
> value="FULL_ASYNC"/>
> <property name="cacheMode" value="PARTITIONED"/>
> <property name="backups" value="1"/>
> <property name="eagerTtl" value="true"/>
> </bean>
> <!-- ... other caches ... -->
> </list>
> </property>
>
> <property name="dataStorageConfiguration">
> <bean class="org.apache.ignite.configuration.
> DataStorageConfiguration">
> <property name="metricsEnabled" value="true" />
> <property name="storagePath" value="d:\\ignite-data"/>
> <property name="walPath" value="f:\\ignite-wal"/>
> <property name="walArchivePath" value="f:\\ignite-wal\\
> archive"/>
> <property name="defaultDataRegionConfiguration">
> <bean class="org.apache.ignite.configuration.
> DataRegionConfiguration">
> <property name="name" value="default_mem_region"/>
> <property name="persistenceEnabled" value="false"/>
> <property name="maxSize" value="#{4L * 1024 * 1024
> * 1024}"/> <!-- 4 GB -->
> <property name="metricsEnabled" value="true" />
> </bean>
> </property>
> <property name="dataRegionConfigurations">
> <list>
> <bean class="org.apache.ignite.configuration.
> DataRegionConfiguration">
> <property name="name"
> value="auth_durable_region"/>
> <property name="persistenceEnabled"
> value="true"/>
> <property name="maxSize" value="#{4L * 1024 *
> 1024 * 1024}"/> <!-- 4 GB -->
> <property name="metricsEnabled" value="true"
> />
> </bean>
> </list>
> </property>
> </bean>
> </property>
>
> <property name="discoverySpi">
> <bean class="org.apache.ignite.spi.
> discovery.tcp.TcpDiscoverySpi">
> <property name="localPort" value="47500"/>
> <property name="localPortRange" value="4"/>
> <property name="ipFinder">
> <bean class="org.apache.ignite.spi.
> discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
> <property name="addresses">
> <list>
> <value>v-hp-lk-dcn01:47500..47504</value>
> <value>v-hp-lk-dcn02:47500..47504</value>
> </list>
> </property>
> </bean>
> </property>
> </bean>
> </property>
>
> </bean>
> </beans>
>
> <ignite-server.xml>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd">
>
> <bean id="ignite.cfg" class="org.apache.ignite.configuration.
> IgniteConfiguration">
>
> <property name="workDirectory" value="c:\\work\\ignite\\workdir"
> />
>
> <property name="sslContextFactory">
> <bean class="com.xxx.SslContextFactory">
> <property name="keyStoreFilePath"
> value="\\\\s-hp-fs01\\dev$\\config\\keystore.jks" />
> <property name="keyStorePassword" value="null" /> <!--
> password loaded from application.properties -->
> <property name="trustManagers">
> <bean class="org.apache.ignite.ssl.SslContextFactory"
> factory-method="getDisabledTrustManager" />
> </property>
> </bean>
> </property>
>
> <property name="gridLogger">
> <bean class="org.apache.ignite.logger.log4j2.Log4J2Logger">
> <constructor-arg type="java.lang.String"
> value="\\\\S-hp-fs01\\dev$\\config\\ignite-log4j2.xml"
> />
> </bean>
> </property>
>
> <property name="cacheConfiguration">
> <list>
> <bean class="org.apache.ignite.configuration.
> CacheConfiguration">
> <property name="name" value="RefreshToken" />
> <property name="dataRegionName"
> value="auth_durable_region" />
> <property name="atomicityMode" value="ATOMIC" />
> <property name="writeSynchronizationMode"
> value="FULL_ASYNC" />
> <property name="cacheMode" value="PARTITIONED" />
> <property name="backups" value="1" />
> <property name="eagerTtl" value="true" /> <!-- true:
> clean expired items in background, false: on next access -->
> </bean>
> <!-- ... other caches ... -->
> </list>
> </property>
>
> <property name="dataStorageConfiguration">
> <bean class="org.apache.ignite.configuration.
> DataStorageConfiguration">
> <property name="metricsEnabled" value="true" />
> <property name="storagePath" value="d:\\ignite-data" />
> <property name="walPath" value="f:\\ignite-wal" />
> <property name="walArchivePath"
> value="f:\\ignite-wal\\archive"
> />
> <property name="defaultDataRegionConfiguration">
> <bean class="org.apache.ignite.configuration.
> DataRegionConfiguration">
> <property name="name" value="default_mem_region" />
> <property name="persistenceEnabled" value="false"
> />
> <property name="maxSize" value="#{4L * 1024 * 1024
> * 1024}" /> <!-- 4 GB -->
> <property name="metricsEnabled" value="true" />
> </bean>
> </property>
> <property name="dataRegionConfigurations">
> <list>
> <bean class="org.apache.ignite.configuration.
> DataRegionConfiguration">
> <property name="name"
> value="auth_durable_region" />
> <property name="persistenceEnabled"
> value="true" />
> <property name="maxSize" value="#{4L * 1024 *
> 1024 * 1024}" /> <!-- 4 GB -->
> <property name="metricsEnabled" value="true" />
> </bean>
> </list>
> </property>
> </bean>
> </property>
>
> <property name="discoverySpi">
> <bean class="org.apache.ignite.spi.
> discovery.tcp.TcpDiscoverySpi">
> <property name="localPort" value="47500" />
> <property name="localPortRange" value="4" />
> <property name="ipFinder">
> <bean
> class="org.apache.ignite.spi.
> discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
> <property name="addresses">
> <list>
> <value>v-hp-lk-dcn01:47500..47504</value>
> <value>v-hp-lk-dcn02:47500..47504</value>
> </list>
> </property>
> </bean>
> </property>
> </bean>
> </property>
>
> </bean>
> </beans>
>
>
>
> On Tue, Jun 12, 2018 at 7:03 PM, dkarachentsev <[email protected]
> > wrote:
>
>> Hi,
>>
>> What IgniteConfiguration do you use? Could you please share it?
>>
>> Thanks!
>> -Dmitry
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>
>
>