-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
35543: stats: decrease job infrastructure overhead r=RaduBerinde a=RaduBerinde Every job progress update involves a transaction that reads and writes to the jobs table (even if the progress didn't actually change), and this internally does a bunch of KV queries because the system table metadata/leases are not cached. For auto stats (which run frequently) we want to minimize any overhead. This change adds an alternative API that only checks for cancellation. The sampler aggregator now uses this API unless progress has changed by at least 1%. The reporting interval is also increased to 5 seconds. Release note: None Co-authored-by: Radu Berinde <[email protected]>
- Loading branch information
Showing
3 changed files
with
39 additions
and
12 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
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