connect with life praveen srvatsa director | asthrasoft consulting microsoft regional director,...
TRANSCRIPT
Connect with life
www.connectwithlife.co.in
Praveen SrvatsaDirector | AsthraSoft ConsultingMicrosoft Regional Director, BangaloreMicrosoft MVP, ASP.NEThttp://blogs.asthrasoft.com/praveens | [email protected]
Performance Tuning Redefined with SQL 2008
Connect with life
www.connectwithlife.co.in
What We Will CoverPerformance Studio concepts (data collection, management data warehouse)How to monitor/troubleshoot performance issues using Performance StudioNew performance monitoring features in SQL Server® 2008Long-term investment: Foundations for performance monitoring in the future
Connect with life
www.connectwithlife.co.in
Level 200
Helpful ExperienceSQL Server Management StudioPerformance MonitoringTransact-SQL (T-SQL)
Connect with life
www.connectwithlife.co.in
What Is Performance Studio?A framework that ties together collection, analysis, troubleshooting, and persistence of SQL Server diagnostics information. It consists of a suite of tools for:
Low overhead data collectionPerformance monitoring, troubleshooting, tuningPersistence of diagnostics dataReporting
Short term goals: Provide enhanced data collection and reports out of the box
Connect with life
www.connectwithlife.co.in
Data Collection UI(Object Explorer)Data Collection UI(Object Explorer)
Data Collection Configuration
Data Collection Configuration
Collection Set Reports
Collection Set Reports Management Data
Warehouse
TargetTarget
Data CollectorData Collector
Data CollectorData Collector
TargetTarget
Data CollectorData Collector
Data CollectorData Collector
Performance Studio Architecture
Connect with life
www.connectwithlife.co.in
Performance Studio Components
Server Side: Data CollectorExtensible data collection infrastructureIncludes out of the box data collections required to identify and troubleshoot the most common problems for the relational engineSupport for SQL Server relational engine only, but other SQL Server services can be added in the future
Connect with life
www.connectwithlife.co.in
Performance Studio Components
Server Side: Management Data Warehouse
Data repository for baseline and historical comparisonsAggregated reporting for multiple SQL Server instances
Connect with life
www.connectwithlife.co.in
Client Side: Data collection configuration UI
Management data warehouse propertiesGeneral data collection propertiesCollection set configuration
SQL Server dashboard based on system collection sets reports
Performance monitoring and troubleshootingHistorical data analysis based on warehouse information
Performance Studio Components
Connect with life
www.connectwithlife.co.in
Unified data collection infrastructurePerformance and general diagnostics data
Configurable and extensibleSupport for adding new data providers
Centralized storageAlways on, low overhead
Tools for monitoring provide optimal database environment performance
Data Collector
Connect with life
www.connectwithlife.co.in
Data Collector ConceptsData Provider
Source of information (for example, SQL Trace, Perform counters, DMVs, T-SQL queries, logs)
Collector TypeKnows how to read and expose data from specific data providers
Collection ItemInstance of a collector typeDetermines data inputs and frequency
Connect with life
www.connectwithlife.co.in
Data Collector Concepts• Collection Set
– Group of collection items– Logic unit of data collection
• Management Data Warehouse– Repository for data being collected (historical and
baseline analysis)
Connect with life
www.connectwithlife.co.in
select * from dm_os_performance_counters
select * from dm_os_performance_counters
T-SQL Collector
T-SQL Collector
T-SQL Queries
T-SQL Queries
Data Provider
Data Provider
Collector Type
Collector Type
Collection Item
Collection Item
Data Collector Concepts
Connect with life
www.connectwithlife.co.in
Data Collector Concepts
Collection SetCollection Set
Collection Item 1
Collection Item 1
Collection Item N
Collection Item N
…
Connect with life
www.connectwithlife.co.in
Data Collector Architecture
Data Data Collector Collector
(dcexec.ex(dcexec.exe)e)
SQL SQL ServerServer
Operating Operating SystemSystem
Data Data CollectCollect
or or CacheCache
MDWMDW
SQL AgentSQL Agent
SSMSSSMS
msdbmsdb
Connect with life
www.connectwithlife.co.in
Data Collector Architecture
Collection Collection JobJob(SSIS (SSIS runtime)runtime)
Data Data CollectCollect
or or CacheCache
Upload JobUpload Job(SSIS (SSIS runtime)runtime)
MDWMDW
CollectedCollectedDataData
Connect with life
www.connectwithlife.co.in
Data Collection ProvidersSQL Server 2008
T-SQL based queries (such as DMV data)SQL TracePerfmon Counters
Potential candidates for future releasesWMI eventsAdditional collector types that may have direct insight into SQL Server process
Connect with life
www.connectwithlife.co.in
Data Collector ExtensibilityCustom collector types
Provided by ISVs
Collections from known sources can be easily extended
Specify new SQL Trace events for collectionSpecify new performance counters for collection
Custom collection setsBased on existing Collector Types
Connect with life
www.connectwithlife.co.in
Adding ValueCollector types that can be developed:
SANs (Storage Area Network)HealthActivityPerformance impactCommunication channels
NAS (Network Attached Storage)Network MonitoringVMWare (Virtualization)
Connect with life
www.connectwithlife.co.in
Management Data WarehouseRelational database stores collect dataManagement Data Warehouse (MDW) objects are grouped in schemas, each schema serving a different purpose:
CoreSnapshotCustom_Snapshot
Connect with life
www.connectwithlife.co.in
Management Data WarehouseCore:
Defines tables and stored procedures used for organizing and identifying collected data
Snapshot:Objects (data tables, views) needed to store collected data from standard, out-of-the-box data collector types, and system collection sets
Custom_Snapshot:New data tables can be added for standard collector types or third-party collector types for user-defined collection sets
Connect with life
www.connectwithlife.co.in
MOM ServerMOM Server
MOM Data
Warehouse
MOM Data
Warehouse
MDWMDW
SQL ServerSQL Server
MOM AgentMOM Agent
Data Collect
or
Data Collect
or
Microsoft Operations
Manager (MOM) Server
Microsoft Operations
Manager (MOM) Server
MOM Data
Warehouse
MOM Data
Warehouse
MOM Integration
MOM AgentMOM Agent
Connect with life
www.connectwithlife.co.in
MOM Integration
MOM agent uses Data Collector to gather SQL Server diagnostics informationData Collector provides a coherent collection set definition for specific issuesData Collector cached data can either:
Be uploaded to the MOM data warehouse directly by the MOM agent (no MDW)Be uploaded to MDW first, and then to the MOM data warehouse when required
Connect with life
www.connectwithlife.co.in
Relational Engine Data Collection Sets
Based on top PSS reported issuesProblem characterization through out-of-the-box Data Collection SetsWorking closely with Product Support Services (PSS) and Engine teams
Address most important problems firstUse right metrics for performance issues
Connect with life
www.connectwithlife.co.in
Performance DashboardBased on System Data Collection Sets
Server ActivityHigh level SQL Server and system informationShould be turned on all the timeLow overhead (that is, <5 percent)
Query StatisticsDetailed SQL Server informationDrill down to performance issues root cause
Disk UsageGeneral disk activity information per database
Connect with life
www.connectwithlife.co.in
Future Plans• Advanced troubleshooting
• Automatic problem detection
• Enhanced monitoring and alerting
• Improved dynamic baselining
• Tools suite
Connect with life
www.connectwithlife.co.in
Session SummaryPerformance Studio conceptsNew performance monitoring features in SQL Server 2008Long-term investment
Connect with life
www.connectwithlife.co.in
Visit TechNet at: www.microsoft.com/technet
For More Information
Feedback / QnA
Your Feedback is Important!Please take a few moments to fill out our
online feedback form
For detailed feedback, use the form at http://www.connectwithlife.co.in/vtd/helpdesk.aspx
Or email us at [email protected]
Use the Question Manager on LiveMeeting to ask your questions now!
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after
the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.