oss

package
v0.0.0-...-930013b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2016 License: MIT Imports: 16 Imported by: 0

README

OSS: A build-in distributed Object Storage Service for dockyard

oss-arch

Architecture of OSS

OSS=Object Storage Service ,which consists of three parts: APIServer , ChunkMaster and Chunkserver

  • APIServer is a stateless proxy service, which provides RESTful API to upload/download and manage image files and get Chunkserver info and file id from chunkmaster. APIServer choose a suitable chunkserver group to storage image according to Chunkserver information independently.

  • ChunkMaster is a master node designed to maintain chunkserver information and allocate the file id

  • Chunkserver is a storage node for performance and space efficiency. It appends single small image file into large files and maintain file index in memory keeping the IO overhead to a minimum. Normally, a Chunkserver group is consist of 3 Chunkservers and each image allocated to a Chunkserver group stored in all the Chunkservers.

besides, OSS needs the collaboration of a metadb, which stored metadata of images in key-value manner.

Example of backend driver configs setting in conf/runtime.conf

[oss]
apiport= 80
apihttpsport=443
partsizemb = 4

the config of OSS itself please see oss/oss.conf

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Instance

func Instance() *oss

Types

This section is empty.

Directories

Path Synopsis
pools
Package pools provides functionality to manage and reuse resources like connections.
Package pools provides functionality to manage and reuse resources like connections.
chunkmaster
api
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL