-
Enhancement
-
Resolution: Obsolete
-
Minor
-
None
-
7.1.0.DR18, 7.1.0.CR2
-
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 } }
- is related to
-
JBEAP-6857 Dump of Artemis cluster topology is hard to read
-
- Pull Request Sent
-