As I wrote before - I create caches dynamically and cannot declare cache 
configuration in client.xml because cache doesn't exist yet. 


From: "Denis Magda" <dma...@apache.org> 
To: "user" <user@ignite.apache.org> 
Sent: Friday, September 13, 2019 10:50:16 PM 
Subject: Re: [cpp] Setup a near cache on client and server nodes 

Oleg, 
You need to add the near cache settings to Ignite client configuration 
explicitly. Please try out the code snippets from this documentation page: 
[ https://apacheignite.readme.io/docs/near-caches | 
https://apacheignite.readme.io/docs/near-caches ] 

- 
Denis 


On Fri, Sep 13, 2019 at 12:36 PM Oleg Popov < [ mailto:o.po...@livelace.ru | 
o.po...@livelace.ru ] > wrote: 



I use thick client. I don't have any records with caches configurations in my 
client XML file (I create caches dynamically through REST requests and caches 
templates). 

I don't know where I should place a near cache configuration on a client. 
Should I explicitly declare a cache configuration and put a near cache 
configuration into it ? 

Could you share a working settings (data node, client node) of a near cache ? 


From: "Denis Magda" < [ mailto:dma...@apache.org | dma...@apache.org ] > 
To: "user" < [ mailto:user@ignite.apache.org | user@ignite.apache.org ] > 
Sent: Friday, September 13, 2019 8:46:06 PM 
Subject: Re: [cpp] Setup a near cache on client and server nodes 

Hello Oleg, 
Just to confirm, do you use C++ thin or thick (regular) client? If you have 
inserted this property into the configuration on the client side then it should 
work. Something might have failed on the visor end. 

Btw, do you see any performance difference after turning on/off the near cache? 

- 
Denis 


On Thu, Sep 12, 2019 at 12:30 AM Oleg Popov < [ mailto:o.po...@livelace.ru | 
o.po...@livelace.ru ] > wrote: 

BQ_BEGIN

Hello. 

Configuration: 

1. N1 и N2 - data nodes (in different k8s clusters). 
2. C1 - client node (outside of k8s clusters; c++ client node). 
3. All caches are replicated. Caches create through REST/caches templates. 

Need: 

1. C1 has to have a near cache for better performance. 

Question: 

1. How to enable and use a near cache on client and data nodes ? 
2. Is there any support NearConfiguration in C++ ? 

I have already tried to add: 

< property name ="nearConfiguration" > 
< bean class ="org.apache.ignite.configuration.NearCacheConfiguration" > 
< property name ="nearEvictionPolicy" > 
< bean class ="org.apache.ignite.cache.eviction.lru.LruEvictionPolicy" > 
< property name ="maxSize" value ="1000000" /> 
</ bean > 
</ property > 
</ bean > 
</ property > 
to a cache template, but ignitevisor shows that near cache is disabled ("off" 
state). 


С уважением, Попов О.В. / Best regards, Popov V Oleg 




BQ_END


Reply via email to