ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: Is there a way to configure the backup nodes for a cache?
Date Fri, 22 Jul 2016 03:58:21 GMT
Hi,

Are G1 and G2 two different physical machines and you start two nodes on
each of them? If this is correct, you can achieve what you want by adding
this to the cache configuration:

<property name="affinity">
    <bean
class="org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction">
        <property name="excludeNeighbors" value="true"/>
    </bean>
</property>

This will force the affinity function to assign primary and backup nodes for
the same partition to different physical machines.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Is-there-a-way-to-configure-the-backup-nodes-for-a-cache-tp6448p6458.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message