Hello! I do not recommend doing activation right away after every node startup. It is a known anti-pattern. Please try removing this line, doing activation via control.sh.
Regards, -- Ilya Kasnacheev вт, 18 авг. 2020 г. в 08:01, Ali Bagewadi <muhammadali.bagew...@siemens.com >: > Hello, > Yes the local node(joining node) is left out everytime from baseline > topology. > I have mentioned steps to reproduce it.Also I have attached config files > and > C++ code used to start ignite. > > 1)I have two server nodes i.e one on local machine and one on remote host. > 2)When I start the first node the local node is added in the Baseline > topology:Here adc1c71b-c21b-47aa-8be6-6fa5ebaaa035 is the local node. > > Current topology version: 2 (Coordinator: > ConsistentId=adc1c71b-c21b-47aa-8be6-6fa5ebaaa035, Order=1) > > Baseline nodes: > ConsistentId=adc1c71b-c21b-47aa-8be6-6fa5ebaaa035, State=ONLINE, > Order=1 > > -------------------------------------------------------------------------------- > Number of baseline nodes: 1 > > Other nodes: > ConsistentId=5a9f4e0d-fba3-4786-aa61-936d2f207333, Order=2 > > 3)However when I start the second node on remote host the local node is not > included in the Baseline Topology.As per my observance the joining node > faces this problem.(Here the local node is > 5a9f4e0d-fba3-4786-aa61-936d2f207333 which is not included in baseline > topology) > Current topology version: 2 (Coordinator: > ConsistentId=adc1c71b-c21b-47aa-8be6-6fa5ebaaa035, Order=1) > > Baseline nodes: > ConsistentId=adc1c71b-c21b-47aa-8be6-6fa5ebaaa035, State=ONLINE, > Order=1 > > -------------------------------------------------------------------------------- > Number of baseline nodes: 1 > > Other nodes: > ConsistentId=5a9f4e0d-fba3-4786-aa61-936d2f207333, Order=2 > Number of other nodes: 1 > > > 4)Everything works fine when I add the local node using control.sh add > command. > > We are using Apache Ignite with C++.Below is the snippet of starting ignite > from C++ code. > IgniteConfiguration cfg; > cfg.springCfgPath = std::string("/home/dsudev/DataBaseConfig.xml"); > > /* Start a node to access DataBase */ > Ignite node = Ignition::Start(cfg); > node.SetActive(true); > > /* Get cache instance */ > mCache = node.GetOrCreateCache<tKey, DBStorage>(CACHE_NAME); > > Below are the config files: > > Config file for local node: > > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:util="http://www.springframework.org/schema/util" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > http://www.springframework.org/schema/util > http://www.springframework.org/schema/util/spring-util.xsd"> > <bean id="grid.cfg" > class="org.apache.ignite.configuration.IgniteConfiguration"> > > <property name="peerClassLoadingEnabled" value="true"/> > > > <property name="dataStorageConfiguration"> > <bean > class="org.apache.ignite.configuration.DataStorageConfiguration"> > <property name="defaultDataRegionConfiguration"> > <bean > class="org.apache.ignite.configuration.DataRegionConfiguration"> > <property name="persistenceEnabled" > value="true"/> > <property name="initialSize" value="#{100L * > 1024 > * 1024}"/> > <property name="maxSize" value="#{400L * 1024 * > 1024}"/> > </bean> > </property> > <property name="pageSize" value="#{4 * 1024}"/> > <property name="storagePath" > value="/media/linux_hdd/keymanagementdata"/> > <property name="walPath" > value="/media/linux_hdd/keymanagementdata/db/wal"/> > <property name="walArchivePath" > value="/media/linux_hdd/keymanagementdata/db/wal/archive"/> > </bean> > </property> > > <property name="cacheConfiguration"> > <bean > class="org.apache.ignite.configuration.CacheConfiguration"> > > <property name="name" value="DSU_DataBase"/> > > <property name="cacheMode" value="REPLICATED"/> > > </bean> > </property> > > > > <property name="discoverySpi"> > <bean > class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> > <property name="ipFinder"> > > > > <bean > > class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder"> > <property name="addresses"> > <list> > > <value>127.0.0.1</value> > <value>192.168.111.112:7912</value> > </list> > </property> > </bean> > </property> > </bean> > </property> > </bean> > </beans> > > > Config file for remote node: > > > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:util="http://www.springframework.org/schema/util" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > http://www.springframework.org/schema/util > http://www.springframework.org/schema/util/spring-util.xsd"> > <bean id="grid.cfg" > class="org.apache.ignite.configuration.IgniteConfiguration"> > > <property name="peerClassLoadingEnabled" value="true"/> > > > <property name="dataStorageConfiguration"> > <bean > class="org.apache.ignite.configuration.DataStorageConfiguration"> > <property name="defaultDataRegionConfiguration"> > <bean > class="org.apache.ignite.configuration.DataRegionConfiguration"> > <property name="persistenceEnabled" > value="true"/> > <property name="initialSize" value="#{100L * > 1024 > * 1024}"/> > <property name="maxSize" value="#{400L * 1024 * > 1024}"/> > </bean> > </property> > <property name="pageSize" value="#{4 * 1024}"/> > <property name="storagePath" > value="/media/linux_hdd/keymanagementdata"/> > <property name="walPath" > value="/media/linux_hdd/keymanagementdata/db/wal"/> > <property name="walArchivePath" > value="/media/linux_hdd/keymanagementdata/db/wal/archive"/> > </bean> > </property> > > <property name="cacheConfiguration"> > <bean > class="org.apache.ignite.configuration.CacheConfiguration"> > > <property name="name" value="DSU_DataBase"/> > > <property name="cacheMode" value="REPLICATED"/> > > </bean> > </property> > > > > <property name="discoverySpi"> > <bean > class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> > <property name="ipFinder"> > > > > <bean > > class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder"> > <property name="addresses"> > <list> > > <value>127.0.0.1</value> > <value>192.168.111.111:7912</value> > </list> > </property> > </bean> > </property> > </bean> > </property> > </bean> > </beans> > > Thank you, > Ali. > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >