Hello,
You can configure join timeout like this (in milliseconds):
<bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
<property name="joinTimeout" value="5000" />
Also in your case using TcpDiscoveryVmIpFinder by better.
You can look the article Static IP Based Discovery[1] for particular.
[1]:
https://apacheignite.readme.io/v1.6/docs/cluster-config#static-ip-based-discovery
On Mon, Jul 25, 2016 at 12:32 PM, tracel <[email protected]> wrote:
> I found the Ignition.start() seems to wait forever when it cannot find any
> node to join,
> the program waiting over 10 mins and the message "IP finder returned empty
> addresses list. Please check IP finder configuration and make sure
> multicast
> works on your network. Will retry every 2 secs." shows every 5 mins:
>
> [17:35:31] __________ ________________
> [17:35:31] / _/ ___/ |/ / _/_ __/ __/
> [17:35:31] _/ // (7 7 // / / / / _/
> [17:35:31] /___/\___/_/|_/___/ /_/ /___/
> [17:35:31]
> [17:35:31] ver. 1.5.0-final#20151229-sha1:f1f8cda2
> [17:35:31] 2015 Copyright(C) Apache Software Foundation
> [17:35:31]
> [17:35:31] Ignite documentation: http://ignite.apache.org
> [17:35:31]
> [17:35:31] Quiet mode.
> [17:35:31] ^-- To see **FULL** console log here add
> -DIGNITE_QUIET=false
> or "-v" to ignite.{sh|bat}
> [17:35:31]
> [17:35:31] OS: Windows 7 6.1 amd64
> [17:35:31] VM information: Java(TM) SE Runtime Environment
> 1.8.0_25-b18
> Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.25-b02
> [17:35:31] Initial heap size is 128MB (should be no less than
> 512MB, use
> -Xms512m -Xmx512m).
> [17:35:32] Configured plugins:
> [17:35:32] ^-- None
> [17:35:32]
> [17:35:33] Security status [authentication=off, tls/ssl=off]
> [17:35:35] IP finder returned empty addresses list. Please check
> IP finder
> configuration and make sure multicast works on your network. Will retry
> every 2 secs.
> [17:35:42] New version is available at ignite.apache.org: 1.6.0
> [17:40:36] IP finder returned empty addresses list. Please check
> IP finder
> configuration and make sure multicast works on your network. Will retry
> every 2 secs.
> [17:45:37] IP finder returned empty addresses list. Please check
> IP finder
> configuration and make sure multicast works on your network. Will retry
> every 2 secs.
>
>
> here's the code:
>
> TcpDiscoverySpi discoverySpi = new TcpDiscoverySpi();
> TcpDiscoveryMulticastIpFinder ipFinder = new
> TcpDiscoveryMulticastIpFinder();
> ipFinder.setMulticastGroup("228.0.0.1");
> discoverySpi.setIpFinder(ipFinder);
>
> IgniteConfiguration cfg = new IgniteConfiguration();
> cfg.setDiscoverySpi(discoverySpi);
>
> Ignition.setClientMode(true);
> ignite = Ignition.start(cfg);
>
>
> Can the timeout be set?
> Thanks in advance!
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/How-to-set-timeout-for-Ignition-start-tp6512.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>
--
Vladislav Pyatkov