Giter Club home page Giter Club logo

cephstorage's Introduction

API document

https://app.swaggerhub.com/apis/elmeast1/CephStorage/1.0.2

Key Storage

  1. bucket name: username + '_'*3 + bucketname

  2. properties available to set:

    • content_type
    • md5 (integrity validating)
    • timetag (recording creating time)
  3. key index data structure:

    {
    	"key": "KEYNAME(String)",
    	"ts": "INT(Timestamp)",
    	"vfolder": "PrefixingPath(String)",
    	"md5": "MD5(String)",
    	"content_type":  "ContentType(String)",
    	"size": "SizeOfKey(Int)"
    }
  4. Key Creating Progress Record:

    {
    	"token": "Token(String)",
    	"progress": "State(String)",
    }

    State are in [inprogress, fail, success]

Configuration

  1. cephutils/cephop.py handles ceph operation with boto. it requires:
    • access key of Ceph User
    • secret key of Ceph User
    • ceph rgw gateway address
    • An address used for publishing resource url.
    • download_path where temporarily downloaded content are stored
    • CephStorageIndex: Store key indexes.
    • CephStorageGeneral: General Info
    • CephStorageConfiguratoin: Config Info
    • CephStorageMonitor: Monitoring Data

Mirror

  1. db: CephStorageGeneral.mirror
  2. data structure:
{
	"mirror_host": "String [Unique]",
	"bucket_name": "String",
	"real_host": "String"
}

Mirror Proxy

  1. Nginx server cached content to user
  2. Nginx ask Proxy for content not in Cache
  3. Proxy ask Ceph for content and proxy back to nginx.
  4. Proxy ask Provider's origin for content when Ceph doesn't have it
  5. Proxy proxy back content from Provider's origin and upload to Ceph.

mirrorproxy

cephstorage's People

Contributors

jilinxie avatar

Watchers

James Cloos avatar  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.