-
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.
When backing up, each range is asked to export its data to the BACKUP storage destination. However if a range contains very little data to backup, which is very often be the case during an incremental backup if only a handful of rows in that range were modified, the resulting file may be very small. If a cluster has tens of thousands of ranges, having each write separate, small files produces a backup made up of tens of thousands of tiny files. Running such a backup every hour or more often rapidly produces potentially millions of files very quickly. This adds up in storage costs, metadata and tracking overhead, etc. This change adds a setting bulkio.backup.merge_file_size under which a range will _return_ the file it would have written to the backup storage destination instead of writing it. This leverages the fact that the backup process will merge the returned file with other returned files until it has a file of the desired target size. Release note (ops change): the new setting bulkio.backup.merge_file_size allows BACKUP to buffer and merge smaller files to reduce the number of small individual files created by BACKUP.
- Loading branch information
Showing
8 changed files
with
588 additions
and
537 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
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.