-
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.
bulk, dashboards: fix c2c metrics and dashboards
This change fixes a few bugs around c2c metric collection and display: 1) This change fixes the unit on the c2c replication dashboard for the logical and sst byte metrics. 2) Previously, the IngestedEvents was the number of point keys in the current batch and the size of rangekeys in the batch. This has been corrected to be the sum of the lenght of point keys and rangekeys in the batch. 3) Previously, we were adding the running sum of the SSTDataSize to the metric tracking SST bytes, instead of only bytes ingested as a part of the current batch. This is incorrect and has been changed to only capture the number of bytes that have been ingested as part of the latest flush. 4) Callers of the SSTBatcher were making an incorrect assumption about the per batch BulkOpSummary that was exposed via the GetBatchSummary method. This per batch summary is reset whenever the SSTBatcher is reset. This reset is usually performed by the caller after a manual call to Flush. However, the batcher itself may decide to flush and reset while adding keys to the current batch thereby resetting the BulkOpSummary. So when the caller fetches the summary after the manual flush it would only contain a partial set of results that had been aggregated since the last internal flush. This change warns users against directly accessing the per batch BulkOpSummary and instead registering an OnFlush callback that is called on every successful flush of the batcher. The stream ingestion processor now updates is logical and sst bytes onFlush. Informs: #97224 Release note: None
- Loading branch information
1 parent
a66ad8b
commit 9f979ea
Showing
6 changed files
with
145 additions
and
75 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
Oops, something went wrong.