Hello!

On Windows, it is recommended to get rid of multicast and decrease port
range, such as 127.0.0.1:47500..47502 <http://127.0.0.1:47500>

Regards,
-- 
Ilya Kasnacheev


пт, 20 дек. 2019 г. в 10:23, xingjl6280 <[email protected]>:

> hi team,
>
> as a hazlecast user, I'm new to ignite .
> After setting up my sample project, I found the startup gets slowed down
> with 30-40s.
> Seems the discovery took much time. I tries static IP and multicast, seems
> no diff.
>
> Is this expected or not?
>
> Issue replication:
> 1. Run ignite 2.7.6 (win10, 32GB ram, SSD, intel i7)
> bin\ignite.bat examples\config\example-ignite.xml
>
> 2. Create a java spring project with below dependencies
> 'org.apache.ignite:ignite-core:2.7.6'
> 'org.apache.ignite:ignite-spring:2.7.6'
> 'org.apache.ignite:ignite-spring-data:2.7.6'
>
> 3. Define a bean which could be autowired
>
> @Configuration
> public class IgniteConfig implements Config {
>     @Bean
>     public Ignite igniteInstance() {
>         IgniteConfiguration cfg = new IgniteConfiguration();
>         cfg.setPeerClassLoadingEnabled(true);
>
> //        TcpDiscoveryMulticastIpFinder tcpDiscoveryMulticastIpFinder=new
> TcpDiscoveryMulticastIpFinder();
> //
> tcpDiscoveryMulticastIpFinder.setAddresses(Collections.singletonList("
> 127.0.0.1:47500"));
> //        tcpDiscoveryMulticastIpFinder.setAddressRequestAttempts(1);
>
>         TcpDiscoveryVmIpFinder tcpDiscoveryVmIpFinder = new
> TcpDiscoveryVmIpFinder();
>
> tcpDiscoveryVmIpFinder.setAddresses(Collections.singletonList("
> 127.0.0.1:47500"));
>
>
>         TcpDiscoverySpi tcpDiscoverySpi=new TcpDiscoverySpi();
>         tcpDiscoverySpi.setIpFinder(tcpDiscoveryVmIpFinder);
>         cfg.setDiscoverySpi(tcpDiscoverySpi);
>
>
>         return Ignition.start(cfg);
>     }
> }
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to