You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Luckyman <dm...@gmail.com> on 2018/11/02 10:06:59 UTC

How to filter ip interfaces in TcpDiscoveryJdbcIpFinder

Is there any way to filter interfaces by network mask when use
TcpDiscoveryJdbcIpFinder.
Our case: In production we have 20 different network interfaces on each node
used for different approach. And we want to build cluster communication only
in one of them. We have about 200 logical node and use for example static
list is very complecated for us.




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

RE: How to filter ip interfaces in TcpDiscoveryJdbcIpFinder

Posted by Stanislav Lukyanov <st...@gmail.com>.
Currently you can only use IGNITE_LOCAL_HOST or TcpDiscoverySpi.localAddress for this.
You can automate setting these addresses via an external script, like
    MY_IP=`ifconfig | grep <some regexp magic here to filter out the address you want>`
    java <usual Ignite parameters> -DIGNITE_LOCAL_HOST=$MY_IP
or put it into the Ignite config like
    <property name=”localAddress” value=”${sys:MY_IP}”>

Stan

From: Luckyman
Sent: 3 ноября 2018 г. 23:36
To: user@ignite.apache.org
Subject: Re: How to filter ip interfaces in TcpDiscoveryJdbcIpFinder

Thx for reply, but it's not usable for our situation.

We have are Exalogic cluster with a lot of different network .
Each virtual node have it's own address. As I understand I should set the ip
address on each node.
But I want to set target network address and network mask once and each node
of ignite use ip address from  this network ignoring other networks on host.  



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


Re: How to filter ip interfaces in TcpDiscoveryJdbcIpFinder

Posted by Luckyman <dm...@gmail.com>.
Thx for reply, but it's not usable for our situation.

We have are Exalogic cluster with a lot of different network .
Each virtual node have it's own address. As I understand I should set the ip
address on each node.
But I want to set target network address and network mask once and each node
of ignite use ip address from  this network ignoring other networks on host.  



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

Re: How to filter ip interfaces in TcpDiscoveryJdbcIpFinder

Posted by Humphrey <hm...@gmail.com>.
Have you tried the following:
Setting the property IGNITE_LOCAL_HOST should choose one interface.

https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteSystemProperties.html#IGNITE_LOCAL_HOST



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