Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-10934

Provide dump of Artemis topology in JSON format

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Obsolete
    • Icon: Minor Minor
    • None
    • 7.1.0.DR18, 7.1.0.CR2
    • ActiveMQ, User Experience
    • None
    • User Experience

      You can dump Artemis cluster topology information via CLI. However format of the result is not in any known machine readable format so this information can't be easily processed by some tool or script.

      It would be nice if the output was in JSON format. Example of such JSON:

      {
        "currentNode": {
          "host": "dhcp-24-153-fab-redhat-com",
          "port": 8080
        },
        "members": [
           {
             "live": {"host": "live.host.org", "port": 8080, "active": true},
             "backup": {"host": "backup.host.org", "port": 8080, "active": false}
           }, {
             "live:" {...}
             "backup": null
           }
         ]
      }
      

      Current format is:

      [standalone@127.0.0.1:10990 /] /subsystem=messaging-activemq/server=default/cluster-connection=my-cluster:read-resource(recursive=true, include-runtime=true)
      {
          "outcome" => "success",
          "result" => {
              "topology" => "topology on Topology@2ed1f17d[owner=ClusterConnectionImpl@1272003015[nodeUUID=6b5849d5-a1a6-11e6-b602-3ca9f4349bfc, connector=TransportConfiguration(name=netty, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?port=6445&useNio=true&host=localhost&useNioGlobalWorkerPool=true, address=jms, server=ActiveMQServerImpl::serverUUID=6b5849d5-a1a6-11e6-b602-3ca9f4349bfc]]:
      	6b5849d5-a1a6-11e6-b602-3ca9f4349bfc => TopologyMember[id = 6b5849d5-a1a6-11e6-b602-3ca9f4349bfc, connector=Pair[a=TransportConfiguration(name=netty, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?port=6445&useNio=true&host=localhost&useNioGlobalWorkerPool=true, b=TransportConfiguration(name=netty-backup, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?port=7446&host=localhost], backupGroupName=group2, scaleDownGroupName=null]
      	46aa5649-a1a6-11e6-87fd-3c970e9648c8 => TopologyMember[id = 46aa5649-a1a6-11e6-87fd-3c970e9648c8, connector=Pair[a=TransportConfiguration(name=netty, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?port=7445&useNio=true&host=localhost&useNioGlobalWorkerPool=true, b=TransportConfiguration(name=netty-backup, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?port=6446&host=localhost], backupGroupName=group1, scaleDownGroupName=null]
      	nodes=4	members=2",
              "use-duplicate-detection" => true
          }
      }
      

            mtaylor1@redhat.com Martyn Taylor (Inactive)
            eduda_jira Erich Duda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: