Example: Multicast and Static IP based Discovery
You can use both, multicast and static IP based discovery together. In this case, in addition to addresses received through multicast, if any, TcpDiscoveryMulticastIpFinder can also work with pre-configured list of static IP addresses, similar to static IP based discovery.
<bean class="org.apache.ignite.configuration.IgniteConfiguration"> ... <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="multicastGroup" value="228.10.10.157"/> <!-- list of static IP addresses--> <property name="addresses"> <list> <value>1.2.3.4</value> <!-- IP Address and optional port range. You can also optionally specify an individual port. --> <value>1.2.3.5:47500..47509</value> </list> </property> </bean> </property> </bean> </property> </bean>
Copyright © Cloud Software Group, Inc. All rights reserved.