You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
149540: metric: Report aggregate metric when no child metrics are present r=dhartunian a=alyshanjahani-crl
SQLMetrics are PrometheusIterable, they are the first and only instance of metrics that dynamically add and remove childset metrics.
This commit fixes a bug where the includeAggregate flag being false (cluster setting disabled) resulting in these SQLMetrics not being reported.
When a PrometheusIterable has no child metrics it should report the aggregate regardless of the cluster setting.
Fixes: #149481
Release note (bug fix): When child metrics are enabled, include_aggregate is disabled, and the sql.metric.application_name/database_name are disabled, a handful of `sql` metrics were not being reported.
149712: storage: aggressively separate values in range ID keyspace r=sumeerbhola a=jbowens
Adapt Cockroach's implementation of pebble.SpanPolicyFunc to mark the range ID keyspace with ValueStorageLatencyTolerant. This setting will cause Pebble to separate values into blob files as long as they're large enough that a pointer to an external value is likely to be smaller than the value itself. Separating values improves write amplification by avoiding rewriting values during some compactions.
We target the range ID keyspace because it contains the raft log, which is written during all user writes but rarely read.
Tangentially related to #16624.
Epic: none
Release note (performance improvement): Reduces write amplification by storing raft log values in separate blob files. This reduces write bandwidth, especially on stores with many replicas. This in turn can increase throughput and reduce latency. This behavior is active as long as the storage.value_separation.enabled cluster setting is enabled.
Co-authored-by: Alyshan Jahani <[email protected]>
Co-authored-by: Jackson Owens <[email protected]>
0 commit comments