Hi,
By default, Ignite uses TcpDiscoveryMulticastIpFinder, which means that
nodes can be connected to each other even without configuring certain IP
addresses. You can use TcpDiscoveryVmIpFinder instead, it will try to
connect only to the pre-configured addresses.
TcpDiscoverySpi discovery = new TcpDiscoverySpi().setIpFinder(new
TcpDiscoveryVmIpFinder().setAddresses(Collections.singleton("127.0.0.1:47500
..47509")));
Evgenii
чт, 27 дек. 2018 г. в 09:37, Skollur <[email protected]>:
> Hello
>
> I have upgraded my code from Apache ignite version 2.6 to 2.7. I am running
> two server nodes in two different machines. However after upgrade, noticed
> that these two server nodes joined. Log shows as servers=2, state=ACTIVE.
>
> Based on previous suggestion, I have commented out TCPDiscoverSPI and still
> see server nodes are joined in 2.7 version. How to make sure server nodes
> runs in one machine and not joining with remote (stand alone)?
>
> IgniteConfiguration cfg = new IgniteConfiguration();
> cfg.setIgniteInstanceName("testdb");
>
> /*TcpDiscoverySpi discovery = new TcpDiscoverySpi();
>
>
> discovery.setLocalAddress(IPClusterConfigInitialize.IpClusterConfig().getProperty("ipClusterConfig"));
> discovery.setLocalPort(new
> Integer(IPClusterConfigInitialize.IpClusterConfig().getProperty("port")));
> cfg.setDiscoverySpi(discovery);*/
>
> cfg.setPeerClassLoadingEnabled(false);
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>