Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and...

19
We have control! Chris Testa-O’Neill EMC Consulting

Transcript of Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and...

Page 1: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

We have control!Chris Testa-O’Neill

EMC Consulting

Page 2: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

AgendaResource GovernorIntegrating Performance Monitor and ProfilerPolicy Based ManagementPerformance Data Collector

Page 3: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

Who am IPractise Consultant for EMC ConsultingUK SQL Server Organiser for Manchester

and LeedsSQL Bits OrganiserMicrosoft Elearning Author courses for SQL

Server 2008Fill out feedback to win a free Elearning

voucherSQL Server MVP and MCT

Page 4: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

Resource GovernorMonitor and manage the workloads on your SQL

Server systemEnterprise Edition feature only

Control CPU and memory usage specifically

Works well with applications of similar requirements

System Monitor Counters available

DAC connection not subject to resource governor

Page 5: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

Resource Governor ComponentsResource Pools

represents the physical resources of the serverInternal and default

Workload Groupsserves as a container for session requests that

are similar

Classification Functiona set of user-written criteria contained in a

function.

Page 6: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

DemonstrationUsing Resource Governor

Page 7: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

DemonstrationIntegrating Performance Monitor with SQL

Server Profiler

Page 8: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

Policy Based Managementenforce the configuration of SQL Server

on all editions for single instanceEnterprise and Standard for multiple instances

Can be used to centrally managed multiple servers

Can export and import policies

Can evaluate policies

Page 9: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

Policy Based Management ComponentsComponent Description

Policy A SQL object that holds the information required to enforce a policy

Facet A facet is an object within a policy that is used to represent a SQL Server component

Target A SQL Server object such as an Instance or a database to which the policy is applied to

Condition Specifies a set of allowed states of a Policy-Based Management managed target with regard to a facet.

Page 10: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

How Policies are enforceManually

Scheduled

On change prevent – (DDL triggers)

On change log only – (event notifications)

Page 11: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

DemonstrationPolicy Based Management

Page 12: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

Performance Data CollectorStores information about different sets of

data across your database servers

Stored in a relational database known as a management data warehouse.

Displays reports about queries, system and disk usage.

Custom performance data collectors can be created

Page 13: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

Data collector componentsComponent Description

Target An instance of the Database Engine used to manage performance data collector (PDC)

Target type Object that the PDC collects information (instance, database)

data provider Provides data connection information for the PDC

collector type SSIS packages used to collect and upload performance data

collection item An instence of a collector types used to collect information

collection set A collection set is a unit of data collection that a user can interact with

collection mode

The manner in which the data is collected and stored

management data warehouse

A relational database used to store collected data

Page 14: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

Create a Management Data WarehouseWizard driven

Create Logins and Map Them to Data Collector Rolesspecific roles for data collection and management data

warehouse tasks

Configure the Management Data WarehouseCreate an new database or use an existing database

Create Proxiesproxies can be used for data collection and upload to

the Data Management Warehouse

Page 15: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

Disk Usage Activity collection setsThis collection set gathers the following data:

Snapshots of data file sizes obtained from sys.partitions and sys.allocation_units.

Snapshots of log file sizes obtained from DBCC SQLPERF (LOGSPACE).

Snapshots of I/O statistics from sys.dm_io_virtual_file_stats.

Page 16: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

Server Activity collection setsThis collection sets collects data samples

from the following sources:sys.dm_os_wait_stats sys.dm_os_latch_stats sys.dm_os_schedulers sys.dm_exec_sessions ,

sys.dm_exec_requests, sys.dm_os_waiting_tasks (using a joined query)

sys.dm_os_process_memory sys.dm_os_memory_nodes

Page 17: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

Query Activity collection setsQuery Statistics collection set gathers data

about query statistics and individual query text, query plans, and specific queries

Page 18: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

Custom Data CollectorsHave the ability to create your own

Use SQL Server Profiler

Page 19: Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.

DemonstrationCreate a Management Data Ware houseView system data collectorsCreate a custom data collector