Skip to content

Commit 2b293be

Browse files
author
Stephanie Bodoff
authored
Address statistics cleanup controls. (#14348)
1 parent 232bf26 commit 2b293be

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

_includes/v22.1/ui/statistics.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ Statistics aggregation is controlled by the `sql.stats.aggregation.interval` [cl
22

33
Aggregated statistics are flushed from memory to statistics tables in the [`crdb_internal`]({{ link_prefix }}crdb-internal.html) system catalog every 10 minutes. The flushing interval is controlled by the `sql.stats.flush.interval` cluster setting.
44

5-
The default retention period of the statistics tables is based on the number of rows up to 10 million records. When this threshold is reached, the oldest records are deleted.
5+
The default retention period of the statistics tables is based on the number of rows up to 10 million records. When this threshold is reached, the oldest records are deleted. The `diagnostics.forced_sql_stat_reset.interval` [cluster setting]({{ link_prefix }}cluster-settings.html) controls when persisted statistics are deleted only if the internal cleanup service experiences a failure.
66

77
To reset SQL statistics in the DB Console UI and `crdb_internal` system catalog, click **clear SQL stats**.
8-
9-
{{site.data.alerts.callout_info}}
10-
The `diagnostics.sql_stat_reset.interval` [cluster setting]({{ link_prefix }}cluster-settings.html) no longer controls the DB Console UI or the persisted statistics tables. `diagnostics.sql_stat_reset.interval` still resets the `node_statement_statistics` and `node_transaction_statistics` in-memory statistics.
11-
{{site.data.alerts.end}}

0 commit comments

Comments
 (0)