Terracotta-OSS / terracotta-platform

http://terracotta.org
Apache License 2.0
32 stars 48 forks source link

Added topology information in command `config-tool diagnostic -output -format json` #1147

Closed mathieucarbou closed 1 year ago

mathieucarbou commented 1 year ago
{
  "cluster" : {
    "name" : "my-cluster",
    "stripes" : [ {
      "name" : "stripe1",
      "nodes" : [ {
        "name" : "node-1-1",
        "status" : "ACTIVE"
      }, {
        "name" : "node-1-2",
        "status" : "PASSIVE"
      } ]
    }, {
      "name" : "stripe2",
      "nodes" : [ {
        "name" : "node-2-1",
        "status" : "ACTIVE"
      }, {
        "name" : "node-2-2",
        "status" : "PASSIVE"
      } ]
    } ]
  },
  "configChangeCommittedAll" : true,
  "configChangeCommittedOnline" : false,
  "configChangeInProgress" : false,
  "configChangePartiallyCommitted" : false,
  "configChangePartiallyPrepared" : false,
  "configChangePartiallyRolledBack" : false,
  "configChangePreparedAll" : false,
  "configChangePreparedOnline" : false,
  "configDiscoveryFailed" : false,
  "configDiscoveryFailure" : null,
  "configInconsistent" : false,
  "configLocked" : false,
  "configLockedToken" : null,
  "configPartitioned" : false,
  "manualInterventionRequired" : false,
  "nodeStates" : {
    "PASSIVE" : 2,
    "ACTIVE" : 2
  },
  "nodes" : 4,
  "nodesInActiveMode" : 4,
  "nodesInConfigMode" : 0,
  "nodesInRepairMode" : 0,
  "nodesOnline" : 4,
  "nodesRequiringRestart" : 0,
  "nodesUnreachable" : 0,
  "readyForTopologyChange" : true,
  "stripes" : 2
}