StepbyStepGuideforConfiguringNetworkLoadBalancingwithTerminalServicesinWindowsServer2.docx
《StepbyStepGuideforConfiguringNetworkLoadBalancingwithTerminalServicesinWindowsServer2.docx》由会员分享,可在线阅读,更多相关《StepbyStepGuideforConfiguringNetworkLoadBalancingwithTerminalServicesinWindowsServer2.docx(12页珍藏版)》请在冰点文库上搜索。
StepbyStepGuideforConfiguringNetworkLoadBalancingwithTerminalServicesinWindowsServer2
Step-by-StepGuideforConfiguringNetworkLoadBalancingwithTerminalServices:
WindowsServer2008
MicrosoftCorporation
Published:
March 2008
Author:
SusanBoher
Editor:
RonaldLoi
Abstract
Thisstep-by-stepguideprovidestheinstructionsnecessarytoconfigureNetworkLoadBalancing(NLB)withTerminalServicesfortheWindows Server® 2008operatingsystem.ThisguidealsoincludesinstructionsoninstallingandconfiguringNLBandsettingupaterminalserver.
Informationinthisdocument,includingURLandotherInternetWebsitereferences,issubjecttochangewithoutnotice.Unlessotherwisenoted,theexamplecompanies,organizations,products,domainnames,e-mailaddresses,logos,people,places,andeventsdepictedhereinarefictitious,andnoassociationwithanyrealcompany,organization,product,domainname,e-mailaddress,logo,person,place,oreventisintendedorshouldbeinferred.Complyingwithallapplicablecopyrightlawsistheresponsibilityoftheuser.Withoutlimitingtherightsundercopyright,nopartofthisdocumentmaybereproduced,storedinorintroducedintoaretrievalsystem,ortransmittedinanyformorbyanymeans(electronic,mechanical,photocopying,recording,orotherwise),orforanypurpose,withouttheexpresswrittenpermissionofMicrosoftCorporation.
Microsoftmayhavepatents,patentapplications,trademarks,copyrights,orotherintellectualpropertyrightscoveringsubjectmatterinthisdocument.ExceptasexpresslyprovidedinanywrittenlicenseagreementfromMicrosoft,thefurnishingofthisdocumentdoesnotgiveyouanylicensetothesepatents,trademarks,copyrights,orotherintellectualproperty.
©2008MicrosoftCorporation.Allrightsreserved.
Microsoft,MS-DOS,Windows,Windows NT,andWindowsServerareeitherregisteredtrademarksortrademarksofMicrosoftCorporationintheUnitedStatesand/orothercountries.
Thisproductcontainsgraphicsfiltersoftware;thissoftwareisbasedinpartontheworkoftheIndependentJPEGGroup.
Allothertrademarksarepropertyoftheirrespectiveowners.
Contents
Step-by-StepGuideforConfiguringNetworkLoadBalancingwithTerminalServicesinWindowsServer20085
NLBwithTerminalServicesoverview5
TerminalServicescomponents6
TerminalServicesSessionBrokerservice6
TerminalServicesConfigurationsnap-in7
RequirementsforusingNLBwithaterminalserver7
StepsforconfiguringNLBwithTerminalServices7
Step1:
SetupaterminalserverfarmwithTSSessionBroker8
Step2:
InstallNLB10
Step3:
CreateanNLBcluster10
Loggingbugsandfeedback12
Additionalresources12
Step-by-StepGuideforConfiguringNetworkLoadBalancingwithTerminalServicesinWindowsServer2008
Thisstep-by-stepguideprovidesinstructionsforconfiguringNetworkLoadBalancing(NLB)withTerminalServices.
UsingNLBwithTerminalServicesoffersthebenefitsofincreasedavailability,scalability,andload-balancingperformance,aswellastheabilitytodistributealargenumberofTerminalServicesclientsoveragroupofterminalservers.
NLBwithTerminalServicesoverview
NLBdistributestrafficacrossseveralserversbyusingtheTCP/IPnetworkingprotocol.YoucanuseNLBwithaterminalserverfarmtoscaletheperformanceofasingleterminalserverbydistributingsessionsacrossmultipleservers.
TerminalServicesSessionBroker(TSSessionBroker),includedinWindowsServer®2008Standard,WindowsServer2008Enterprise,andWindowsServer2008Datacenter,keepstrackofdisconnectedsessionsontheterminalserverfarm,andensuresthatusersarereconnectedtothosesessions.Additionally,TSSessionBrokerenablesyoutoloadbalancesessionsbetweenterminalserversinafarm.ThisfunctionalityisprovidedbytheTSSessionBrokerLoadBalancingfeature.However,thissession-basedloadbalancingfeaturerequiresafront-endloadbalancingmechanismtodistributetheinitialconnectionrequeststotheterminalserverfarm.YoucanusealoadbalancingmechanismsuchasDNSroundrobin,NLBorahardwareloadbalancertodistributetheinitialconnectionrequests.BydeployingNLBtogetherwithTSSessionBrokerLoadBalancing,youcantakeadvantageofboththenetwork-basedloadbalancingandfailedserverdetectionofNLB,andthesession-basedloadbalancingandperserverlimitonthenumberofpendinglogonrequeststhatisavailablewithTSSessionBrokerLoadBalancing.
Note
TousetheTSSessionBrokerLoadBalancingfeature,allterminalserversinthefarmmustberunningWindowsServer2008.FormoreinformationabouttheTSSessionBrokerLoadBalancingfeature,seetheWindowsServer2008TSSessionBrokerLoadBalancingStep-by-StepGuide.
WhendeployingaterminalserverfarmbyusingNLB,eachserverneedstoserveallusers.Tofacilitatethis,youmuststoreper-userinformation,systeminformation,andcommondatainanaccessibleplace,suchasaback-endfileserver.
TerminalServicescomponents
TerminalServiceshastwocomponentsthatareimportantforestablishingloadbalancing:
theTerminalServicesSessionBrokerserviceandtheTerminalServicesConfigurationsnap-in.
TerminalServicesSessionBrokerservice
Thisservicemaintainsadatabasethatkeepstrackofterminalserversessionsinaload-balancedterminalserverfarmandprovidesinformationtotheterminalserver,whichisusedtoconnectuserstoexistingsessions.
WhentheTerminalServicesSessionBrokerservicestarts,itcreatestheSessionDirectoryComputerslocalgroup.Bydefault,thisgroupisnotpopulated.YoumustchoosetheindividualterminalserversorgroupsthatyouwanttoparticipateintheTerminalServicesSessionBrokerservice,andthenmanuallychangegroupmembershipstotheSessionDirectoryComputersgroup.
TheTerminalServicesSessionBrokerservicestartsautomaticallyafteryouinstalltheTSSessionBrokerroleserviceontheserverthatyouwanttousetotrackusersessioninformationforaload-balancedterminalserverfarm.YoucanuseasingleTSSessionBrokerservertotrackusersessionsacrossmultiplefarmsbecausethereisminimalperformanceoverhead.
WhenyouinstalltheTSSessionBrokerroleservice,thefollowingchangesoccuronthelocalcomputer:
∙TheTerminalServicesSessionBrokerserviceisinstalled.Bydefault,theserviceissettoStartedandtoAutomatic.
∙TheSessionDirectoryComputerslocalgroupiscreated.
Installationprerequisites
∙TheserverwhereyouinstalltheTSSessionBrokerroleservicemustbeamemberofadomain.
∙TheWindowsServer 2008-basedserverwhereyouinstalltheTSSessionBrokerroleservicedoesnothavetobeaterminalserverorhaveRemoteDesktopenabled.
Note
IfyouinstalltheTSSessionBrokerroleserviceonadomaincontroller,theSessionDirectoryComputersgroupwillbeadomainlocalgroup,anditwillbeavailableonalldomaincontrollers.
Installationprocedure
IfyoudonothaveanyoftheTerminalServicesroleservicesinstalled,usethefollowingproceduretoinstalltheTSSessionBrokerroleservice.
ToinstalltheTSSessionBrokerroleservice
1.ClickStart,pointtoAdministrativeTools,andthenclickServerManager.
2.UnderRolesSummary,clickAddRoles.
3.IntheAddRolesWizard,reviewtheBeforeYouBeginpage,andthenclickNext.
4.OntheSelectServerRolespage,selecttheTerminalServicescheckbox,andthenclickNext.
5.OntheTerminalServicespage,clickNext.
6.OntheSelectRoleServicespage,selecttheTSSessionBrokercheckbox,andthenclickNext.
7.OntheConfirmInstallationSelectionspage,confirmthatTSSessionBrokerislisted,andthenclickInstall.
8.OntheInstallationResultspage,clickClose.
TerminalServicesConfigurationsnap-in
Thissnap-inisincludedoneachterminalserver.TerminalserversthatcomprisetheterminalserverfarmcommunicatewithTSSessionBrokertoensurethatusersaretransparentlyreconnectedtotheoriginalserverhostingtheirdisconnectedsessions.Theprocessis:
1.Whentheuserlogsontotheterminalserverfarm,theterminalserverreceivingtheinitialclientlogonrequestsendsaquerytotheTSSessionBrokerserver.
2.TheTSSessionBrokerservercheckstheusernameagainstitsdatabaseandsendstheresulttotherequestingserver.Oneofthefollowingoccurs:
∙Iftheuserhasnodisconnectedsessions,logoncontinuesattheserverhostingtheinitialconnection.
∙Iftheuserhasadisconnectedsessiononanotherserver,theclientsessionispassedtothatserverandlogoncontinues.
RequirementsforusingNLBwithaterminalserver
TouseNLB,acomputermusthave:
∙Atleastonenetworkadapterforloadbalancing.
∙OnlyTCP/IPusedontheadapterforwhichNLBisenabled.Donotaddanyotherprotocols(forexample,IPX)tothisadapter.
∙AllhostsintheNLBclustermustresideonthesamesubnet.
∙Ensurethatthecluster'sclientsareabletoaccessthissubnet.
∙Allterminalserversintheterminalserverfarmshouldbejoinedtothesamedomain.
StepsforconfiguringNLBwithTerminalServices
ToconfigureNLBwithTerminalServices,completethefollowingsteps:
Step1:
SetupaterminalserverfarmwithTSSessionBroker.
Step2:
InstallNLB.
Step3:
CreateanNLBcluster.
Step1:
SetupaterminalserverfarmwithTSSessionBroker
ForaterminalservertouseTSSessionBroker,youmustaddthecomputeraccountfortheterminalservertotheSessionDirectoryComputerslocalgroupontheTSSessionBrokerserver.
Important
YoumustperformthisprocedureontheserverwhereyouinstalledtheTSSessionBrokerroleservice.
ToaddaterminalservertotheSessionDirectoryC