Skip to content

sql: reduce log frequency of statistics discarded due to memory limit #110454

@j82w

Description

@j82w

Problem:
When the statistics memory limit is hit a log message is emitted. This log
occurs for every transaction. This can cause a flood of messages causing
memory issues, contention, and is not useful at that frequency.

Solution:
Add an internal cluster setting sql.metrcs.discarded_stats_log.interval
to limit how often the log message occurs.

Informs: https://cockroachlabs.atlassian.net/browse/SREOPS-7255

Jira issue: CRDB-31437

Metadata

Metadata

Assignees

Labels

A-cluster-observabilityRelated to cluster observabilityC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.v23.1.12

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions