Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12193

Data distribution REST endpoint for a cluster

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 14.0.0.Final
    • 12.0.0.Final
    • REST
    • None

      The data distribution for cluster endpoint is an endpoint will return:

      • node name
      • node ip
      • memory available 
      • memory used 

            [ISPN-12193] Data distribution REST endpoint for a cluster

            Jose Bolina added a comment - - edited

            Added a GET endpoint at  `/rest/v2/cluster?action=distribution`. The response is:

            [
              {
                "node_name": "NodeA",
                "node_addresses": [
                  "127.0.0.1:39313"
                ],
                "memory_available": 466180016,
                "memory_used": 56010832
              },
              {
                "node_name": "NodeB",
                "node_addresses": [
                  "127.0.0.1:47477"
                ],
                "memory_available": 467548568,
                "memory_used": 54642280
              }
            ] 

            The memory information is in bytes.

            Jose Bolina added a comment - - edited Added a GET endpoint at  `/rest/v2/cluster?action=distribution`. The response is: [   {     "node_name" : "NodeA" ,     "node_addresses" : [       "127.0.0.1:39313"     ],     "memory_available" : 466180016,     "memory_used" : 56010832   },   {     "node_name" : "NodeB" ,     "node_addresses" : [       "127.0.0.1:47477"     ],     "memory_available" : 467548568,     "memory_used" : 54642280   } ] The memory information is in bytes.

              rh-ee-jbolina Jose Bolina
              karestig@redhat.com Katia Aresti
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: