Introducing… Hosted by Steve Wright, Director of Product Support, SQL Sentry Presentation created by Aaron Bertrand, SQL Server MVP.

Slides:



Advertisements
Similar presentations
SQL Server Resource Governor. Introduction To The Resource Governor Resource Governor was added in SQL Server 2008 Purpose is to manage resources by specifying.
Advertisements

SQL Server AlwaysOn: Active Secondaries Luis Vargas Program Manager Microsoft Corporation DBI312.
Intro to SharePoint 2013 Architecture Liam Cleary.
– Optimizing Performance Paweł Hofman PLSSUG Wrocław 7 grudnia 2009.
Performance and Scalability. Optimizing PerformanceScaling UpScaling Out.
Microsoft SQL Server Performance Data Collection Strategies Date.
Balmukund Lakhani Technical Lead – SQL Support Team
Diagnostics. Module Objectives By the end of this module participants will be able to: Use diagnostic commands to troubleshoot and monitor performance.
w/ Service Provider Foundation & Service Management Automation VMs, Networks, Automation Service Bus Database SQL Sever MySQL Web Sites Services Plans.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
The Essentials: DMV’s and T-SQL for the DBA Rocky Mountain Tech Tri-Fecta.
Graeme Scott – Technology Solution Professional Reduce Infrastructure Costs & Increase Productivity with SQL Server 2008.
ManageEngine ® SQLDBManager Plus - Product Overview.
Microsoft Virtual Academy Module 4 Creating and Configuring Virtual Machine Networks.
Connect with life Praveen Srvatsa Director | AsthraSoft Consulting Microsoft Regional Director, Bangalore Microsoft MVP, ASP.NET.
Chris Testa-O’Neill EMC Consulting. Agenda Resource Governor Integrating Performance Monitor and Profiler Policy Based Management Performance Data Collector.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Performance and Scalability. Performance and Scalability Challenges Optimizing PerformanceScaling UpScaling Out.
Cloud Computing for the Enterprise November 18th, This work is licensed under a Creative Commons.
5 Copyright © 2008, Oracle. All rights reserved. Configuring the Oracle Network Environment.
5 Copyright © 2007, Oracle. All rights reserved. Configuring the Oracle Network Environment.
Performance Tuning Cubes and Queries in Analysis Services 2008 Chris Webb
Connect Learn Share Performance Optimization for Microsoft Dynamics CRM Presented by: Walter Grow Austin Jones.
11 Copyright © 2005, Oracle. All rights reserved. Configuring the Oracle Network Environment.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
11 Copyright © 2005, Oracle. All rights reserved. Configuring the Oracle Network Environment.
Copyright ®xSpring Pte Ltd, All rights reserved Versions DateVersionDescriptionAuthor May First version. Modified from Enterprise edition.NBL.
Windows 7 Firewall.
Learningcomputer.com SQL Server 2008 Configuration Manager.
SQL Server 2008 R2 for the DBA Patrick LeBlanc. Objectives  New Editions  Datacenter  Parallel Data Warehouse  Multi-server management  Utility Control.
By Lecturer / Aisha Dawood 1.  Dedicated and Shared Server Processes  Configuring Oracle Database for Shared Server  Oracle Database Background Processes.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
Hour 7 The Application Layer 1. What Is the Application Layer? The Application layer is the top layer in TCP/IP's protocol suite Some of the components.
BizTalk Throttling & Thresholds
Roy Ernest Database Administrator Pinnacle Sports Worldwide
Learningcomputer.com SQL Server 2008 – Profiling and Monitoring Tools.
SQL Server Management Tools Lesson 28. Skills Matrix.
SQLRX – SQL Server Administration – Tips From the Trenches SQL Server Administration – Tips From the Trenches Troubleshooting Reports of Sudden Slowdowns.
A Brief Documentation.  Provides basic information about connection, server, and client.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Amit Bansal CTO | Peopleware India (unit of eDominer Systems) | |
Indexes / Session 2/ 1 of 36 Session 2 Module 3: Types of Indexes Module 4: Maintaining Indexes.
SharePoint enhancements through SQL Server RSS integration with SharePoint What’s New Elimination of IIS
Troubleshooting SQL Server Performance: Tips &Tools Amit Khandelwal.
Your Data Any Place, Any Time Performance and Scalability.
Presented by Vishy Grandhi.  Lesson 1: AX Overview  Lesson 2: Role based security  Lesson 3: Monitoring  Troubleshooting.
Module 6: Administering Reporting Services. Overview Server Administration Performance and Reliability Monitoring Database Administration Security Administration.
Copyright Sammamish Software Services All rights reserved. 1 Prog 140  SQL Server Performance Monitoring and Tuning.
Diving into Query Execution Plans ED POLLACK AUTOTASK CORPORATION DATABASE OPTIMIZATION ENGINEER.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
1 SQL Server on VMware? Rob Mandeville Senior DBA, Confio Software 1 Virtualizing Our Environment: Lessons Learned Rob Mandeville.
MANAGEMENT DATA WAREHOUSE AND DATA COLLECTOR Ian Lanham.
SQL Database Management
Lesson # 9 HP UCMDB 8.0 Essentials
Troubleshooting SQL Server high CPU usage
BizTalk Throttling and Threshold
Affinity Depending on the application and client requirements of your Network Load Balancing cluster, you can be required to select an Affinity setting.
SQL Server 2012 AlwaysOn and SQLSentry
Network Tools and Utilities
Hitting the SQL Server “Go Faster” Button
SQL Server Monitoring Overview
Software Architecture in Practice
Troubleshooting SQL Server Connection Issues
Solving ETL Bottlenecks with SSIS Scale Out
Rock-Solid Performance with SQL Server 2008 Resource Governor
Targeting Wait Statistics with Extended Events
Governing Your Enterprise with Policy-Based Management
Your Data Any Place, Any Time
Dell EMC SQL Server Solutions Doug Bernhardt
Presentation transcript:

