General Questions

Expand all | Collapse all

How to get the cluster id?

  • 1.  How to get the cluster id?

    Posted 14 days ago
    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.
    ------------------------------


  • 2.  RE: How to get the cluster id?

    Posted 14 days ago
    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
    ------------------------------



  • 3.  RE: How to get the cluster id?

    Posted 14 days ago
    Thanks Igor,

    So how do I then easily differentiate the cluster of a test and production environment?

    Cheers,
    Jorg

    ------------------------------
    Jorg Janke
    CTO Accorto, Inc.
    ------------------------------



  • 4.  RE: How to get the cluster id?

    Posted 13 days ago
    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
    ------------------------------



  • 5.  RE: How to get the cluster id?

    Posted 13 days ago
    Hi Ilya,
    Did not find where it is displayed - I guess the best os to scroll down to the Nodes section and check the Grid Names.
    Thanks,
    Jorg

    ------------------------------
    Jorg Janke
    CTO Accorto, Inc.
    ------------------------------



Would you attend a July Meetup?


Announcements