Tom
Tom

Reputation: 6342

Which ports does Ignite Server listens to

following is part of my configuration file that is passed to the Ignite.start(configuration_file).

I have thought that Ignite server will pick up a port from the port ranges(here is 37500..37509 in the configuration file).

But when I netstat the ports, it looks that these ports are never used?

I have two questions: 1. What are these port range used for? Aren't they used for the ports that the Ignite server will bind and listen to? 2. If the port above is not used for server to listen to? Then how can I know or change the ports?

<bean id="ignite.cfg" 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="addresses">
                            <list>
                                <value>127.0.0.1:37500..37509</value>
                            </list>
                        </property>
                    </bean>
                </property>
            </bean>
        </property>
    </bean>

Upvotes: 1

Views: 4502

Answers (1)

Valentin Kulichenko
Valentin Kulichenko

Reputation: 8390

Addresses provided in IP finder are the once node will try to connect to, not the ones it will listen to.

To change the port to bind to you should use localPort and localPortRange property. Fo the range mentioned in your example they should be set to 37500 and 10 respectively. Default values are 47500 and 100.

Upvotes: 2

Related Questions