0
votes

I have setup a 2 node hazelcast cluster on Amazon EC2. On one of the nodes I have a client program which connects to the cluster and runs a atomiclong counter increment&get operation.

How can I find out to which Hazelcast server node did the client connect and run the incrementAndGet operation ?

Thanks

1
Which Hazelcast version are you using. So are you using 2.x or 3.x. - pveentjer
Hazelcast version 3.1.3 - Santhosh S

1 Answers

1
votes

An AtomicLong is owned by a single partition and a partition is owned by a single member.

In Hazelcast 3, a client knows about which member owns which partitions, so it will automatically forward a call on an AtomicLong to the right machine.

[edit] Why do you need to know?