I start one node with the same cache configs as above. I do not execute it .
And in another cache I start a ignite node and us ethe code below
IgniteCache<Integer, String> cache = ignite.getOrCreateCache(cfg1);
IgniteCache<Integer, String> cache2 = ignite.getOrCreateCache(cfg1);
IgniteCache<Integer, String> cache3 = ignite.getOrCreateCache(cfg1);
IgniteTransactions igniteTransactions = ignite.transactions();
Thread.sleep(2000);
final long time = System.currentTimeMillis();
for(int i =0; i< 100000; i ++) {
try (Transaction tx = igniteTransactions.txStart()) {
long t = System.nanoTime();
cache.put(i, String.valueOf(i));
cache2.put(i, String.valueOf(i));
cache3.put(i, String.valueOf(i));
tx.commit();
System.out.println(System.nanoTime() - t);
String s = cache.get(i);
}
}
Both the nodes are in the same machine and still it takes over 22 seconds to
commit this work. It is slower if I increase the put size. This is probably
due to 1 pC vs 2pC in Ignite. How should I imporve the performance in this
case? I need to have two nodes running
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Ignite-Transaction-performance-tp5085p5174.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.