欢迎来到天天文库
浏览记录
ID:259270
大小:709.63 KB
页数:22页
时间:2017-07-15
《基于闪存数据库系统调研报告》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Somekey-valuestoresusinglog-structureZhichaoLiangfrankey0207@gmail.comLevelDBRiakOutlineWhylogstructure?Riak:log-structurehashtableRethinkdb:log-structureb-treeLeveldb:log-structuremergetreeConclusionOutlineWhylogstructure?Riak:log-structurehashtableRethinkdb:log-structureb-treeLeveld
2、b:log-structuremergetreeConclusionLogStructureAlog-structuredfilesystemisafilesystemdesignfirstproposedin1988byJohnK.OusterhoutandFredDouglis.Designforhighwritethroughput,allupdatestodataandmetadataarewrittensequentiallytoacontinuousstream,calledalog.Conventionalfilesystemstendtolayout
3、fileswithgreatcareforspatiallocalityandmakein-placechangestotheirdatastructures.LogStructureforSSDRandomwritedegradesthesystemperformanceandshrinksthelifetimeofssd.Logstructureisssd-friendlynatively!MagneticDiskSSDfreefreefreefreefreefreefreefreefreefreefreefreedata1newdata1data2data3d
4、ata4newdata3blockblockdata3data2data1RAMfreefreefreedata2erasederasederasednewdata1data2data3data3OutlineWhylogstructure?Riak:log-structurehashtableRethinkdb:log-structureb-treeLeveldb:log-structuremergetreeConclusionRiak?Riakisanopensource,highlyscalable,fault-tolerantdistributeddatab
5、ase.Supportedcorefeatures:-operateinhighlydistributedenvironments-nosinglepointoffailure-highlyfault-tolerant-scalessimplyandintelligently-highlydataavailable-lowcostofoperationsBitcaskABitcaskinstanceisadirectory,andonlyoneoperatingsystemprocesswillopenthatBitcaskforwritingatagiventim
6、e.Theactivefileisonlywrittenbyappending,whichmeansthatsequentialwritesdonotrequirediskseeking.HashIndex:keydirAkeydirissimplyahashtablethatmapseverykeyinaBitcasktoafixed-sizestructuregivingthefile,offsetandsizeofthemostrecentlywrittenentryforthatkey.MergeThemergeprocessiteratesoveralln
7、on-activefileandproducesasoutputasetofdatafilescontainingonlythe“live”orlatestversionsofeachpresentkey.OutlineWhylogstructure?Riak:log-structurehashtableRethinkdb:log-structureb-treeLeveldb:log-structuremergetreeConclusionRethinkDB?RethinkDBisapersistent,industrial-strengthkey-values
此文档下载收益归作者所有