-
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.
66876: backupccl: buffer/sort returned files before flushing to remote r=dt a=dt BACKUP has multiple workers sending export requests concurrently so the returned files may arrive out of order. Previously this would always force the writer that flushed returned files out to the remote file to close the file it had been writing an open a new one, as any one file must be in-order. This adds a small queue of returned files to the sink to which it adds files it is given to write to remote storage. Once the queue has accumulated, it is sorted and partially drained to the remote file. This should increase the odds that files are added to the remote file in-order and thus do not require closing and re-opening additional remote files. With default worker (3) on a tpcc5k cluster running an incremental backup this was observed to reduce the number of files a node wrote from ~50-70 to <10. Release note: none. Co-authored-by: David Taylor <[email protected]>
- Loading branch information
Showing
1 changed file
with
84 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