You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by JP <jo...@gmail.com> on 2018/05/07 09:02:36 UTC

Services not initializing in persistence enabled cluster nodes

Hi, 
    I am using Ignite 2.4 and trying to deploy services as node singleton in
cluster.

Steps:
    1. Start node 1 with persistence enabled
    2. Make cluster active
    3. Initialize service with node singleton
    4. Start Node 2.
    5. Inserted data from Node 2.
 Issue 1:   
      Expected result: Service should auto deploy in node 2
      Actual result: Service not deployed in node 2

     Here in node 2, service is not auto deployed. **May i know what's the
problem here?**
Issue 2:
   Steps:
       1. As above steps
       2. Stopped Node 1
       3. Insert data from Node 2
        
         After this facing following Exception: Failed to map keys for cache
(all partition nodes left the grid).


Below lines are the ignite configuration,
	public IgniteConfiguration getConfig() {

		IgniteConfiguration cfg = new IgniteConfiguration();
		
		TcpDiscoverySpi discoverySpi = new TcpDiscoverySpi();

		TcpDiscoveryVmIpFinder ipFinder = new TcpDiscoveryVmIpFinder();

		List<String> list = new ArrayList<String>();
		list.add("192.168.1.57");
		list.add("192.168.1.57:47500..47509");

		ipFinder.setAddresses(list);
		discoverySpi.setIpFinder(ipFinder);
		cfg.setDiscoverySpi(discoverySpi);
				DataStorageConfiguration storageCfg = new DataStorageConfiguration();
		            
	
storageCfg.getDefaultDataRegionConfiguration().setPersistenceEnabled(true);
		            
		cfg.setDataStorageConfiguration(storageCfg);
		
		
		return cfg;
	}




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

RE: Services not initializing in persistence enabled cluster nodes

Posted by "Maxim.Pudov" <pu...@gmail.com>.
Your case is well described in docs
https://apacheignite.readme.io/docs/baseline-topology#section-adding-new-node
Hope, it will help.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

RE: Services not initializing in persistence enabled cluster nodes

Posted by PotatoGuo <yu...@sina.com>.
Sir, Is there any way to add a new node in a persistent cluster? Because i
want to expand the cluster for the server num may increase someday.
PS: the ignite is embeded in project using Spring boot.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

RE: Services not initializing in persistence enabled cluster nodes

Posted by Stanislav Lukyanov <st...@gmail.com>.
Hi,

For starters, if you haven’t already, I suggest you read a bit on the Baseline Topology concept introduced in 2.4: https://apacheignite.readme.io/docs/cluster-activation.
In short, after you’ve activated the cluster you have Baseline Topology set to the current set of nodes - in your case, Node 1.
When you start Node 2 it joins the cluster but it isn’t a baseline node, so it doesn’t store any persistent data.
That’s the cause of your Issue 2 – after you’ve killed Node 1, you expect Node 2 to also have the data, but it doesn’t because it isn’t a baseline node.

Issue 1 is actually a known bug - https://issues.apache.org/jira/browse/IGNITE-8134.

To solve both issues, you can add Node 2 to the baseline topology via control.sh (see examples of commands in the Cluster Activation doc).

Stan

From: JP
Sent: 7 мая 2018 г. 12:02
To: user@ignite.apache.org
Subject: Services not initializing in persistence enabled cluster nodes

Hi, 
    I am using Ignite 2.4 and trying to deploy services as node singleton in
cluster.

Steps:
    1. Start node 1 with persistence enabled
    2. Make cluster active
    3. Initialize service with node singleton
    4. Start Node 2.
    5. Inserted data from Node 2.
 Issue 1:   
      Expected result: Service should auto deploy in node 2
      Actual result: Service not deployed in node 2

     Here in node 2, service is not auto deployed. **May i know what's the
problem here?**
Issue 2:
   Steps:
       1. As above steps
       2. Stopped Node 1
       3. Insert data from Node 2
        
         After this facing following Exception: Failed to map keys for cache
(all partition nodes left the grid).


Below lines are the ignite configuration,
	public IgniteConfiguration getConfig() {

		IgniteConfiguration cfg = new IgniteConfiguration();
		
		TcpDiscoverySpi discoverySpi = new TcpDiscoverySpi();

		TcpDiscoveryVmIpFinder ipFinder = new TcpDiscoveryVmIpFinder();

		List<String> list = new ArrayList<String>();
		list.add("192.168.1.57");
		list.add("192.168.1.57:47500..47509");

		ipFinder.setAddresses(list);
		discoverySpi.setIpFinder(ipFinder);
		cfg.setDiscoverySpi(discoverySpi);
				DataStorageConfiguration storageCfg = new DataStorageConfiguration();
		            
	
storageCfg.getDefaultDataRegionConfiguration().setPersistenceEnabled(true);
		            
		cfg.setDataStorageConfiguration(storageCfg);
		
		
		return cfg;
	}




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/