-
Notifications
You must be signed in to change notification settings - Fork 4.1k
server: add memory accouting for Statements gRPC endpoint #69032
Copy link
Copy link
Closed
Labels
A-sql-observabilityRelated to observability of the SQL layerRelated to observability of the SQL layerC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)X-staleno-issue-activity
Description
Currently, the Statement (GET /_status/statements) performs RPC fanout to the entire cluster and buffers all response in memory. This can create issue where the total amount of data it buffers will exceeds the currently available memory.
We should introduce memory accounting in the RPC handler to abort the handler if the memory limit has been exceeded
Jira issue: CRDB-9415
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-sql-observabilityRelated to observability of the SQL layerRelated to observability of the SQL layerC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)X-staleno-issue-activity