what ports should be open on a linux machine?

I opened the following ports in respect of my config
10800 - client
11211:11220 
58500:58520,
58100:58109
58400:58409

is this right? Should I open any other ports?

I'm asking because I see that it take some considerable time for the nodes
to connect to each other, (I think so because ./control.sh --baseline hangs
when connecting to the nodes. I tried to activate my cluster for two days
and actually did it only once)

I used ./control.sh set-firewall to set the firewall on my machines

here is an exert from ./service.sh
                ${firewallCmd} -p tcp -m multiport --${port}ports
10800:10801,11211:11220,47500:47509,47100:47109,58500:58520,58100:58109 -j
ACCEPT &>/dev/null
                ${firewallCmd} -p udp -m multiport --${port}ports
47400:47409,58400:58409 -j ACCEPT &>/dev/null

here is an exert from my config
    <property name="discoverySpi">
        <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
            <property name="localPort" value="58500"/>
            <property name="localPortRange" value="20"/>

            <property name="ipFinder">
                <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
                    <property name="addresses">
                        <list>
                            <value>127.0.0.1:58500..58520</value>
                            <value>10.250.25.120:58500..58520</value> 
                           
<value>adp-apacheIg01.adp.local:58500..58520</value> 
                           
<value>adp-apacheIg02.adp.local:58500..58520</value>   
                           
<value>adp-apacheIg03.adp.local:58500..58520</value>  


        <bean
class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
            <property name="localPort" value="58100"/>
        </bean>

here is how the respective part of my ip table looks like
Chain INPUT_direct (1 references)
num  target     prot opt source               destination
1    ACCEPT     tcp  --  anywhere             anywhere             multiport
sports memcache:11220,47500:47509,47100:47109,58500:58520
2    ACCEPT     udp  --  anywhere             anywhere             multiport
sports 47400:47409
3    ACCEPT     tcp  --  anywhere             anywhere             multiport
dports memcache:11220,47500:47509,47100:47109,58500:58520
4    ACCEPT     udp  --  anywhere             anywhere             multiport
dports 47400:47409
5    ACCEPT     all  --  anywhere             anywhere             PKTTYPE =
multicast
6    ACCEPT     tcp  --  anywhere             anywhere             multiport
sports memcache:11220,47500:47509,47100:47109,58500:58520,58100:58109
7    ACCEPT     udp  --  anywhere             anywhere             multiport
sports 47400:47409,58400:58409
8    ACCEPT     tcp  --  anywhere             anywhere             multiport
dports memcache:11220,47500:47509,47100:47109,58500:58520,58100:58109
9    ACCEPT     udp  --  anywhere             anywhere             multiport
dports 47400:47409,58400:58409
10   ACCEPT     tcp  --  anywhere             anywhere             multiport
sports gap,memcache:11220,47500:47509,47100:47109,58500:58520,58100:58109
11   ACCEPT     tcp  --  anywhere             anywhere             multiport
dports gap,memcache:11220,47500:47509,47100:47109,58500:58520,58100:58109
12   ACCEPT     tcp  --  anywhere             anywhere             multiport
sports
gap:10801,memcache:11220,47500:47509,47100:47109,58500:58520,58100:58109
13   ACCEPT     tcp  --  anywhere             anywhere             multiport
dports
gap:10801,memcache:11220,47500:47509,47100:47109,58500:58520,58100:58109





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to