您好,欢迎访问三七文档
当前位置:首页 > 办公文档 > 其它办公文档 > array本地负载均衡详细技术介绍
2020/3/19TMXTechnicalTrainingServerLoadBalancing2020/3/192ObjectivesTounderstandServerLoadBalancingconcepts.TounderstandArrayServerLoadBalancingconfigurationsteps.2020/3/193TopicsUnit1:BasicServerLoadBalancingConceptsandConfigurationUnit2:AdditionalServerLoadBalancingConceptsandConfigurationAppendix:WebConcepts2020/3/194Unit1:BasicSLBConceptsWhatisServerLoadBalancing?SLBTerminologyArraySLBBenefitsSLBModesRealServicesSimpleGroupMethodsVirtualServicesSimplePolicyTypes2020/3/195WhatisLoadBalancing?It’sineverywhereactually!!!EmergencyClinicExpertClinicSLB:PolicySLB:Method2020/3/196WhatisServerLoadBalancing(SLB)?SLBallowswebsitestobescaledfromasingleservicetoagroupofservices(servicefarm)whiledistributingtheloadbetweentheservicesbasedontheirloadandhealth.SLBBenefitsGreaterscalabilityinthenumberofservicesforasitereducesloadonindividualservicesandimprovesresponsetimetoclientsImprovedresiliencythroughHealthCheckingofservices,services,andwebcontentBettercontrolofserviceresourceusagethroughimplementationofdifferentloadbalancingalgorithmsTrafficmanagementbasedonTCP/UDPportnumber,URL,HTTPHostHeader,Cookiecontent,orSSLSessionID2020/3/197SLBTerminologyRealService(“Real”)RepresentsaphysicalservicewhichwillhandleclientrequestsRealServiceGroup(“Group”)RepresentsagroupofrealserviceswhichtrafficwillbedistributedtoDefineswhichloadbalancingalgorithmtouseVirtualService(“Virtual”)RepresentsavirtualservicethatclientscanconnecttoPolicyAssociatesrealservicegroupswithvirtualservicesservice1service5service4service3service2Real1Real3Real4Real5Real2Group1Group2Virtual1Virtual2Internet2020/3/198ServerLoadBalancingExampleBasicServerLoadbalancingInternetServiceGroupRealservicesVirtualIP100.10.10.1012345Userenters(VIP)of10.10.10.10.2ClientsendsrequesttoVIP.3Arrayproxiesrequesttoselectedrealservice.4Furtherrequestsfromtheclientmaybesenttothesameoradifferentrealservice,dependingonpersistencyconfiguration.5DNS2020/3/199SLBModesServerLoadBalancingcanbeperformedintwomodes:ReverseProxyMode•ArrayTMproxiesallclientconnectionstorealservices.TransparentMode•ArrayTMtransparentlyproxiesallclientconnectionstorealservices.2020/3/1910ReverseProxyModePacketFlow1.ClientconnectstoVIPonArrayTMandsendsrequesttoArrayTM.2.ArrayTMopensanewconnectiontorealserviceandsendsrequesttoservice.3.servicerespondstoArrayTM.4.ArrayTMrespondstoClient.VirtualInternetservice1service2InsideInterfaceOutsideInterface12342020/3/1911ReverseProxyModeTranslationsVirtualInternetservice1service2InsideInterfaceOutsideInterface1234StepSourceIPSourcePortDestinationIPDestinationPort1Client-IPClient-PortVirtual-IPVirtual-Port2Inside-IPInside-PortReal-IPReal-Port3Real-IPReal-PortInside-IPInside-Port4Virtual-IPVirtual-PortClient-IPClient-Port2020/3/1912ReverseProxyModeBenefitsOne-armedtopologyispossible.•ResponsesautomaticallyreturntotheArrayTM.Enablesconnectionpoolingforincreasedperformance.Limitationsservicelogsdonotshowrealclient’sIPaddress(connectionsproxied).•Solution:EnablingX-Forwarded-Forheaderinsertionallowsclient’soriginalsourceIPaddresstobeinsertedintoHTTPrequestsbeforesendingtobackendrealservice.2020/3/1913ConnectionPoolingProvidesTCPaccelerationforbackendconnectionstorealservices.Arrayopensconnection(s)tobackendserviceasneededandleavesit(them)open.Arraysendsmultiplerequestsfromdifferentclientsthroughthesamebackendserviceconnection(s).Thissignificantlyreducesthenumberofclientconnectionsaservicehastohandle(typicallybyupto90%withcacheoff).Improvesserviceperformance.servicedoesn’tspendasmuchtimeperformingTCPsetups/teardowns.servicedoesn’tneedtokeepsomanyconnectionsopen.OnlypossiblewithReverseProxyMode.2020/3/1914TransparentModePacketFlow1.ClientsendsrequesttoVIPonArrayTM.2.ArrayTMforwardsrequesttorealservice,maintainingtheclient’sIP.3.RealservicereturnsresponseviaclientIP(handledbyArrayTM).4.ArrayTMforwardsresponsetoClient.VirtualIPInternetservice1service22354612020/3/1915TransparentModeTranslationsVirtualIPInternetservice1service2235461StepSourceIPSourcePortDestinationIPDestinationPort1Client-IPClient-PortVirtual-IPVirtual-Port23Client-IPClient-PortReal-IPReal-Port4Real-IPReal-PortClient-IPClient-Port56Virtual-IPVirtual-PortClient-IPClient-Port2020/3/1916TransparentModeBenefitsservicelogswillshowactualclientIPaddress.LimitationsRealserviceresponsesmustberoutedthroughtheArrayTMX.•EnsuresthattheArrayTMXcanseetheresponses.•One-armedtopologyisnotalwayspossible.Cannotuseconnectionpoolingfeature.•ArrayTMXcannotreusethesameserviceconnectionformultipleclientssinceeachclient’sIPaddressisdifferent.•Reverseproxymodeispreferredforperformancebenefits.2020/3/1917SLBRealServicesThefollowingparametersareassociatedwitharealservice:Realserviceprotocol(udp,tcp,ftp,http;tcpsandhttpsforSSL)RealservicenameRealserviceIPaddressRealserviceportHealthcheckmethodHealthcheckupHealthcheckdown2020/3/1918SLBGroupMethodsAgroupallowsrequests
本文标题:array本地负载均衡详细技术介绍
链接地址:https://www.777doc.com/doc-4452851 .html