Skip to content

Consolidate monitor status fetching into a new shared endpoint#6333

Open
DomGarguilo wants to merge 1 commit intoapache:mainfrom
DomGarguilo:statusEndpoint
Open

Consolidate monitor status fetching into a new shared endpoint#6333
DomGarguilo wants to merge 1 commit intoapache:mainfrom
DomGarguilo:statusEndpoint

Conversation

@DomGarguilo
Copy link
Copy Markdown
Member

fixes #6325

  • consolidate monitor server status into a single shared /rest-v2/status endpoint
  • remove the legacy /rest/status path
  • remove status data from the table JSON payloads (ServerView DTO too) and use this new, leaner endpoint instead
  • the new endpoint returns status keyed by ServerId.Type along with manager goal state info
  • SystemInformation is now used as the single backend source for status calculation
  • Make it so the tserver status is ERROR when there are no tservers running

@DomGarguilo DomGarguilo added this to the 4.0.0 milestone Apr 23, 2026
@DomGarguilo DomGarguilo self-assigned this Apr 23, 2026

private Map<ServerId.Type,Status> getComponentStatuses(SystemInformation summary) {
Map<ServerId.Type,Status> statuses = new EnumMap<>(ServerId.Type.class);
statuses.put(ServerId.Type.COMPACTOR, summary.getServerStatus(ServerId.Type.COMPACTOR));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like every time the rest endpoint is called it will recompute the statues. Could the computation be moved so its done once per information collection cycle? The computation does not seems too bad but it does at least go through all the servers and for the worker servers there could be lots of them.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea good point. It can probably be moved ill work on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add lightweight Monitor status endpoint for navbar LEDs

2 participants