vkulichenko wrote
> If you simply need to distribute your file system data across, you need to
> start several Ignite nodes with proper discoverySpi configuration (your
> second code example) so that they form a cluster. Data will be
> automatically partitioned.
Ok, so I assume that I create a server A with same data and meta caches with
the same name on server A and server B and enable discoverySpi to have to
join together in a cluster?
*Server A:
*[CODE]
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="igfs-data"/>
<property name="cacheMode" value="REPLICATED"/>
//...
</bean>
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="igfs-meta"/>
<property name="cacheMode" value="REPLICATED"/>
//...
</bean>
<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>
<value>serverA:47500..47509</value>
<value>serverB:47500..47509</value>
</list>
</property>
</bean>
</property>
</bean>
</property>
[/CODE]
*Server B:
*[CODE]
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="igfs-data"/>
<property name="cacheMode" value="REPLICATED"/>
//...
</bean>
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="igfs-meta"/>
<property name="cacheMode" value="REPLICATED"/>
//...
</bean>
<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>
<value>serverA:47500..47509</value>
<value>serverB:47500..47509</value>
</list>
</property>
</bean>
</property>
</bean>
</property>
[/CODE]
Thankx,
/Kobe
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Connecting-two-nodes-in-IGFS-tp2196p2200.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.