Skip to content

server: add memory accouting for Statements gRPC endpoint #69032

@Azhng

Description

@Azhng

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-sql-observabilityRelated to observability of the SQL layerC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)X-staleno-issue-activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions