您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > Chapter 1 REAL-TIME COMMIT PROCESSING
Chapter1REAL-TIMECOMMITPROCESSINGJayantR.HaritsaDatabaseSystemsLab,SuperomputerEduationandResearhCentreIndianInstituteofSiene,Bangalore560012,INDIA.haritsadsl.ser.iis.ernet.inKrithiRamamrithamDept.ofComputerSieneandEngineering,IndianInstituteofTehnology,Mumbai400076,INDIA.krithise.iitb.ernet.inRameshGuptaGoldenomTehnologies,In.392AomaWay,Fremont,CA94539,USA.rameshgoldenom.om1.INTRODUCTIONManyreal-timedatabaseappliationsareinherentlydistributedinna-ture[24,28℄.Theseinludetheintelligentnetworkserviesdatabasedesribedin[5℄andthemobileteleommuniationsystemdisussedin[29℄.Morereentappliationsinludethemultitudeofdiretory,data-feedandeletroniommereserviesthathavebeomeavailableontheWorldWideWeb.Anessentialrequirementformostdistributedreal-timedatabasesys-tem(DRTDBS)appliationsistransationatomiity{thisissatis edbyimplementingatransationommitprotool.Commitprotoolstypi-allyrequireexhangeofmultiplemessages,inmultiplephases,betweenthepartiipatingsiteswherethedistributedtransationexeuted.Inaddition,severallogreordsaregenerated,someofwhihhavetobe\fored,thatis, ushedtodiskimmediatelyinasynhronousman-ner.Duetothisseriesofsynhronousmessageandloggingosts,om-12mitproessingansigni antlyinreasetheexeutiontimesoftransa-tions[17,7,25℄.Thisisespeiallyproblematiinthereal-timeontextsineithasadiretadversee etonthesystem’sabilitytomeettrans-ationtimingonstraints.Therefore,thehoieofommitprotoolisanimportantdesigndeisionforDRTDBS.Unfortunately,thereislittlere-searhliteratureonthistopi,makingitdiÆultforDRTDBSdesignerstomakeinformedhoies.Weaddressthislaunaherewithadetailedquantitativeevaluationwhoseresultsrepresentthe rstsuhworkinthearea.Ourstudyisarriedoutintheontextofreal-timeappliationswith\ rm-deadlines[15℄{forsuhappliations,ompletingatransationafteritshasexpiredisofnoutilityandmayevenbeharmful.Therefore,transationsthatmisstheirdeadlinesareonsideredtobeworthlessandareimmediately\killed{thatis,abortedandpermanentlydisardedfromtheRTDBSwithoutbeingexeutedtoompletion.Aordingly,theperformanemetriisKillPerent,thesteady-stateperentageofkilledtransations.12.PERFORMANCEFRAMEWORKFromaperformaneperspetive,ommitprotoolsanbeomparedwithrespettothefollowingissues:1.E etonNormalProessing:Thisreferstotheextenttowhihtheommitprotoola etsthenormal(no-failure)dis-tributedtransationproessingperformane.Thatis,howexpen-siveisittoprovideatomiityusingthisprotool?2.ResilienetoFailures:Whenafailureoursinadistributedsystem,ideally,transationproessingintherestofthesystemshouldnotbea etedduringthereoveryofthefailedomponent.With\blokingommitprotools,failuresanleadtotransationproessinggrindingtoahalt(asexplainedinSetion3.),whereas\non-blokingprotoolspreventsuhdisruptionsbyinurringad-ditionalmessagesandfored-log-writes.3.SpeedofReovery:Thisreferstothetimerequiredforthedatabasetobereoveredtoaonsistentstatewhenthefailedsiteomesbakupafterarash.Thatis,howlongdoesittakebeforetransationproessinganommeneagaininareoveringsite?Ofthethreeissueshighlightedabove,thedesignemphasisofmostom-mitprotoolshasbeenonthe rsttwo(e etonnormalproessingandresilienetofailures)sinetheydiretlya etongoingtransation3proessing.Inomparison,thelastissue(speedofreovery)appearslessritialfortworeasons:First,failuredurationsareusuallyordersofmagnitudelargerthanreoverytimes.Seond,failuresareusuallyrareenoughthatwedonotexpettoseeadi ereneinaverageper-formaneamongtheprotoolsbeauseofoneommitprotoolhavingafasterreoverytimethantheother.Basedonthisviewpoint,ourfoushereisonthemehanismsrequiredduringnormal(no-failure)opera-tiontoprovideforreoverabilityandresilienetofailures,andnotonthepost-failurereoveryproess.3.TRADITIONALDISTRIBUTEDCOMMITPROTOCOLSWeadopttheommon\subtransationmodel[3℄ofdistributedtrans-ationexeutioninourstudy.Inthismodel,thereisoneproess,alledthemaster,whihisexeutedatthesitewherethetransationissub-mitted,andasetofotherproesses,alledohorts,whihexeuteonbehalfofthetransationatthevarioussitesthatareaessedbythetransation.Cohortsarereatedbythemastersendingastartworkmessagetotheloaltransationmanageratthatsite.Thismessageinludestheworktobedoneatthatsiteandispassedontotheohort.Eahohortsendsaworkdonemessagetothemasterafterithasom-pleteditsassigneddataproessingwork,andthemasterinitiatestheommitprotool(only)afterithasreeivedthismessagefromallitsohorts.Fortheabovetransationexeutionmodel,avarietyofommitpro-toolshavebeendevised,mostofwhiharebasedonthelassialtwo-phaseommit(2PC)protool[10℄.Inthissetion,webrie ydesribethe2PCprotoolandafewofitspopularvariants{ompletedesrip-tionsareavailablein[20,7,23℄.Foreaseofexposition,thefollow-ingnotationisusedinthesequel{\smallapsfontformessages,\typewriterfontforlogreords,and\sansseriffontfortransationstates.3.1TWOPHASECOMMITInthe2PCprotool,themasterinitiatesthe rstphaseoftheommitprotoolbysendingprepare(toommit)messagesinparalleltoallitsohorts.Eahohortthatisreadytoommit rstfore-writesapreparelogreordtoitsloalstablestorageandthensendsayesvotetothemaster.Atthisstage,theohorthasenteredapreparedstatewhereinitannotunilaterallyommitorabortthetransationbuthastowaitforthe naldeisionf
本文标题:Chapter 1 REAL-TIME COMMIT PROCESSING
链接地址:https://www.777doc.com/doc-3322577 .html