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>


posted @ 2023-02-22 13:39  life_start  阅读(61)  评论(0编辑  收藏  举报