You will need to establish separate pools for the 2 clusters. Each pool can
talk to separate locators.


--
Mike Stolz
Principal Engineer, GemFire Product Lead
Mobile: +1-631-835-4771

On Fri, Apr 12, 2019, 6:32 PM Jinmei Liao <jil...@pivotal.io> wrote:

> I believe multiple caches in one VM are not supported in Geode currently.
>
> On Fri, Apr 12, 2019, 3:23 PM Claudiu Balciza <cbalc...@1wa.org> wrote:
>
>> I have 2 geode hosts (dev and test) and I was trying to sync 2 regions
>>
>> These 2 hosts are not supposed to communicate between them
>>
>>
>>
>> But when I try
>>
>>
>>
>> ClientCache cache1 = *new *ClientCacheFactory()
>>     .addPoolLocator(*"host1.local"*, 2001)
>>     .create()
>>
>> ClientCache cache2 = *new *ClientCacheFactory()
>>     .addPoolLocator(*"host2.local"*, 2002)
>>     .create()
>>
>>
>>
>> The first one works just fine, the second one throws:
>>
>> Caught: java.lang.IllegalStateException: Existing cache's default pool
>> was not compatible
>>
>>
>>
>> I could work around this by having one cache open at a time but I’d like
>> to have them both open
>>
>> Any ideas?
>>
>>
>>
>> *Claudiu Balcîza*    BSc
>>
>> Database Architect
>> Architecte de base de données
>> Arhitect Baze de Date
>>
>>
>>
>

Reply via email to