Hello!
You can use Node Attributes for that, just set the corresponding attribute when configuring nodes of a given environment.
E.g. "environment" -> "STAGING".
Regards,
------------------------------
Ilya Kasnacheev
Community Support Specialist
GridGain
------------------------------
Original Message:
Sent: 11-21-2019 12:03 PM
From: Jorg Janke
Subject: How to get the cluster id?
Thanks Igor,
So how do I then easily differentiate the cluster of a test and production environment?
Cheers,
Jorg
------------------------------
Jorg Janke
CTO Accorto, Inc.
Original Message:
Sent: 11-21-2019 06:20 AM
From: Igor Belyakov
Subject: How to get the cluster id?
It's not possible to get ClusterId by using Java API, since this id is generated by Web Console and used only inside it. GridGain cluster by itself doesn't have id for the cluster.
------------------------------
Igor Belyakov
Software Engineer
GridGain
Original Message:
Sent: 11-20-2019 05:23 PM
From: Jorg Janke
Subject: How to get the cluster id?
I get the Node uuid / id8 via
m_ignite = Ignition.getOrStart(cfg);m_cluster = m_ignite.cluster();UUID uuid = m_cluster.localNode().id();String id8 = IgniteUtils.id8(uuid);
How do I get the cluster id used/displayed in the GridGain console?
------------------------------
Jorg Janke
CTO Accorto, Inc.
------------------------------