All Projects → mishudark → S3 Parallel Put

mishudark / S3 Parallel Put

Licence: mit
Parallel uploads to Amazon AWS S3

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to S3 Parallel Put

Pgbackrest
Reliable PostgreSQL Backup & Restore
Stars: ✭ 766 (+160.54%)
Mutual labels:  s3, parallel
React Dropzone Uploader
React file dropzone and uploader
Stars: ✭ 276 (-6.12%)
Mutual labels:  s3
last-hit
puppeteer UI automation test tools, record once, run everywhere, bringing you a comprehensive and enjoyable automation experience
Stars: ✭ 29 (-90.14%)
Mutual labels:  parallel
Shrine
File Attachment toolkit for Ruby applications
Stars: ✭ 2,903 (+887.41%)
Mutual labels:  s3
simply-static-deploy
WordPress plugin to deploy static sites easily to an AWS S3 bucket.
Stars: ✭ 48 (-83.67%)
Mutual labels:  s3
Nucleus
A configurable and versatile update server for all your Electron apps
Stars: ✭ 266 (-9.52%)
Mutual labels:  s3
s3-mongo-backup
Mongodb backups to S3
Stars: ✭ 18 (-93.88%)
Mutual labels:  s3
Quantum
Powerful multi-threaded coroutine dispatcher and parallel execution engine
Stars: ✭ 291 (-1.02%)
Mutual labels:  parallel
Awesome Cuda
This is a list of useful libraries and resources for CUDA development.
Stars: ✭ 274 (-6.8%)
Mutual labels:  parallel
Roapi
Create full-fledged APIs for static datasets without writing a single line of code.
Stars: ✭ 253 (-13.95%)
Mutual labels:  s3
Burry.sh
Cloud Native Infrastructure BackUp & RecoveRY
Stars: ✭ 260 (-11.56%)
Mutual labels:  s3
qwery
A SQL-like language for performing ETL transformations.
Stars: ✭ 28 (-90.48%)
Mutual labels:  s3
Flydrive
☁️ Flexible and Fluent framework-agnostic driver based system to manage storage in Node.js
Stars: ✭ 275 (-6.46%)
Mutual labels:  s3
data-parallelism
juliafolds.github.io/data-parallelism/
Stars: ✭ 22 (-92.52%)
Mutual labels:  parallel
Juicefs
JuiceFS is a distributed POSIX file system built on top of Redis and S3.
Stars: ✭ 4,262 (+1349.66%)
Mutual labels:  s3
node-bogota
🚀 Run tape tests concurrently with tap-spec output
Stars: ✭ 15 (-94.9%)
Mutual labels:  parallel
Csi S3
A Container Storage Interface for S3
Stars: ✭ 255 (-13.27%)
Mutual labels:  s3
Alpha Zero Gomoku
A Multi-threaded Implementation of AlphaZero
Stars: ✭ 264 (-10.2%)
Mutual labels:  parallel
Parallel.js
Easy multi-core processing utilities for Node.
Stars: ✭ 3,096 (+953.06%)
Mutual labels:  parallel
Bluepill
Bluepill is a reliable iOS testing tool that runs UI tests using multiple simulators on a single machine
Stars: ✭ 3,080 (+947.62%)
Mutual labels:  parallel

s3-parallel-put Parallel uploads to Amazon AWS S3

s3-parallel-put speeds the uploading of many small keys to Amazon AWS S3 by executing multiple PUTs in parallel.

Dependencies

Installation

# Debian family
apt-get update && apt-get -y install python-pip
pip install boto
pip install python-magic
wget -O /usr/bin/s3-parallel-put https://raw.githubusercontent.com/mishudark/s3-parallel-put/master/s3-parallel-put
chmod +x /usr/bin/s3-parallel-put

Usage

The program reads your credentials from the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

s3-parallel-put --bucket=BUCKET --prefix=PREFIX SOURCE

Keys are computed by combining PREFIX with the path of the file, starting from SOURCE. Values are file contents.

Options:

  • -h, --help — show help message
S3 options:
  • --bucket=BUCKET — set bucket
  • --bucket_region=BUCKET_REGION — set bucket region if not in us-east-1 (default new bucket region)
  • --host=HOST — set AWS host name
  • --secure and --insecure control whether a secure connection is used
Source options:
  • --walk=MODE — set walk mode (filesystem or tar)
  • --exclude=PATTERN — exclude files matching PATTERN
  • --include=PATTERN — don't exclude files matching PATTERN
  • --ignore-files-older-than-days=DAYS — ignore files older than defined DAYS, only sync newer files
Put options:
  • --content-type=CONTENT-TYPE — sets the Content-Type header, set to "guess" to guess based on file name or "magic" to guess by filename and libmagic

  • --gzip — compresses common text files and sets the Content-Encoding header to gzip

  • --gzip-type=GZIP_TYPE — if --gzip is set, sets what content-type to gzip, defaults to a list of known text content types, "all" will gzip everything. Specify multiple times for multiple content types (eg.--gzip-type=guess --gzip-type="image/svg+xml") [default: "guess"]

  • --put=MODE — sets the heuristic used for deciding whether to upload a file or not. Valid modes are:

    • add set the key's content if the key is not already present.
    • stupid always set the key's content.
    • update set the key's content if the key is not already present and its content has changed (as determined by its ETag).
    • copy
      The default heuristic is update. If you know that the keys are not already present then stupid is fastest (it avoids an extra HEAD request for each key). If you know that some keys are already present and that they have the correct values, then add is faster than update (it avoids calculating the MD5 sum of the content on the client side).
  • --prefix=PREFIX — set key prefix

  • --resume=FILENAME — resume from log file

  • --grant=GRANT — A Canned ACL policy to be applied to each file uploaded. Choices: private, public-read, public-read-write, authenticated-read, bucket-owner-read, bucket-owner-full-control, log-delivery-write

  • --header=HEADER:VALUE — adds an arbitrary header to the S3 file. This option can be specified multiple times.

  • --encrypt-key — use server side encryption

Logging options:
  • --log-filename=FILENAME — set log filename
  • -q, --quiet — less output
  • -v, --verbose — more output to be printed, including progress of individual files
Debug and performance tuning options:
  • --dry-run — don't write to S3. Causes the program to print what it would do, but not to upload any files. It is strongly recommended that you test the program with this option before transferring any real data.
  • --limit=N — set maximum number of keys to put. Causes the program to upload no more than N files. Combined with --dry-run, this is also useful for testing.
  • --processes=N — sets the number of parallel upload processes

Architecture

  • A walker process generates (filename, key_name) pairs and inserts them in put_queue.
  • Multiple putter processes consume these pairs in parallel, uploading the files to S3 and sending file-by-file statistics to stat_queue.
  • A statter process consumes these file-by-file statistics and generates summary statistics.

Bugs

  • Limited error checking.

To Do

  • Automatically parallelize uploads of large files by splitting into chunks.

Related projects

Licence

The MIT License (MIT)

Copyright (c) 2011-2014 Tom Payne

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

vim: set spell spelllang=en textwidth=76:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].