Giter Site home page Giter Site logo

s3perf's Introduction

s3perf

Some performance ideas for S3 - make the most of request rates to S3:

The plan here is to create some proof of concept ideas for writing/reading to/from S3 to allow for higher request rates

Random Hash implementations:

  • Using a random hash prefix to the object name will allow for higher request rates. Here are some example s3://mybucket/[random hex hash]/objectname.txt s3://mybucket/a/objectname.txt s3://mybucket/b/objectname.txt .... s3://mybucket/z/objectname.txt

Example 1: s3hcp.py - This is an simple example of adding the MD5 hash of a file infront of object name and then writing an index file that contains the object name and the location (hashed) in a csv.

Use:

python3 s3hcp.py [localfile(s)] --bucket [bucketname]

Example use for copying files in the current folder (doesn't recursively copy folders just yet):

python3 s3hcp.py * --bucket mybucket or python3 s3hcp.py *.csv --bucket mybucket

Some further ideas:

  • async implementation or look at threading for higher through-puts
  • need to put more exception checking in:
    • check the bucket exists
  • allow for writing ACLs, encryption, tags and meta-data
  • allow for an input file list to process for upload to S3
  • allow for retry logic and debug log files

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.