Microsoft SQL Server Performance Data Collection Strategies

Preview:

DESCRIPTION

Microsoft SQL Server Performance Data Collection Strategies. Date. What about Bill?. Follow me on Twitter @ BillRamo. 39 24 22 15 6 4. About Advaiya. Frustrated trying to justify resources? Interested in migrating Oracle, MySQL, Sybase, Access to SQL Server? - PowerPoint PPT Presentation

Citation preview

Microsoft SQL Server Performance Data Collection StrategiesDate

2

What about Bill?Follow me on Twitter @BillRamo

39 24 22 15 6 4

3

Frustrated trying to justify resources? Interested in migrating Oracle, MySQL, Sybase, Access to SQL Server?

Do you need guidance in monitoring your systems?

Mailto:Bill.Ramos@Adviaya.com

About Advaiya

4

Let’s go hunting

How stuff works The future

Welcome to the show

DBA450M • Reporting Against the MDW

Let’s go hunting

Catch them in the act

Catch them after you’ve gone home

DBA450M • Reporting Against the MDW

What did you just learn?

Activity Monitor for the “now”

MDW Reports for the “past”

DBA450M • Reporting Against the MDW

How does stuff work?

Activity MonitorData Collector and MDW Reports

MDW SchemaStuff you shouldn’t touch

DBA450M • Reporting Against the MDW

What did you just learn?

Activity Monitor using tempdb at a regular interval

DC using SSIS and collection sets to collect data

MDW houses the data with reports to see history

Script collection sets to see what is collected

Don’t mess with the jobs

DBA450M • Reporting Against the MDW

What does the future hold?

Is System Center Operations Manager in your future?

SCOM 2007 R2 Provides Historical Data and Actionable UI Based on Selected SQL Instance

Setup Metrics that you care about.

Easily go back in time to see trends.

Perform and extend tasks based on

instance problem

SQL Server DC and MDW Provides Detailed Context

Click on SQL Server CPU line to see

queriesObvious query causing the

CPU problem

Click on big stuff to see query details

Click on the big stuff again to see

query plan details

Query optimizer recommends a missing index so click on View

Plan link

Plan UI shows missing index with expected impact

Missing Index Details command loads

index statement in editor for DBA to

decide

Use parameter substitution UI to name the index, remove

the comments, run the command and the problem is

solved

SCOM Now Shows Health StateIndex

created here

Expected range before ending

workload

MDW Power Comes at a Cost

MDW grows around 250GB to 600 GB per day per instance collected compared to Ops

Manager DB which has collects much less data

How to Optimize Data Collection?

• Run MDW Wizard against SCOM instance• Configure DC for Query Stats and Server

Activity via API pointing to MDW on SCOM, but don’t enable collection

Host MDW on SCOM

• Try tools like Activity Monitor to solve problem

• Query DMVs if necessaryTry SSMS tools 1st

• If the problem lingers, enable the DC for instance

• Troubleshoot the problem• Disable the DC when finished

Enable DC as needed

15

Just in case you didn’t askAKA FAQ

Can you run the reports using SSRS? Why doesn’t this work with SQL Server 2005? How do I uninstall the Data Collector? How many servers can a single MDW handle? How come I can’t start the Utility Information

collection set? How come you didn’t talk about the Utility Control

Point?

16

Resourceshttp://twitter.com/billramo Resource TitleBill Ramos on MSDN http://blogs.msdn.com/billramoSQL Sentry 45 day Eval Version http://www.sqlsentry.net/download-trial/trial.

asp?ad=AdvaiyaQuery Hash Stats Project http://code.msdn.microsoft.com/QueryHashS

tatisticsSystem Center Operations Manager

http://www.microsoft.com/systemcenter/en/us/operations-manager.aspx

?

Recommended