Problem in forming cluster with multi-jvm in single machine

2016-12-01 Thread hitansu
I have written a program to start ignite in separate jvms to form a cluster.It is starting the Ignite,but could not form a cluster. It is printing following log. Failed to connect to any address from IP finder (will retry to join topology every 2 secs): [/10.150.113.61:47500] Below is my IgniteC

Re: AtomicSequence not performing well with 2 nodes cluster set up

2016-11-28 Thread hitansu
Thanks for the quick reply. If I will use range, then it wont be anymore a sequence in cluster-wide.If the range is 1000,then calling AtomicSequence.increamentAndGet() twice may give 1 & 1001.But I want it should give 1 & 2 respectively in any situation. Again Is it the same thing using AtomicLong

AtomicSequence not performing well with 2 nodes cluster set up

2016-11-27 Thread hitansu
Hi, I am using AtomicSequence to generate sequence id.So I have set the reserve size as 0 as I want strictly sequence id throughout the cluster. I have a cluster set up of 2 nodes. It is taking around 18min. to generate 1Million id in one system more than 25min. in other system. I have triggered t

Re: AtomicSequence not working when shutting down one server node from a cluster

2016-09-29 Thread hitansu
Thanks. The issue got resolved. While starting the client I was not giving the configuration file.By setting the configuration file to client it solved the issue. But one for doubt I have. If I will run 2-3 client at the same time , then why the id being generated in each client has a diff of 1000

Re: AtomicSequence not working when shutting down one server node from a cluster

2016-09-23 Thread hitansu
class org.apache.ignite.IgniteException: null at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:908) at org.apache.ignite.internal.processors.datastructures.GridCacheAtomicSequenceImpl.incrementAndGet(GridCacheAtomicSequenceImpl.java:178) at ig

Re: AtomicSequence not working when shutting down one server node from a cluster

2016-09-21 Thread hitansu
This is the link to the code. https://github.com/hitansu/ScalableUniqueIdGenerator/tree/master/src/main/java <https://github.com/hitansu/ScalableUniqueIdGenerator/tree/master/src/main/java> client/IdGeneratorClient.java is the main class. 1. Started server nodes by executing the ignite

Re: AtomicSequence not working when shutting down one server node from a cluster

2016-09-20 Thread hitansu
First of all why it is still showing this post is not accepted ? I tried with the backup option & also tried with the REPLICATED mode cache setting.Still it gives null poiter when I stop one of the server(basically the first node).This is my cache setting.

Re: AtomicSequence not working when shutting down one server node from a cluster

2016-09-16 Thread hitansu
Is it like replication ?But if the AtomicSequnce is cluster wide, then it should work even one of the node is down.Isn't it?Why is it computing the AtomicSequnce only in one node ? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/AtomicSequence-not-working-when-sh