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
148471: changefeedccl: record metrics for pts management r=asg0451,andyyang890 a=aerfrei
Before this commit, we did not measure the performance
of protected timestamp creation or management. Since
DB-level changefeeds will potentially create many more
PTS records per job (one per watched table), we will
use these metrics to establish a baseline of how long
these operations take and to alert us to issues if
the new DB-level feeds overwhelm the PTS record table.
We will measure the speed of both creating the initial
PTS records in changefeed.create_pts_hist_nanos and the
speed of advancing the PTS records when the frontier
progresses in changefeed.manage_pts_hist_nanos.
Epic: none
Fixes: #147779
Informs: #147780
Release note: This change adds new metrics:
changefeed.create_pts_hist_nanos
and changefeed.manage_pts_hist_nanos to measure the
performance of managing protected ts records.
Co-authored-by: Aerin Freilich <[email protected]>
description: 'Latency of the changefeed stage: Time spent successfully managing protected timestamp records on highwater advance, including time spent creating new protected timestamps when needed'
KVFeedBuffer: b.Histogram(histogramOptsFor("changefeed.stage.kv_feed_buffer.latency", "Latency of the changefeed stage: waiting to buffer kv events")),
55
58
RangefeedBufferValue: b.Histogram(histogramOptsFor("changefeed.stage.rangefeed_buffer_value.latency", "Latency of the changefeed stage: buffering rangefeed value events")),
56
59
RangefeedBufferCheckpoint: b.Histogram(histogramOptsFor("changefeed.stage.rangefeed_buffer_checkpoint.latency", "Latency of the changefeed stage: buffering rangefeed checkpoint events")),
60
+
PTSManage: b.Histogram(histogramOptsFor("changefeed.stage.pts.manage.latency", "Latency of the changefeed stage: Time spent successfully managing protected timestamp records on highwater advance, including time spent creating new protected timestamps when needed")),
61
+
PTSManageError: b.Histogram(histogramOptsFor("changefeed.stage.pts.manage_error.latency", "Latency of the changefeed stage: Time spent managing protected timestamp when we eventually error")),
62
+
PTSCreate: b.Histogram(histogramOptsFor("changefeed.stage.pts.create.latency", "Latency of the changefeed stage: Time spent creating protected timestamp records on changefeed creation")),
0 commit comments