Skip to content

Change behavior of admin serviceStatus #5051

@ddanielr

Description

@ddanielr

Is your feature request related to a problem? Please describe.
The admin serviceStatus command lists hostnames and per host process counts by default.
On a production system this output is excessive and causes the terminal window to scroll off the result set.
A user has to add the --noHosts flag which provides a minimal view. However that strips off the group details.

Describe the solution you'd like
By default, the serviceStatus command should list a summary view of the system.
Similar to the following:

Managers: count: 1
  resource group: (default)
Monitors: count: 1
  resource group: (default)
Garbage Collectors: count: 1
  resource group: (default)
Tablet Servers: count: 5
  resource groups:
    default: 2
    group1: 3 
Scan Servers: count: 4
  resource group: (default)
Compactors: count: 14
  resource groups:
    default: 10
    group1: 4

Additional context
Current output:

ZooKeeper read errors: 0
Managers: count: 1
  resource group: (default)
    localhost:9999
Monitors: count: 1
  resource group: (default)
    localhost:9995
Garbage Collectors: count: 1
  resource group: (default)
    localhost:9998
Tablet Servers: count: 5
  resource groups:
    default
    group1
  hosts (by group):
    default (2):
      localhost:10000
      localhost:9997
    group1 (3):
      localhost:10001
      localhost:10002
      localhost:10003
Scan Servers: count: 4
  resource group: (default)
    localhost:10004
    localhost:10005
    localhost:10006
    localhost:9996
COORDINATOR: unavailable
Compactors: count: 14
  resource groups:
    default
    group1
  hosts (by group):
    default (10):
      localhost:9133
      localhost:9134
      localhost:9135
      localhost:9136
      localhost:9137
      localhost:9138
      localhost:9139
      localhost:9140
      localhost:9141
      localhost:9143
    group1 (4):
      localhost:9142
      localhost:9144
      localhost:9145
      localhost:9146

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis issue describes a new feature, improvement, or optimization.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions