forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
135192: ttljob: adjust logs; reset progress when resuming; add time-based limiter for progress updates r=rafiss a=rafiss ### ttljob: adjust fractionCompleted logs This makes the logs added in 3cbe0b4 slightly more useful by adjusting the variable names, and showing the running count of number of spans processed. ### ttljob: reset progress when resuming job The job starts from the beginning when it is paused/resumed, so we need to update the fraction completed back to 0. ### ttljob: add time-based limiting for updating progress There was a risk of a thundering herd of processors all updating progress in rapid succession (which may happen if they all process spans that don't have any rows to delete). This patch adds a check so that the progress is only updated at most once every 60 seconds (with some added jitter). informs: cockroachdb#86884 Release note: None Co-authored-by: Rafi Shamim <[email protected]>
- Loading branch information
Showing
2 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters