-
Notifications
You must be signed in to change notification settings - Fork 16
Update of S3 clients documentation #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
SpeekeR99
wants to merge
5
commits into
CESNET:main
Choose a base branch
from
SpeekeR99:zapped99_s3_boto3_doc
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
77ea803
S3 clients table and boto3 description added
SpeekeR99 37a138b
Big data transfers tips and tricks added
SpeekeR99 f36eeae
boto3 recent upload issues as a warning
SpeekeR99 fa913f0
compression tip and information added
SpeekeR99 3f2a89d
Changes based on PR review
SpeekeR99 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Big Data Tips and Tricks | ||
|
||
For **Big Data** sets, we recommend using the `boto3` library or `s5cmd` tool. | ||
|
||
## Fewer big files are better than many small files | ||
|
||
When transferring **Big Data**, it is better to use fewer big files instead of many small files. | ||
|
||
Be aware of that when you are transferring a lot of small files, the overhead of the transfer process can be significant. | ||
You can save time and resources by packing the small files into a single big file and transferring it as one object. | ||
|
||
## Chunk size matters | ||
|
||
When transferring big files, the upload (or download) process is divided into chunks - so called `multipart uploads` (or downloads). | ||
The size of these chunks can have a significant impact on the transfer speed. | ||
|
||
The optimal chunk size depends on the size of the files you are transferring and the network conditions. | ||
|
||
There is no one-size-fits-all solution, so you should experiment with different chunk sizes to find the optimal one for your use case. | ||
We recommend starting with a chunk size of `file_size / 1000` (where `file_size` is the size of the file you are transferring). | ||
You can then adjust the chunk size based on the results of your experiments. | ||
|
||
## Cluster choice matters | ||
|
||
Some cluster offer better `network interface` than others. | ||
|
||
When transferring big files, it is important to choose a cluster with a good network interface. | ||
One such cluster is the `halmir` machines, which offer a `10 Gbps` network interface. | ||
|
||
You can check the possible clusters and their network interfaces on the [official website](https://metavo.metacentrum.cz/pbsmon2/nodes/physical) of the MetaCentrum. | ||
|
||
## Hard disk speed does not matter | ||
|
||
Our research has shown that the speed of the hard disk does not have a significant impact on the transfer speed. | ||
|
||
When transferring big files, the network interface is the bottleneck, not the hard disk speed. | ||
|
||
Therefore, you do not need to worry about the usage of `tmpfs` or `ramdisk` when transferring big files. | ||
|
||
## Utilize compression | ||
|
||
When transferring big files, it is a good idea to utilize compression. | ||
|
||
You can compress the files before transferring them, effectively reducing the time and resources needed for the transfer. | ||
|
||
Choice of the compression algorithm depends on the type of the files you are transferring, there is no one-size-fits-all solution. | ||
We recommend using the `zstandard` algorithm, as it offers a good balance between compression ratio and decompression speed. | ||
Depending on the type of your files, you can also consider using the `gzip`, `bzip2`, or `xz` algorithms. | ||
|
||
For more information about the compression algorithms, please check this [comparison](https://quixdb.github.io/squash-benchmark/). | ||
|
||
## Use the right tool for the job | ||
|
||
When transferring big files, it is important to use the right tool for the job. | ||
|
||
If you are unsure which tool to use, we recommend checking the [Storage Department](storage-department.md) page with a table of S3 service clients. | ||
|
||
In short, we recommend using the `boto3` library or `s5cmd` tool for **Big Data** transfers. |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.