You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by woo charles <ig...@gmail.com> on 2017/06/26 07:03:00 UTC
[TCP Discovery] connection ip configuration
Hi,
I would like to know how to specify the connection ip if the server has
more than one ips during the TCP Discovery.
Server A has 2 lan cards and so 2 ips (e.g. 1.2.3.4 and 7.8.9.0).
I have applied the following configuration for the TCP discovery and the
server is well connected.
However, when I tried to study the node connection by ignitevisorcmd, I
have found that Server A's ip is 7.8.9.0 instead of what is defined in the
config, resulting in a performance issue. Is there any other ways to
specify the ip to be connected?
<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.vm.TcpDiscoveryVmIpFinder">
<property name="addresses">
<list>
<!--
Explicitly specifying address of a local node to let it start
and operate normally even if there is no more nodes in the cluster.
You can also optionally specify an individual port or port range.
-->
<value>1.2.3.4</value>
<value>1.2.3.5:47500..47509</value>
</list>
</property>
</bean>
</property>
</bean>
</property></bean>
Re: [TCP Discovery] connection ip configuration
Posted by ezhuravlev <e....@gmail.com>.
Hi,
You can specify localHost in IgniteConfiguration:
https://ignite.apache.org/releases/2.0.0/javadoc/org/apache/ignite/configuration/IgniteConfiguration.html#setLocalHost(java.lang.String).
For example:
<bean id="grid.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="localHost" value="1.2.3.4"/>
</bean>
Evgenii
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/TCP-Discovery-connection-ip-configuration-tp14075p14076.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.