Git Product home page Git Product logo

minion's Introduction

Introduction

Minion, which achives an approoach to broadbrand traffic like BT, implemented by python and based on HTTP protocol

Minion can be easily used to dispatch data, similar to curl/wget. It also provides python API libs.

Installtion

minion cli need python 2.7, requests

minion tracker need python 2.7, django mysql

git clone git://github.com/alibaba/minion
cd minion
python setup.py install

Usage

deploy your tracker server

tracker need django mysql

python tracker/manage.py syncdb
python tracker/manage.py runserver # or use wsgi/nginx

try your minion cli

minion get http://foo.bar/testfile \
     --tracker some.tracker.server \
     --dest-path=/tmp/tops1 \
     --upload-rate 10M \
     --download-rate 100M \
     --callback delete \
     --upload-time 5 \
     --fallback
  • --tracker specify tracker
  • --dest-path specify the path data will be wrote to, default to current dir
  • --upload-time specify time for upload after download complete, default to 60s
  • --download-rate --upload-rate specify rate for upload/download can used with unit, like 10M
  • --fallback option, if no resource exists in tracker download directly from origin url
  • --callback
  • --verbose for more log

Framework

Minion work as picture below

image

PEER: The host ready to download SOURCE
TRACKER: The host manage PEERs and SOURCEs
SOURCE: URL of some data

STEP

  1. PEER0 access TRACKER to get peers that was uploading SOURCE, TRACKER return null
  2. PEER0 get SOURCE from origin url directly
  3. PEER0 upload SOURCE, telling that to TRACKER
  4. PEER1 do like step 1,return a list contain PEER0
  5. PEER1 get SOURCE from PEER0
  6. PEER1 do like step 3

License

Minion as a whole is released under the GNU General Public License version 2.

中文

minion's People

Contributors

linxiulei avatar

Watchers

James Cloos avatar August Tu avatar

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.