More Related Content Similar to Mejores Practicas Implementar PRO SQL Server (20) More from Eduardo Castro (20) Mejores Practicas Implementar PRO SQL Server5. DealOptimizerandPricingOptimizer Control complex prices Manage price changes Control quotes and deals Centralizecontrolandadministrationofprices Establishpriceguidance Improveplanningandmanagementofpricechanges Approvepricechangesthroughworkflow Communicatepricechangestothefield MakepricesavailableforuseinquotesandERP Analyzeprofitabilityofquotesbeforesendingto customers Feedbacktosalesondealmarginsusingallprices andcosts Ensurepriceguidanceandmargintargetsaremet Managedealapprovalprocess Pricing Optimizer Deal Optimizer 6. ExampleScenario Salesportalwithintegratedpricingdata Microsoft®Office Microsoft®Excel® Microsoft®Word Microsoft®Outlook® Microsoft®InfoPath® • • • • Microsoft®SharePoint® Server Businessprocessesandforms (WF) Portals Collaboration BusinessDataCatalog(BDC) • • • • MicrosoftDynamics®CRM MicrosoftSQLServer AnalysisServices(SSAS)and IntegrationServices(SSIS) ReportingServices(SSRS) • • Microsoft®Office CommunicationsServer andOfficeCommunicator Microsoft® PerformancePoint®Server 8. SQLServerEnterpriseBenefits Unplanned downtime Reducedowntime thatresultsfrom unexpectedevents Business intelligence Deliverbusinessinsight bytransformingdata intoactionable Disasterrecovery Reduceimpactand quicklyrecoverfrom disasters knowledge EnterpriseEdition Reporting Provideinformation tothepeoplewho needittomake gooddecisions Planneddowntime Reducedowntimefor regularlyscheduled maintenance Server consolidation Reducehardware andsoftwarecostsby combiningservers 16. UseBestPractices toSizeandPlace tempdb Movetempdbtoahigh- performance,fault-tolerant diskvolume(RAID1orRAID 10volumeonfastdisks,or solid-statedrive)during installationorbyusingthe ALTERDATABASEstatement Sizetempdbappropriately Presizetoasufficientlylargesize Ensurethatallthefilesintempdbare identicalinsizebecauseSQLServer 2008usesaproportional-fillalgorithm IncreasetheFILEGROWTHsettingto 50MB Consideraddingmultipledatafilesto thetempdbfilegroup 17. Configurethe MemoryforSQL Server IfyourPROSPricingSolutionSuite database(data+indexes)isoris expectedtobemuchlargerthanthe totalRAMonthedatabaseserver,PROS recommendsconfiguringtheminimum andmaximumservermemoryoptionsin SQLServer Physical RAM 8GB 16GB 24GB 32GB 48GB 64GB 96GB 128GB MinSQLServermemory 4,096MB 8,192MB 12,288MB 16,384MB 32,768MB 49,152MB 73,728MB 104,448MB MaxSQLServermemory 5,120MB(5GB) 12,288MB(12GB) 18,432MB(18GB) 25,600MB(25GB) 39,936MB(39GB) 56,320MB(55GB) 88,0640MB(86GB) 120,832MB(118GB) 18. UseData Compression (SQLServer EnterpriseOnly) Datacompressionprovidesspace savingsondisk Becausedatacompressionreduces theamountofdiskI/O,ittendsto improveperformance Datapagesarealsocompressedin thebufferpool,increasingthe effectiveamountofapplication datathatcanbeaccessedfromthe datacacheratherthandisk 19. Plan,Document, andTestthe Backupand RecoveryStrategy forthePROS Database Themostimportantongoingmaintenance taskforabusiness-criticaldatabasesuchas PROSPricingSolutionSuiteismanaging backups IfyouuseFullrecovery,backupmultiple timesperday IfyouuseSimplerecovery,backupatleast onceaday Storebackupsoffsitewheneverpossible Includeregularbackupsaspartofyour overallstrategy IfyouareusingSQLServer2008Enterprise, usebackupcompression o. 20. MonitorIndex Fragmentation,and DefragmentWhen Necessary Fragmentationcanreducethespeedof dataaccessandresultinslower applicationperformance Totellwhichindexeshave fragmentationproblems,use sys.dm_db_physical_stats() Trackfragmentationwith avg_fragmentation_in_percent,and chooseacourseofaction Notes: –Reorganizinganindexdoesnotblock useraccesstotheindex –Rebuildingorre-creatingtheindexdoes preventuseraccesstotheindex oToavoidblocking,useALTERINDEX REBUILDwiththeONLINE=ONoption oOnlineindexrebuildrequiresSQLServer 2008Enterprise Fragmentation <5% 5%-30% >30% Recommendedaction Donothing Reorganizewith ALTERINDEXREORGANIZE Rebuildwith ALTERINDEXREBUILDWITH (ONLINE=ON) or CREATEINDEXwithDROP_EXISTING=ON 23. SettheMaximum Degreeof Parallelism (MDOP)to1 Thisvalueidentifiesthenumber ofthreadsusedtoexecutea parallelplan Changingthissettingreduces blocking,deadlocks,andlocks PROSsoftwareparallelizeswork intheapplicationtier 25. ConsiderCube Partitioningwith MoreThan20 MillionRecords CubepartitioningallowsAnalysis Servicestoleveragemultiplecores –Improvescubeprocessingtime –Improvesquerytime Microsoftgenerallyrecommendsthat partitionsdonothavemorethan20 millionrecords Increasethemaximumnumberof databaseconnectionswhenthenumber ofpartitionsisabove10 –Formoreinformation,seesection 6.10oftheAnalysisServices PerformanceTuningGuide 26. IncreaseAnalysis ServicesThread Parameters Consideranincreaseof Threadpool/Query/MaxThreadstoless thanorequalto2timesthenumberof cores –Increasesthenumberofqueriesthatcan beservicesconcurrently Consideranincreaseof Threadpool/Process/MaxThreadstoless thanorequalto10timesthenumberof cores –Increasesthenumberofthreadsusedby thestorageengineduringqueryand processingoperations 27. LimittheNumber ofColumnsin Reportstoa SpecificWorkflow EaseofPROSconfigurationcan resultinmeasureexplosionon reports Limitthenumberofinitial measuresondefault configuration Usersarestillabletoaddand rearrangemeasuresandsaveas aFavorite 29. Consider BackgroundDeal Evaluationand ScheduledPrice Evaluation Largedealscanautomaticallybe senttothebackgroundfor evaluationtofreeupthe browserforotherPROSusage. Anemailissentwhen evaluationiscomplete. Masspriceevaluationscanbe triggeredadhocorputona schedulethroughtheuser interface. 30. Performance Tools System Performance Monitor (Perfmon) SQL Profiler Trace Dynamic Management Views/Functions DBCC commands SQLDiag (Shipped with SQL 2005/2008) SQLIO, SQLIOSim KernRate Debugging tools (Windbg, DebugDiag,…) More… 31. Performance Tools Cont. - What’s new in SQL Server 2008 Data Collector & Management Data Warehouse (MDW) Extended Events Activity Monitor New DMVs/DMFs 32. MDW Architecture MDW Host MDW Client Workstation Target Server Snapshot Data Management Studio dcexec.exe MDW Reports SSIS Pkgs Cache Files Collection Set Metadata SQL Agent Job Metadata msdb 34. New and Improved DMVs Memory allocation tracking sys.dm_os_memory_brokers sys.dm_os_memory_nodes Reqource Governor sys.dm_resource_governor_configuration sys.dm_resource_governor_resource_pools sys.dm_resource_governor_workload_groups Query performance (hash value for query and plan) sys.dm_exec_query_stats Sys.dm_exec_requests sys.dm_exec_procedure_stats sys.dm_exec_trigger_stats More… 35. Bottleneck Analysis Bottleneck – A point or component of a process where throughput is the slowest. Understanding where time is spent Elapsed Time = Running + Waiting Key is the waiting - what type of wait(s)? 36. Disk I/O Bottleneck Analysis Monitor and identify I/O bottleneck Resource Monitor & Performance Monitor MDW DMV & Extended Events What is driving high I/O load? Inefficient query plan Too much data to read/write Slow I/O subsystem 39. Summary SQLServer2008R2 isreadyformission- critical,enterprise deploymentsof PROSPricing SolutionSuite Usingthebest practicesdescribedin thispresentationhelps avoidandminimize performanceproblems Thestrategicalliance betweenPROSand Microsoftdelivers measurablebenefits 40. LinksforFurtherInformation Readthe“MicrosoftSQLServer2008R2Partner SolutionCaseStudy” SQLServer2008informationcanbefoundinBooksOnline SQL Server 2008 Books Online: http://www.microsoft.com/downloads/details.aspx?FamilyId=765433F7-0983- 4D7A-B628-0A98145BCB97&displaylang=en SQL Server 2008R2 Product Documentation (TechNet): http://technet.microsoft.com/en-us/library/bb418439(SQL.10).aspx SQL Server“Denali” Product Documentation (TechNet): http://technet.microsoft.com/en-us/library/bb418432(SQL.10).aspx – – – SeetheSQL Server Best Practices(http://technet.microsoft.com/en- us/sqlserver/bb671430.aspx)portalfortechnicalwhitepapers,theSQLServerBest PracticesToolbox,Top10Lists,andotherresources TheSQL Server Analysis Services Performance Guide (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=3be0488d-e7aa- 4078-a050-ae39912d2e43&DisplayLang=en)providesthedetailsbehindthebest practicesmentioned