EdColeman opened a new pull request, #4567:
URL: https://github.com/apache/accumulo/pull/4567

   Adds a admin command `serviceStatus` to print service counts and hosts, with 
resource groups when appropriate to stdout.
   
   To run the command:
   
   ` > accumulo admin serviceStatus [--noHosts ] [--json]`
   
   The noHost option output provides a summary count
   The --json option provides unformatted json output (the --noHost option is 
ignored)
   
   Sample output:
   
   <details>
     <summary>Summary (service counts only)</summary>
   
   ```
   > accumulo admin serviceStatus --noHosts
   Report time: 2024-05-16T20:05:45.493Z
   ZooKeeper read errors: 0
   Managers: count: 1
   Monitors: count: 1
   Garbage Collectors: count: 1
   Tablet Servers: count: 2
   Scan Servers: count: 4
   Coordinators: count: 1
   Compactors: count: 4
   ```
   </details>
   
   <details>
     <summary>Full status</summary>
   
   ```
   > accumulo admin serviceStatus
   
   Report time: 2024-05-16T20:04:09.556Z
   ZooKeeper read errors: 0
   Managers: count: 1
     localhost:9999
   Monitors: count: 1
     localhost:9995
   Garbage Collectors: count: 1
     localhost:9998
   Tablet Servers: count: 2
     localhost:10000
     localhost:9997
   Scan Servers: count: 4
     resource groups:
       default
       sg1
     hosts (by group):
       default: localhost:10003
       default: localhost:9996
       sg1: localhost:10004
       sg1: localhost:10005
   Coordinators: count: 1
     localhost:9132
   Compactors: count: 4
     resource groups:
       q1
       q2
     hosts (by group):
       q1: localhost:9133
       q1: localhost:9134
       q2: localhost:9135
       q2: localhost:9136
   
   ```
   
   </details>
   
   <details>
     <summary>Full status formatted as json</summary>
   
   ```
   > accumulo admin serviceStatus --json | jq   (normally the output is 
unformatted)
   
   {
     "reportTime": "2024-05-16T20:01:39.593Z",
     "zkReadErrors": 0,
     "noHosts": false,
     "summaryMap": {
       "COMPACTOR": {
         "reportKey": "COMPACTOR",
         "resourceGroups": [
           "q1",
           "q2"
         ],
         "serviceNames": [
           "q1: localhost:9133",
           "q1: localhost:9134",
           "q2: localhost:9135",
           "q2: localhost:9136"
         ],
         "serviceCount": 4,
         "errorCount": 0
       },
       "COORDINATOR": {
         "reportKey": "COORDINATOR",
         "resourceGroups": [],
         "serviceNames": [
           "localhost:9132"
         ],
         "serviceCount": 1,
         "errorCount": 0
       },
       "GC": {
         "reportKey": "GC",
         "resourceGroups": [],
         "serviceNames": [
           "localhost:9998"
         ],
         "serviceCount": 1,
         "errorCount": 0
       },
       "MANAGER": {
         "reportKey": "MANAGER",
         "resourceGroups": [],
         "serviceNames": [
           "localhost:9999"
         ],
         "serviceCount": 1,
         "errorCount": 0
       },
       "MONITOR": {
         "reportKey": "MONITOR",
         "resourceGroups": [],
         "serviceNames": [
           "localhost:9995"
         ],
         "serviceCount": 1,
         "errorCount": 0
       },
       "S_SERVER": {
         "reportKey": "S_SERVER",
         "resourceGroups": [
           "default",
           "sg1"
         ],
         "serviceNames": [
           "default: localhost:10003",
           "default: localhost:9996",
           "sg1: localhost:10004",
           "sg1: localhost:10005"
         ],
         "serviceCount": 4,
         "errorCount": 0
       },
       "T_SERVER": {
         "reportKey": "T_SERVER",
         "resourceGroups": [],
         "serviceNames": [
           "localhost:10000",
           "localhost:9997"
         ],
         "serviceCount": 2,
         "errorCount": 0
       }
     }
   }
   
   ```
   </details>
   
   Fixes #4495 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to