Introducing… Hosted by Steve Wright, Director of Product Support, SQL Sentry Presentation created by Aaron Bertrand, SQL Server MVP

 A technology that enables you to manage SQL Server workload and resources by specifying limits on resource consumption … or …  The new way to prevent your peons and pointy-haired bosses from bringing down your server

 To classify and prioritize workloads  To make resource usage more balanced and predictable  To help prevent, or at least to minimize, the “run away query”  To monitor and adapt the above tactics to further smooth resource usage

 Provides a “slice” of a SQL Server instance’s resources (min/max CPU, memory, or both)  Pools can overlap or be isolated  % of resources based on amount “left over” – not being used by internal processes  Allows for aggregate monitoring of all requests utilizing the pool

CREATE RESOURCE POOL pool_name [ WITH ( [ MIN_CPU_PERCENT = value ][[,] MAX_CPU_PERCENT = value ][[,] MIN_MEMORY_PERCENT = value ][[,] MAX_MEMORY_PERCENT = value ] )];

 This acts as a bucket for requests of a similar type (as defined by the “classifier function”) and to place constraints on those requests  Allows for aggregate monitoring of all requests from all the members of the group

CREATE WORKLOAD GROUP group_name [ WITH ([ IMPORTANCE = { LOW|MEDIUM|HIGH } ][[,] REQUEST_MAX_MEMORY_GRANT_PERCENT = value ][[,] REQUEST_MAX_CPU_TIME_SEC = value ][[,] REQUEST_MEMORY_GRANT_TIMEOUT_SEC = value ][[,] MAX_DOP = value ][[,] GROUP_MAX_REQUESTS = value ] )][ USING { pool_name | "default" } ];

 User-defined scalar function that allows you to customize how incoming requests are routed  Function returns a workload group name, which tells Resource Governor which pool to associate the request with  Needs to be very efficient

 You can segregate incoming requests using a whole slew of criteria:  LOGINPROPERTY (DefaultLanguage, DefaultDatabase)  ORIGINAL_DB_NAME()  HOST_NAME(), APP_NAME() *  CONNECTIONPROPERTY() – IP address, protocol, etc.  [S]USER_[S]NAME()  IS_SRVROLEMEMBER(), IS_MEMBER()  Also intrinsic functions, DATEPART, GETDATE(), etc.  Examples…

 Give sa high priority, and non-sa low priority CREATE FUNCTION dbo.Classifier() RETURNS SYSNAME WITH SCHEMABINDING AS BEGIN RETURN (SELECT CASE SUSER_SNAME() WHEN ‘sa’ THEN ‘HighPriorityGroup’ ELSE ‘LowPriorityGroup’ END ); END GO

 Give ad hoc Management Studio queries low priority during business hours, and high priority otherwise CREATE FUNCTION dbo.Classifier() RETURNS SYSNAME WITH SCHEMABINDING AS BEGIN RETURN (SELECT CASE WHEN APP_NAME() LIKE ‘%Management Studio%’ AND DATEPART(HOUR, GETDATE()) BETWEEN 9 AND 17 THEN ‘LowPriorityGroup’ ELSE ‘HighPriorityGroup’ END ); END GO

 Get the Dallas office back for that April Fool’s joke they played on the DBA CREATE FUNCTION dbo.Classifier() RETURNS SYSNAME WITH SCHEMABINDING AS BEGIN RETURN (SELECT CASE WHEN CONNECTIONPROPERTY(‘Local_Net_Address’) LIKE ‘ %’ THEN ‘Group_With_Max_CPU_1_Percent’ ELSE ‘HighPriorityGroup’ END ); END GO

 Create resource pools  Create workload groups  Create classifier function  Enable resource governor  Monitor and adapt

 New Perfmon objects with lots of counters:  SQLServer : Resource Pool Stats  SQLServer : Workload Group Stats  New trace events (e.g. CPU Threshold Exceeded)  There are also new DMVs:  sys.dm_resource_governor_workload_groups  sys.dm_resource_governor_resource_pools  sys.dm_resource_governor_configuration

 Re-schedule contentious processes based on observations from Perfmon, DMVs, trace  Place different constraints on pools / groups  Modify classifier function to change routing rules based on properties of request  Note that Classification changes do not affect existing connections, but pool / group changes do (after RECONFIGURE)

 CPU / Memory only (no I/O yet)  Database Engine only (no SSAS, SSRS, SSIS)  Single instance only  Short OLTP operations are immune to constraints  Lack of contention can also prevent enforcement  Cannot constrain “internal” processes  Must disable classification to modify classifier function (you can’t apply these changes to existing sessions)  Pool / group names are case sensitive  Enterprise Edition only!

 Usual suspects : BOL, MSDN, Blogs  Issues, requests?  Some links that go beyond documentation: cpu-demo.aspx cpus.aspx cpu-demo.aspx cpus.aspx

Visit for more information on our award winning softwarewww.sqlsentry.net