-
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.
gcp,s3,azure: make the storage client upload chunk size configurable
This change adds a `cloudstorage.write_chunk_size` cluster setting that allows us to control the size of the chunks buffered by the cloud storage client when uploading a file to storage. The setting defaults to 8MiB. Prior to this change gcs used a 16MB buffer, s3 a 5MB buffer, and azure a 4MB buffer. A follow up change will add memory monitoring to each external storage writer to account for these buffered chunks during upload. This change was motivated by the fact that in google-cloud-storage SDK versions prior to v1.21.0 every chunk is given a hardcoded timeout of 32s to successfully upload to storage. This includes retries due to transient errors. If any chunk during a backup were to hit this timeout the entire backup would fail. We have additional work to do to make the job more resilient to such failures, but dropping the default chunk size might mean we see fewer chunks hit their timeouts. Release note: None
- Loading branch information
1 parent
9769856
commit 147bd0a
Showing
4 changed files
with
14 additions
and
2 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