欢迎来到天天文库
浏览记录
ID:23630561
大小:9.37 MB
页数:52页
时间:2018-11-09
《基于分布式存储负载均衡设计和实现》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、基于分布式存储的负载均衡的设计与实现摘要随着网络的高速发展,信息几何倍数的增长,服务器所承担的压力与日俱增,不仅要承担高并发的请求信息,还要求实现365幸7幸24业务不问断,要满足这些需求,单纯的硬件升级是远远不够的。为了解决这个难题,提出了负载均衡技术。负载均衡技术是建立在在现有网络结构上,通过软件或硬件方式,以高效、廉价、过程透明的方式对服务器的带宽、数据承载能力、网络的可靠性和灵活性等进行优化。传统的静态负载均衡模式中所有的节点服务器都是无状态的,在选择负载均衡策略及算法时,并不需要特别注意每台节点服务器的具体负载情况。但在本
2、课题中因为每台节点服务器都是有状态的,系统需要根据节点服务器具体的负载状况进行针对性的负载分配,实现负载均衡。本文详细介绍了负载均衡的原理、分类、策略、算法,并分析了各种算法的优缺点。根据项目需求,提出自己的实现方法。本课题是通过开源软件+自主研发,从负载均衡原理入手分析,搭建软件框架。通过He积beat软件,搭建双机热备的master主机,实现高可用,避免出现单点故障;通过nagios及相关软件,编写插件对节点服务器进行健康检查,为负载分配提供数据。编写择优算法,宏观时间上实现负载均衡。关键词:负载均衡;分布式;心跳检测;资源监控
3、基于分布式存储的负载均衡的设计与实现ABSTRACTWitlltherapiddevelopmentofthenetwork,theinj’o皿ationincreausesgeometrically.Thepressureont11eServerismoreandmorelarge.Itshouldnotonlytobearthehi曲concurrentrequestinfo肌ation,butalsocallsforthe365幸7幸24operationsu11intermptedly.Tbmeettheseneeds,as
4、implehardwareupgradeisnotenough.TbresolVethisproblem,loadbalancingtechnologyc锄eintobeing.LoadbalancingisbuiltonmeexiStingne帆orkstmcture.ItprovidesaninexpensiVe,e氐ctiVeandtransparentmemod.Wecanuseittoexpandmeballdwidthoftheserversa11dnetworkdeVices,stren殍henmenetworkdat
5、aprocessingc印abili吼increasetllrou曲put,IncreaSene帆orknexibilit)raJldaVailabili吼Thenodeserversoftraditionalstaticloadbalancingmodearestateless.Whenchosemeloadbalancingstrategiesandalgorithms,itisn’tneedtopayspecialattentiontothespecificloadofeachnodeserver.HoweVer,inthis
6、topicaSeachnodeserVers2urestate,thesystemneedtobaSisthespecmc10adconditionsofnodeseⅣeranddotargetedloaddistributiontoachieVe10adbalancingThispaperdescribestheprinciple,classi6cation,strategiesandalgori恤1sofloadbalancingandanalysistheadVaultagesanddisadVajltagesoftheV撕o
7、usalgorit}ums.Ibasistotheneedsoftheproject,putforwardmyownimplememation.ThistopicisbyopensourcesoRwareplusindependentresearchanddeVelopment.Ita11alysis矗omthe10adbalancingprincipleandbuildasoRwaref-r锄ework.ByHe抓beatsoRwareIsetupahotstalldbymasterhosttoachieVehi曲aVailabi
8、lit),andaVoidsinglepointsoffailIlre.ByNagiosa11drelatedsomVare,writeaplugtochecknodeserverhealthandproVidedataforthel
此文档下载收益归作者所有