how to build system storage bigfile

16
How to transfer a BigFile Presenter: Nguyễn Văn Tiến Barcamp, RMIT, 2013 [email protected]

Upload: tien-nguyen-van

Post on 21-Jun-2015

149 views

Category:

Technology


3 download

DESCRIPTION

How to build system storage bigfile

TRANSCRIPT

Page 1: How to build system storage bigfile

How to transfer a BigFile

Presenter: Nguyễn Văn TiếnBarcamp, RMIT, [email protected]

Page 2: How to build system storage bigfile

Architecture

Page 3: How to build system storage bigfile

Upload

Page 4: How to build system storage bigfile

Download

Page 5: How to build system storage bigfile

Applications

Page 6: How to build system storage bigfile

Architecture

Page 7: How to build system storage bigfile

SBFSession

SBFProfiles

SBFMeta

SBFUserItems

IDZen

Frontend

SBFUpload

FilePoolSBFWork

er

SBFChunks

SBFZenTok

SBFDownload

Java, C++LibEvent, Poco,KyotoCabinet

Page 8: How to build system storage bigfile

Upload

Page 9: How to build system storage bigfile

SBFSession

SBFProfiles

SBFMeta

SBFUserItems

IDZen

Frontend

SBFUpload

FilePoolSBFWork

er

SBFChunks

1: reqPageUp

SBFZenTok

2b:genTok 3:tok2a:checkUser

SBFDownload

4:pageUp4:up(tok)

5a:check(tok)

6a:genId()

6b:writeFile(id)

7: putMeta

9:notify

8: putUsersFile

10: readFile

12: putChunks

11: genIds

6c: fileId

Page 10: How to build system storage bigfile

Download

Page 11: How to build system storage bigfile

SBFSession

SBFProfiles

SBFMeta

SBFUserItems

IDZen

Frontend

SBFUpload

FilePoolSBFWork

er

SBFChunks

1: reqPageDown

SBFZenTok

SBFDownload

4:pageDown

2a:checkUser2b:genTok 3:tok

4:down(tok)

5:getMeta

6:getChunks

loop

sendChunks

Page 12: How to build system storage bigfile

One more thing

Page 13: How to build system storage bigfile

SBFSession

SBFProfiles

SBFMeta

SBFUserItems

IDZen

Frontend

SBFUpload

FilePoolSBFWork

er

SBFChunks

SBFZenTok

SBFDownload

SBFChunks

SBFDownload

Node 1

SBFUpload

FilePoolSBFWork

er

SBFDownload

SBFChunks

Node 2

SBFNodeInfo

SBFBroker

Page 14: How to build system storage bigfile

Applications

Page 15: How to build system storage bigfile

Issues

Disk Bottleneck

Chunk Size, Sector Size, Block Size

Speed process file slow when concurrent upload high

Page 16: How to build system storage bigfile

Bottleneck disk