Parity Redundancy Strategies in a Large Scale Distributed Storage System

  • 格式:pdf
  • 大小:59.95 KB
  • 文档页数:7

ParityRedundancyStrategiesinaLargeScaleDistributedStorageSystem

JohnA.ChandyDept.ofElectricalandComputerEngineeringUniversityofConnecticutStorrs,CT06269-1157jchandy@uconn.edutel+1-860-486-5047

AbstractWiththedeploymentoflargerandlargerdistributedstoragesystems,datareli-abilitybecomesmoreandmoreofaconcern.Inparticular,redundancytechniquesthatmayhavebeenappropriateinsmall-scalestoragesystemsanddiskarraysmaynotbesufficientwhenappliedtolargerscalesystems.Weproposeanewmechanismcalleddelayedparitygenerationwithactivedatareplication(DPGADR)tomaintainhighreliabilityinalargescaledistributedstoragesystemwithoutsacrificingfault-freeperformance.

1IntroductionDatacreationandconsumptionhasincreasedsignificantlyinrecentyearsandstudieshavesuggestedthattheamountofinformationstoreddigitallywillcontinuetodoubleeveryyearfortheforeseeablefuture.Thisincreasingneedforinformationstorageleadstoacorre-spondingneedforhigh-performanceandreliablestoragesystems.Singlestoragenodescannotprovidetherequiredstoragecapacityorscalability.Thus,inanefforttosatisfythisneed,therehasbeensignificantworkintheareaofdistributedstoragesystemswherestoragenodesareaggregatedtogetherintoalargercohesivestoragesystem.Theseincludedistributingdataamongstshareddisks[1,6,12],dedicatedstoragenodes[8],clusteredservers[4],ortheclientsthemselves[2,7].Itisnotunreasonabletoexpectsystemswithpetabytesofdatadistributedacrossthousandsofnodesinthesedistributedstoragesystems.However,asweincreasethenumberofnodes,thereliabilityoftheentiresystemde-creasescorrespondinglyunlessstepsaretakentointroducesomeformofredundancyintothesystem.Inthispaper,wediscussredundancymechanismstoprovidehighreliabilitywithoutsacrificingfaultfreeperformance.Forthepurposesofthispaper,werefertoin-dividualstoragedevicesinthedistributedstoragesystemasnodes-whethertheybedisksinashareddiskSAN,serversinaclusteredserver,orOBSDsinanetworkattacheddisksystem.Thetechniquesandstrategiesapplywithslightvariationstoallimplementations.DataredundancyinmostdiskarraysubsystemsistypicallyprovidedbyusingRAID.Thesesametechniquesusedatthedisklevelcanalsobeusedatthenodelevel.Mirroring,

101orRAID1,entailsreplicationofthedataonmultiplenodes.Paritystriping,orRAID5,involvesspreadingdataalongwithparityacrossmultiplenodes.ChoosingwhichRAIDleveltouseistypicallydeterminedbycostandapplicationrequirements.Atthediskarraylevel,theredundancychoiceisusuallyRAID5asitprovidesexcellentavailability,littlestorageoverhead,andadequateperformance.However,withalargescaledistributedsystem,thechoiceisnotsoclear.RAID5nolongerprovidessufficientreliabilitysinceathousandnodesystemcouldexhibitMTTFsofafewyears.Amirroreddistributedstoragesystem,however,canhaveanMTTFofseveraldecades.Inaddition,RAID5suffersfromthewell-knownwritepenaltywherebyparityupdatesrequiretwoextrareadstogeneratetheparity.Techniquestoovercomethisprobleminadisksubsystemsuchastheuseofnon-volatilecachescannotbeusedinadistributedsystem.Moreover,thecostofthewritepenaltyismoresignificantbecauseofthehighlatencycostsinherentinnetworkcommunications.Becauseofthelimitationsofparitystriping,inmanydistributedstoragesystems,repli-cationormirroringisthepreferredstrategyforredundancy[3,15].Inaddition,replicationallowswidelydistributedclientsandnodestotakeadvantageoflocalityandretrievedatafromthecloseststoragenode.However,thecostofmirroringisthe100%storageoverhead.Inthispaper,wepresentmethodstoachievethelowstorageoverheadofparitystripingbutretainingtheperformanceandreliabilitycharacteristicsofmirroring.Inparticular,wediscusstheuseofdelayedparitygenerationtoimproveparitystripingperformance.

2DelayedParityGenerationwithActiveDataReplicationTheconceptofdelayedparitygenerationwithactivedatareplication(DPGADR)isbasedonreducingthenumberofaccessesrequiredtogenerateparityinaRAID5system.InastandardRAID5diskarray,thearraycontrollermustreadoldvaluesfromboththedataandparitydisksandthenwritethenewdatabacktothedatadiskandtheXOR’edparityresultbacktotheparitydisk.Thisresultsinatotalof4diskaccesses(potentially2iftheparityanddatareadshadbeencached).InaDPGADRsystem,wedelaythegenerationoftheparity,andthusdonotrequirethereadingofolddataandparityorthewritingtheparityresult.However,withoutparitygeneration,thesystemispotentiallycompromisedintheeventoffailure.Toaddressthis,wereplicatethenewdatatoareplicationnodethatisnotpartoftheRAIDedredundancygroup.Wehavereducedthenumberofaccessestojust2writes-bothofwhichcanbeproceedinparallel.Figure1showsthedatadistributioninaDPGADRsystem.Inordertodistributetheload,thereplicationnodecanberotatedacrosstheredundancygroup.Eachreplicationnodekeepsamaprelatingtheactualblocklocationtotheactivedatalocationskeptonthenode.Thus,theclientisnotresponsibleforidentifyingtheblocklocationforthereplicateddataonthereplicationnode.TheclientcanuseasimplehashalgorithmtomapfromblockIDtoreplicationnode,anditisthenthereplicationnode’sresponsibilitytoallocatestoragespacelocally.Onthesurface,thisDPGADRschemeappearstobesimplymirroringofdata.However,wedonotmaintainthemirroreddataonthereplicationnodeinperpetuity.Inordertoavoidreplicatingalldatawrites,thereplicationnodewillperiodicallygeneratetheparityforany