Hi,
sorry everyone if a stupid question...

I'm testing services and cache with only 2 nodes.

With Services every things it's ok for me...
I publish via deployClusterSingleton my services...

Here my simple karaf shell command on both Nodes and all it's ok
NODE                                                                      |
NAME                 | TOTAL | MAX | MESSAGE
------------------------------------------------------------------------------------------------------------------------
[192.168.1.44, 192.168.1.52]               | mqttSingletonService | 1     |
1   | OK
[192.168.1.44, 192.168.1.51]               | LWMSERVICE            | 1     |
1   | OK
[192.168.1.51, 192.168.1.61]               | PROVAGATEWAYMAPS     | 1     |
1   | OK
i see that services are running in different machine... 


About caches i'm very confused  
Node A:
ID                                                          | CACHE
------------------------------------------------------------------------------
[192.168.1.44, 192.168.1.52] | PROVAGATEWAYMAPS
[192.168.1.44, 192.168.1.52] | mqttbrokercache


Node B:
ID                                                          | CACHE
------------------------------------------------------------------------------
[192.168.1.44, 192.168.1.51] | PROVAGATEWAYMAPS
[192.168.1.44,192.168.1.51] | mqttbrokercache


I'd like to use a cache like a services... Then if node A put value this
value i need to see also in node B..



Here all my caches are configured and created in this way
CacheConfiguration<String, String> cacheCfg = new CacheConfiguration<>();
cacheCfg.setBackups(0);
cacheCfg.setName(MQTTServiceNames.MQTTBROKERCACHE);
cacheCfg.setCacheMode(PARTITIONED);
ignite.configuration().setCacheConfiguration(cacheCfg);
dataMqttStreamer =
ignite.dataStreamer(ignite.getOrCreateCache(cacheCfg).getName());      


If node A, for example, create a cache("Nome") in the  node B via
ignite.cache("Nome") is always null...

Can you help me please?


     



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/About-Cache-tp8611.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to