您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 项目/工程管理 > XenDesktop 故障分析和排查
ComplexXenDesktopusecases;commonmistakes;toolsandtechniquesforresolutionBaptisteDuflosManager,EscalationServicesMay8th,2012Introductionandobjectives#CitrixSummitTweetaboutthissessionwithhashtag#SUM301and#CitrixSummit#CitrixSummitFocusingonthemajorcomponentsofXenDesktop4WIControllersVDAsADVMHost(XenServer,Hyper-V,VMware)LicensingUserSQLDatabase#CitrixSummitDeployingControllerServers5•AllControllersloadbalancesessionlaunchandVDAregistrations•ConfiguringControllersinanN+1configurationallowsforresiliencyincaseofafailure•AllControllerstalktotheSQLdatabaseandshoulddeployedascloseaspossibleControllers#CitrixSummitControllerServerScalability6XD4.x:XD5.x:BrokerBroker(ZDC)BrokerHypervisorPoolControllerControllerController(failed)WIWIHypervisorPoolHypervisorPoolHypervisorPoolHypervisorPoolHypervisorPool#CitrixSummitControllers–ScalabilityandBestPractices7•Canoverwhelmthehostinginfrastructurewithpowerstaterequestsduringpeaktimeswhenmanyuserslogonandoff.•YoucanthrottletheamountofpowercommandssentperControllerwith“MaximumTransitionRate”–defaultis20,doNOTincreaseitwon’tspeeduppoweruptimes#CitrixSummitDeployingSQLforXDDatabases8•XD5usesasingledatabasewithmultipleschemasthatmaptoXDservices•Storedproceduresareleveragedtoreduceloadondatabase•DatabaseiscriticaltoXD5–allControllershaveheartbeattodatabaseSQLDatabases#CitrixSummitSQL–DatabaseMirroring9•Databasefailure=ControllerFailure○Onlyimpactsnewconnections–existingordisconnectedsessionsnotaffected•CitrixrecommendsleveragingSQLMirroringforfaulttolerancePrincipaldatabaseMirrordatabaseTransactionlog•MirroringsendstransactionlogfromPrincipaldatabasetotheredundantdatabase•Iftheprincipaldatabasefails,userinterventionisrequiredtofailoverthedatabase•CitrixrecommendsusingsynchronousdatabasemirroringwithwitnessWitnessServer#CitrixSummitSQL–BestPractices10•SQLtransactionlogiscriticaltomonitor○Connectionlaunchesandidledesktopsconsumetransactionlogspace○Useafixed-sizetransactionlog–auto-growthfeaturecouldimpactresponsetimes○LeverageSQLAlertswhenlogreachesthresholds(recommend50%)•Databasefailovertuning–adjustControllerheartbeatinterval○Defaultheartbeatis30secsandrequiresaSQLoperation○Controllersunregisterworkersthatdonotheartbeatforoveroneminute○ControlledbyRegkey:HKLM\Software\Citrix\DesktopServer\HeartbeatPeriodMs#CitrixSummitDeployingVirtualDesktopAgents11•VDAnowuses“registrybased”registrationbydefault•Verifyportsareopenandfirewallconfigured•ForwardandReverseDNSisrequiredVirtualDesktopAgents#CitrixSummitVDA–Scalabilityandbestpractice12•IncreasetheServicetimeoutsifyouexpectperiodswithlargeamountofVMsrebooting–increaseto3minsrecommended•Optimizethelogonprocess–improvesdesktopperformance•PlanstageddeploymentsandconsiderleveragingtoolssuchlikeLoginVSItoperformscaleandloadtestingbeforeaddinglargegroupsofuserstoenvironment#CitrixSummitKeypointstoremember13•Controllersareresilientandscalewell–keepdeploymentssimple•SQLserverplayspivotalroleininfrastructure–protectit!•Makeyourendusershappy–tuneyourVDAsforperformance#CitrixSummitTroubleshootingasessionlaunchfailure14•Userswerereportingtheygotanerrorwhentryingtolaunchtheirdesktops•AdminnoticedthatintermittentlyVDAswouldde-registeratsessionlaunchCaseStudyWalkthrough#CitrixSummitEnvironmentoverview15•XenDesktopdeploymentwith:○WebInterface5.4○XD5.6○SQL2008○VMWare5.0○Windows2008R2ActiveDirectory○VirtualDesktopAgentOS–Win732-bit○CitrixReceiver3.1WebInterface5.4XD5.6SQL2008VMWare5.0ActiveDirectoryVDAsReceiver#CitrixSummitWhatdidfailurelooklike?16#CitrixSummit17Userattemptstostartthesession1011011010SSL1011011010SSL1011011010SSL101101110110111011#CitrixSummitInitialTroubleshooting18•Howoftendoesithappen?•Anyparticulartimeframeithappens?•Anyspecificusersorimagesithappensmorefrequentlywith?•Whatchanged?•Anyeventviewermessages?#CitrixSummitWhatchanged?19WIController#1VDAsController#2VDAsregisteronController#1CustomerhadsingleserverdeploymentCustomeraddedsecondControllerforredundancy#CitrixSummitWheredowestartlooking?20•Wefound4interestingmessagesinEventViewer:Warning–EventID2103:AnunexpectedexceptionoccurredwhiletheCitrixBrokerServiceprocessedanXMLtransaction.AnincompatibleclientmightbetryingtoaccesstheXMLservice.Verifythecompatibilityofclientsaccessingtheservice.Ifthisproblempersists,reinstalltheCitrixXenDesktopController.Errordetails:Transaction:'RequestAddress'ExceptionType:'System.ServiceModel.Security.SecurityAccessDeniedException'ApplicationWarning–EventID1060:TheCitrixBrokerServicefailedtoapplysettingsonthevirtualmachine'KB-WIN7-01.get.services.citrite.net'.CheckthatthevirtualmachinecanbecontactedfromtheControllerandthatanyfirewallonthevirtualmachineallowsconnectionsfromtheController.SeeCitrixKnowledgeBasearticleCTX126992.Errordetails:Exception'Accessisdenied.'oftype'System.ServiceModel.Security.SecurityAccessDeniedException'.Warning–EventID1039:TheCitrixBrokerServicefailedtocontactvirtualmachine'KB-WIN7-01.get.services.citrite.net'(IPaddress).CheckthatthevirtualmachinecanbecontactedfromtheControllerandthatanyfirewallonthevirtualmachineallowsconnect
本文标题:XenDesktop 故障分析和排查
链接地址:https://www.777doc.com/doc-7001912 .html