Hi,
To use persistence you need to get familiar with the concept of baseline
topology:
https://apacheignite.readme.io/docs/baseline-topology
It basically means, that you need a fixed set of server nodes to store data.
You can config which node will store partitions of a particular cache by
using
org.apache.ignite.configuration.CacheConfiguration#setNodeFilter
All nodes except one will store real data, that one will be used for local
cache and computations.
To connect a client to this specific node you can use this configuration:
IgniteConfiguration cfg = new IgniteConfiguration();
cfg.setIgniteInstanceName("client1");
cfg.setClientMode(true);
cfg.setDiscoverySpi(discoverySpi());
cfg.setCommunicationSpi(new
TcpCommunicationSpi().setLocalAddress("0.0.0.0"));
Ignition.start(cfg);
TcpDiscoverySpi discoverySpi() {
return new TcpDiscoverySpi().setIpFinder(new
TcpDiscoveryVmIpFinder()
.setAddresses(Arrays.asList("192.168.0.2:47500..47502")));
}
This is only a concept and need to be checked. Hope it will help you.
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/