Val, 

Thank you for your response. Here is my simple use-case for POC to evaluate
Apache Ignire I'm currently working on, which have generated the Apache
Ignite terminology question.

My setup: VM {Ubuntu 15.04; 4 cores}, 2 docker containers (each has its own
JVM, each deploys its own Vert.x clustered instance with Apache Ignite as a
cluster manager, I use multicast for node discovery). Whenever you start the
Vert.x instance, Ignite.start() is called, so I the Ignite instance is
created. The idea is to have each node to get the list of nodes in the
cluster, I've tried 3 different ways:

First, Ignition.localIgnite().cluster().nodes() returns NULL
In javadoc to localignite it says: "According to contract this method has to
be called only under IgniteThread. An IllegalArgumentException will be
thrown otherwise."

Second, Ignition.ignite(UUID.fromString(nodeID)).cluster().nodes() - same
result
But, I have an interesting finding from the javadoc: "Note that grid
instance and local node have one-to-one relationship *where node has ID and
instance has name of the grid to which both grid instance and its node
belong*."
So per this javadoc there is a grid (cluster) name, it's not a node name,
it's a name of the cluster which node belongs to!

Third, I've added this: to ignite xml config file <property name="gridName"
value="APPLIANCE"/>

To get all the nodes which belong (assuming that the javadoc is correct) to
the grid with name "APPLIANCE":

System.out.println("Here are the nodes in the APPLIANCE : "
    + Ignition.localIgnite().cluster().nodes()
    .stream().map(node ->
node.id()).collect(Collectors.toList()).toString());

It returns the expected result!

================================================================

Val, now back to your reply, I need a few clarifications:

1. When you say topology you mean the net of nodes, which is the cluster as
I see it correct?
2. Node doesn't have a name, it has a unique ID, the grid (cluster) does
have name, correct?
3. The discovered nodes define the cluster, so if nodes see each other they
form the cluster (and it's defined by discovery SPI), correct?

Thank you all your help, guys!!!

--Alexander
   



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

Reply via email to