资源描述:
《[Scaling.MongoDB(2011.1)].Kristina.Chodorow.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、Sharding,ClusterSetup,andAdministrationScalingMongoDBKristinaChodorowScalingMongoDBScalingMongoDBKristinaChodorowBeijing•Cambridge•Farnham•Köln•Sebastopol•TokyoScalingMongoDBbyKristinaChodorowCopyright©2011KristinaChodorow.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’R
2、eillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472.O’Reillybooksmaybepurchasedforeducational,business,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:(800)998
3、-9938orcorporate@oreilly.com.Editor:MikeLoukidesCoverDesigner:KarenMontgomeryProductionEditor:HollyBauerInteriorDesigner:DavidFutatoProofreader:HollyBauerIllustrator:RobertRomanoPrintingHistory:February2011:FirstEdition.NutshellHandbook,theNutshellHandbooklogo,andtheO’Reillylogoareregiste
4、redtrademarksofO’ReillyMedia,Inc.ScalingMongoDB,theimageofatriggerfish,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.wasawa
5、reofatrademarkclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorsassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcon-tainedherein.ISBN:978-1-449-30321-1[LSI]1296
6、240830TableofContentsPreface.....................................................................vii1.WelcometoDistributedComputing!.......................................1WhatIsSharding?22.UnderstandingSharding.................................................5SplittingUpData5Distributing
7、Data6HowChunksAreCreated10Balancing13ThePsychopathologyofEverydayBalancing14mongos16TheConfigServers17TheAnatomyofaCluster173.SettingUpaCluster....................................................19ChoosingaShardKey19Low-CardinalityShardKey19AscendingShardKey21Random