Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server: add EngineStats endpoint in multitenant setup #143633

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shaikzakiriitm
Copy link
Contributor

@shaikzakiriitm shaikzakiriitm commented Mar 28, 2025

EngineStats endpoint was inaccessible from secondary tenant.

EngineStats endpoint provides statistics of storage layer which can help diagnose myriad of issues critical to database performance.
To address this, we created EngineStatus endpoint in tenant status server. Implementation uses tenant connector to redirect call to system status server on requested kv node. Access to this endpoint is guarded by can_view_node_info capability as this endpoint returns info of all stores on a given node. Updated corresponding unit tests.

Epic: CRDB-38968
Fixes: #110020

Release note: None

@shaikzakiriitm shaikzakiriitm requested review from a team as code owners March 28, 2025 06:22
@shaikzakiriitm shaikzakiriitm requested review from aerfrei and xinhaoz and removed request for a team March 28, 2025 06:22
@cockroach-teamcity
Copy link
Member

This change is Reviewable

EngineStats endpoint was inaccessible from secondary tenant.

EngineStats endpoint provides statistics of storage layer which can help
diagnose myriad of issues critical to database performance.
<what you did about it: To address this, this patch ...>
To address this, we created EngineStatus endpoint in tenant status server.
Implementation uses tenant connector to redirect call to system status server
on requested kv node. Access to this endpoint is guarded by `can_view_node_info`
capability as this endpoint returns info of all stores on a given node. Updated
corresponding unit tests.

Epic: CRDB-38968
Fixes: cockroachdb#110020
Part of: CRDB-31226

Release note: None
@shaikzakiriitm shaikzakiriitm changed the title server,kv,rpc: add EngineStats endpoint in multitenant setup server: add EngineStats endpoint in multitenant setup Apr 4, 2025
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.

server: the "enginestats" status API endpoint should work with secondary tenants with sufficient capability
2 participants