您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > NoSQL数据库最终一致性的研究
NoSQL数据库最终一致性的研究重庆大学硕士学位论文(学术学位)学生姓名:王宏指导教师:罗军副教授专业:计算机系统结构学科门类:工学重庆大学计算机学院二O一三年四月ResearchoneventuallyconsistentofNoSQLdatabaseAThesisSubmittedtoChongqingUniversityinPartialFulfillmentoftheRequirementfortheMaster’sDegreeofEngineeringByWangHongSupervisedbyAssociateProf.LuoJunSpecialty:ComputerSystemArchitectureCollegeofComputerScienceofChongqingUniversity,Chongqing,ChinaApril2013重庆大学硕士学位论文中文摘要I摘要随着Web2.0时代的到来和云计算的兴起,传统关系数据库在应付Web2.0网站,特别是超大规模和高并发SNS类型的网站时越发显得力不从心,暴露了很多难以克服的问题,NoSQL则由于本身的特点得到了迅速发展。根据CAP理论的表述,NoSQL数据库通常选择放弃强一致性,用最终一致性的思想设计分布式系统,从而使系统可以达到很高的可用性和扩展性。最终一致性的具体涵义是:在分布式数据库中各结点的数据,不要求每一时刻都严格保持一致,只保证最终的一致即可。最终一致性作为NoSQL的重要理论基础,同时也是衡量NoSQL性能的重要指标,对NoSQL的应用与发展起着重要作用。现存向量时钟的最终一致性模型由于无法对全局中任意两个事件的时序进行判断,导致系统的读写性能低、延迟大,影响了最终一致性的实现。本文提出基于全局向量时钟的最终一致性模型,并沿着这条主线进行了一系列的分析和研究,主要包括以下几方面:(1)分析了NoSQL数据库:对NoSQL的概念、特性、数据模型、整体架构和应用实例进行了介绍,并研究了NoSQL的数据同步机制、可靠性和分布式扩展等关键技术;(2)研究了NoSQL最终一致性的基本原理:通过对CAP理论、BASE模型的分析揭示了NoSQL一致性的特点,并分别从客户端和服务器端两个角度对一致性进行深入的研究,进而引出了最终一致性;(3)提出基于全局向量时钟的最终一致性模型:研究了向量时钟模型,针对它无法对全局中任意两个事件的时序进行判断的问题,提出了全局向量时钟模型(GVC),该模型引入了全局时间向量并完善了同步规则;(4)通过理论证明和实例对比论证了模型的正确性:GVC解决了向量时钟模型存在的问题,提升了最终一致性的性能,具有较好的应用价值。关键词:NoSQL数据库,最终一致性,全局向量时钟,数据同步重庆大学硕士学位论文英文摘要IIABSTRACTWiththedevelopmentoftheWeb2.0eraandcloudcomputing,thetraditionalrelationaldatabasehasexposedalotofproblemswhenappliedtotheWeb2.0sites,especiallythoseultra-large-scaleandhighconcurrencySNSsites,However,NoSQLhasbeendevelopingrapidlybecauseofitscharacteristics.AccordingtotheexpressionofCAPtheorem,NoSQLusestheideaofeventuallyconsistentinsteadofstrongconsistencytodesignthedistributedsystem,sothatsystemcanachievehighavailabilityandscalability.Eventuallyconsistentspecificmeanings,thedataofeachnodeinadistributeddatabase,doesnotalwaysstrictlyconsistent,onlytoensuretheeventualconsistency.Eventuallyconsistent,asanimportanttheoreticalbasisofNoSQL,alsoanimportantindicatorwhenmeasuringtheperformanceofNoSQL,playsanimportantroleinthedevelopmentandapplicationofNoSQL.Existingsolutionisbasedonvectorclocksmodel.Thevectorclockmodelcannotjudgethetimesequeceofanytwoeventsintheglobalspace,causinglowerperformanceofreadandwrite,highdetention,affecttherealizationofeventuallyconsistent.Thispaperproposesaeventuallyconsistentmodelbasedonglobalvectorclockandmakeaseriesofanalysisandresearch,includingthefollowingaspects:(1)IntroducingtheNoSQLdatabase:Theconcept,characteristics,datamodel,systemarchitecture,applicationexamplesofNoSQLareintroduced.ThenthekeytechnologiesofNoSQLsuchasdatasynchronizationmechanism,reliabilityanddistributedexpansionarestudied;(2)Studingthebasicprinciplesofeventuallyconsistent:AccordingtotheintroductionofCAPtheoremandBASEmodel,thispaperrevealsthecharacteristicsofconsistency,andstudiesconsistencyfromtheperspectiveofclientandserver,thenmakesaresearchoneventuallyconsistent;(3)Proposingtheeventuallyconsistentmodelbasedonglobalvectorclock:Accordingtotheresearch,thevectorclockmodelcannotcomparethetimesequenceofanytwoeventsintheglobalspace.Thispaperproposesaglobalvectorclockmodel(GVC).Themodelimportstheglobalvectorandimprovesthesynchronizationrules;(4)TheoreticalproofandanalysisofexamplesdemonstratethevalidityofGVC:GVCsolvestheproblemsofthevectorclockmodelandimprovestheperformanceof重庆大学硕士学位论文英文摘要IIIeventuallyconsistent,GVChasagoodapplicationvalue.Keyword:NoSQL,EventuallyConsistent,GlobalVectorClock,DataSynchronisation重庆大学硕士学位论文目录IV目录中文摘要..........................................................................................................................................I英文摘要........................................................................................................................................II1绪论.....................................................................................................................................11.1研究背景....................................................................................................................................11.1.1云计算.................................................................................................................................11.1.2NoSQL.................................................................................................................................11.1.3最终一致性.........................................................................................................................31.2国内外研究现状........................................................................................................................31.3论文的主要工作........................................................................................................................41.4论文的组织结构........................................................................................................................52NOSQL概述...........................................................................................................................62.1NOSQL的概念与特性..............................................................................................................62.1.1NoSQL的定义............................
本文标题:NoSQL数据库最终一致性的研究
链接地址:https://www.777doc.com/doc-6182101 .html