Hi Alexander,

Basically, "grid" == "Ignite cluster" and "grid instance" == "ignite node".
"Grid" terms came from old GridGain days. I suggest you to operate on terms
"node" and "cluster".

Ignition.ignite(String) returns a node with a given name started in current
JVM. If you re-start the node with the same name, instance returned after
restart will differ from instance returned before restart:

Ignition.start([config with gridName="A"]);
Ignite before = Ignition.ignite("A");

Ignition.stop("A", true);

Ignition.start([config with gridName="A"]);
Ignite after = Ignition.ignite("A");

assert before == after; // Will fail.

Vladimir.

On Sat, Mar 26, 2016 at 12:04 AM, alexGalushka <[email protected]>
wrote:

> Hello Ignite community!
>
> I read through the Ignite docs a few times and was playing with Ignite for
> a
> few weeks.
> But I still can't figure out the Ignite terminology...
>
> What are definitions and relations of the following: grid, grid instance,
> ignite cluster (cluster), ignite node (node)?
> I feel like in the Ignite context grid and cluster are interchangeably
> terms, but still not 100% sure about it.
>
> How to make the nodes belong to the same cluster (/grid, if the term is
> interchangeable)? Setting the same gridName seems to do it:
>
> Ignition.ignite("MY_GRID_NAME").cluster().nodes()...
>
> I see 2 nodes in the collection and with the correct node IDs.
>
> But I'm confused by the .ignite(...) java doc, which says: "Note that
> caller
> of this method should not assume that it will return the same instance
> every
> time. Grid name defines what grid a particular grid instance (and
> correspondingly its node) belongs to"
>
> --Alexander.
>
>
>
>
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Ignite-terminology-tp3687.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Reply via email to