Adding PEP to Real-Time Distributed Commit Process

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

!#%$’&(*),+-!/.,01)/+2!/34+56*7879),+-!/3:7;=?A@’BDCDEF@HGI8JKALNMPORQ=SJUTVXWYWZW[TWZ\]_^‘:^[aD^cbedgfZhib‘jdHkbKl9^caf6m6nodHprqsYkn1m#‘jdHputwvxmyqz^‘4{|sY}^}(v~udbedz^prq’SdH}‘4prd}xv({^}}ib‘4{‘:m‘jdsf#qH{|dH}yqdS^}iP^|spdgXXyzyx}xv({^%1641y(Syi¢¡£⁄1⁄61¡¥Ry#ƒ?Z§⁄cƒ¤“'“«‹fi›fl–‡†·*•¶‹,‚fi›„«”“»fi…‰¿«`,…`«:´|,ˆ˜–,¯‡‰¿˘«`«”„‰¿˘¯,˙F¨,ˆ˘‰¿´‡¨/˚2›¸‰›¸‚fi›„«:‡†˛˝ˇ«…—˘,‡¿‡¯‡•˙fi*•¶,´‡•,˙•¨/ˆfi‰¿´,fl'e«`‹fi›fl|†·*‡¶‹˘‚fi›¸«`”»fi…`‰Æ«,…«´‡,ˆ˜–˘¯•‰Æ˘««`”¸‰Æ,¯,˙¨,ˆfi‰´|¨,˚-›„‰Æ›„‚˘›„«‡†ª˝ˇ«…—˘,‡¿‡¯‡•fi*•¶,´•˙c‚˘¶,´‡‰˘••‡F˘˙¨,ˆ˘‰¿´,flAddingPEPtoReal-TimeDistributedCommitProcessingJayantR.HaritsaKrithiRamamrithamDatabaseSystemsLab,SERCDept.ofCSEIndianInstituteofScienceIndianInstituteofTechnologyBangalore560012,INDIAMumbai400076,INDIAharitsa@dsl.serc.iisc.ernet.inkrithi@cse.iitb.ernet.inSeptember4,2000AbstractOne-phasecommitprotocolssubstantiallyreducetheoverheadsoftransactioncommitprocessing,makingthemattractiveforincorporationindistributedreal-timedatabases.Amajorobstacle,however,isthatthesepro-tocolssignificantlyincreasetheoccurrenceofpriorityinversions.Thisarisesfromthecohortsofeachdistributedtransactionbeinginapreparedstateforextendedperiodsoftime,duringwhichtheirdatalockscannotbepre-empted.Wepresenthereanewone-phasereal-timecommitprotocol,calledPEP,thataddressestheabove-mentionedproblembyapplyingthetechniqueofcontrolledborrowingofprepareddata,whichwehadpreviouslyproposedandsuccessfullyutilizedformulti-phasecommitprotocols.Simulation-basedevaluationofPEPforreal-timeap-plicationswithfirmdeadlinesdemonstratesthat,foravarietyofenvironments,itsubstantiallyreducesthenumberofkilledtransactionsascomparedtoitsmulti-phasecounterparts.Infact,PEPoftenprovidesbetterperformancethanevenanequivalentcentralizedsystem.1IntroductionManytime-criticalapplications,includingemerginge-commerceande-informationservicesaswellasintelligenttelecomsystems,accessdatathatislocatedonmultiplesites.Tohelpachievetheirreal-timeobjectives,theseap-plicationsrequireefficientsupportforconsistentlyandatomicallyperformingupdatesacrosstheirdatarepositories[16].Distributeddata-basedsystemstypicallyimplementatransactioncommitprotocolsuchastheclassicalTwoPhaseCommit(2PC)[4]toensuretheatomicityofmulti-siteupdates.Commitprotocolsrequireexchangeofmulti-plemessages,inmultiplephases,betweentheparticipatingsiteswhereadistributedtransactionexecutes.Inaddition,severallogrecordsaregenerated,someofwhichhavetobe“forced”,thatis,flushedtodiskimmediately.Duetothesecosts,commitprocessingcanresultinasignificantincreaseintransactionexecutiontimes[11].Developinghigh-performancetransactioncommitprotocolsisthereforeanimportantprobleminthedesignofdistributedreal-timedatabasesystems(DRTDBS).Wetookafirststeptowardsaddressingtheaboveissueinarecentpaper[6],whereinweinvestigatedthereal-timeperformanceofavarietyofcommitprotocols,includingtheclassicalTwo-PhaseCommit(2PC)[4]andThree-PhasePartofthisworkwasdoneduringasabbaticalatLucentBellLabs,600MountainAvenue,MurrayHill,NJ07974,USA.AlsoaffiliatedwithDept.ofComputerScience,Univ.ofMassachusetts,Amherst,MA01003,USA.1Commit(3PC)[13].Wealsoproposedanew2PC-basedcommitprotocolcalledPROMPTandshowedthat,forfirm-deadline[5]applications,itwasfarmoresuccessfulthantheclassicalprotocolsinminimizingthenumberof“killed”(permanentlyabortedduetomissingtheirdeadlines)transactions.Ourearlierstudiesfocussedexclusivelyontwoandthree-phasecommitprotocols.Intheseprotocols,commitprocessingbeginsonlyafterallthedataprocessingassociatedwithatransactionhasbeencompleted.Wemoveon,inthispaper,toinvestigatingthereal-timecharacteristicsofone-phasecommit(1PC)protocols.Thereisnoexplicit“votingphase”todecideontheoutcome(commitorabort)ofthetransactionintheseprotocolssincecohortsenterthe“preparedstate”atthetimeofsendingtheworkcompletionmessageitself–thatis,thecommitprocessinganddataprocessingactivitiesareeffectivelyoverlapped.ExamplesofsuchprotocolsincludeEarlyPrepare(EP)[14],UnsolicitedVote(UV)[15]andIYV[2].Byeliminatinganentirephaseandtherebyreducingcommitprocessingoverheadsanddurations,1PCprotocolsseempotentiallycapableofcompletingmoretransactionsbeforetheirdead-lines.Inthispaper,weevaluatethereal-timeperformanceoftheEarlyPrepare(EP)1PCprotocol.Afundamentalproblemwithreal-timecommitprocessingisthatcohortsthatareinthepreparedstatecannotbepre-empted,evenifahigherprioritytransactionrequirestheirdata,resultinginpriorityinversion.In1PCprotocols,theinsidiouseffectsofpriorityinversionareexacerbatedbecauseoftheoverlapbetweendataprocessingandcommitprocessing,whichmeansthatacohortcanenterthepreparedstatelongbeforethetransactionhascompleteditsfulldataprocessing.Thereishencethepossibilitythattheadvantagesgainedfromeliminatingaprotocolphasemaybenegatedbytheill-effectsofincreasedpriorityinversion.Toaddresstheaboveproblem,weincorporatethetechniqueofcontrolledbor

1 / 22
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功