On the client disconnection: The client is connected to one of the server nodes, using it as a sort of gateway to the cluster. If the gateway server fails, the client supposed to attempt to reconnect to other IPs. Right now I can’t say for sure whether it does so indefinitely, or has some timeout for it. Perhaps you’ve changed networkTimeout or something, and after that it doesn’t reconnect?
On the IDs in Visor: Somewhat confusingly, ConsistentID is NOT NodeID. Visor shows NodeID and not ConsistentID. NodeID is regenerated each time a node restarts and it is always a UUID. ConsistentID is a UUID by default, but it doesn’t have to be the same as NodeID and doesn’t have to have a form of UUID – any string works (and even any Object with an idempotent toString(), but tsss - don’t tell anyone!). Stan From: Olexandr K Sent: 13 июня 2018 г. 0:58 To: user@ignite.apache.org Subject: Re: Baseline topology issue when restarting server nodes one by one 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 <olexandr.kundire...@gmail.com> 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 <dkarachent...@gridgain.com> wrote: Hi, What IgniteConfiguration do you use? Could you please share it? Thanks! -Dmitry -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/