Ignite系列之10--单服务器多ignite服务进程组成单个集群
单服务器多ignite服务进程组成单个集群
1)Communication portRange 修改为服务个数
<property name="communicationSpi">
<bean class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
<property name="localPort" value="49100"/>
<property name="localPortRange" value="2"/>
</bean>
</property>
2)discovery address中把同服务器多个ip:localport都配置上
<property name="ipFinder">
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
<property name="addresses">
<list>
<value>10.20.145.91:49500</value>
<value>10.20.145.91:49501</value>
</list>
</property>
</bean>
</property>
本文来自博客园,作者:life_start,转载请注明原文链接:https://www.cnblogs.com/yangh2016/p/17144056.html

浙公网安备 33010602011771号