Balmukund Lakhani Technical Lead – SQL Support Team

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Preface Demo A Quick Thank You How Did We Do It?
Feature: Identity Management - Login © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Windows 7 Training. Windows ® 7 Compatibility Session 0 Isolation Isolation of Windows 7 Services.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Reprint Outstanding Transactions Report © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Performance and Scalability. Optimizing PerformanceScaling UpScaling Out.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
demo Default WANGPSLookup Default WANGPS.
Feature: Payroll and HR Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Co- location Mass Market Managed Hosting ISV Hosting.
Connecting Cloud and On-Premises Applications Using Windows Azure Virtual Network Name Title Microsoft Corporation.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Multitenant Model Request/Response General Model.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Announcing Demo Announcing.
Feature: OLE Notes Migration Utility
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: SmartList Usability Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
WinHEC /22/2017 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Connect with life Connect with life
Windows Azure Connect Name Title Microsoft Corporation.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
SQL Server SQL Azure Visual Studio“Quadrant” SQL Server Modeling Services Entity Framework ADO.NET“M”/EDM Data Services …
announcing Dev Manager Do I understand what we’ve built? Developer Can I bet on using this shared component? Testers What’s changed since I last.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
Feature: Void Historical/Open Transaction Updates © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
Windows Azure SQL Data Sync Name Title Microsoft Corporation.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Sr. Dir. – Systems Architecture Inlet Technologies.
INDEPENDENT RESEARCH ON SQL SERVER 2012 Noel Yuhanna, Principal Analyst, Forrester Research Jeffrey North, Principal Consultant, Forrester Research.

Возможности Excel 2010, о которых следует знать
Rock-Solid Performance with SQL Server 2008 Resource Governor
Title of Presentation 11/22/2018 3:34 PM
Title of Presentation 12/2/2018 3:48 PM
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
PENSACOLA ENERGY WORK PLAN OCTOBER 10, 2016
Title of Presentation 5/12/ :53 PM
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
Title of Presentation 7/24/2019 8:53 PM
Presentation transcript:

Balmukund Lakhani Technical Lead – SQL Support Team

Currently Technical Lead – SQL Support Team. Owner Active Participant in MSDN Forum for SQL. In past Sr. Support Engineer - Microsoft Premier Field Engineer – Microsoft Support Engineer - Microsoft ERP Consultant – Ramco Systems Sr. Systems Analyst – Ramco Systems SQL Developer / DBA – Ramco Systems

Managing Resources Key Concepts of Resource Governor Configuration Usage Scenarios

Why there is a need of Resource Governor

There have been asks for “limits” Control Run-away queries. Give control to DBA.

SQL Server Single resource pool Database engine doesn’t differentiate workloads Best effort resource sharing Backup Admin Tasks Executive Reports OLTP Activity Ad-hoc Reports Memory, CPU, Threads

Tell me more…

Classifier Function Classify connection to workload group Workload Group Aggregate similar session requests Resource Pool Manage server’s physical resources

Ability to differentiate workloads e.g. app_name, login Per-request limits Max memory % Max CPU time Grant timeout Max Requests Resource monitoring SQL Server Memory, CPU, Threads AdminWorkloadOLTPWorkloadReportWorkload Backup Admin Tasks OLTP Activity Ad-hoc Reports Executive Reports

A workload can have an importance label Low Medium High Gives resource allocation preference to workloads based on importance SQL Server Memory, CPU, Threads AdminWorkloadOLTPWorkloadReportWorkload Backup Admin Tasks OLTP Activity Ad-hoc Reports Executive Reports High

Resource pool: A virtual subset of physical database engine resources Provides controls to specify Min Memory % Max Memory % Min CPU % Max CPU % Max DOP Resource monitoring Up to 20 resource pools SQL Server Min Memory 10% Max Memory 20% Max CPU 20% Min Memory 10% Max Memory 20% Max CPU 20% AdminWorkloadOLTPWorkloadReportWorkload Backup Admin Tasks OLTP Activity Ad-hoc Reports Executive Reports High Max CPU 90% Admin Admin Pool Application Application Pool

Workloads are mapped to Resource Pools (n : 1) Online changes of groups/pools SQL Server 2005 = default group + default pool Main Benefit Prevent run-away queries SQL Server Min Memory 10% Max Memory 20% Max CPU 20% Min Memory 10% Max Memory 20% Max CPU 20% AdminWorkloadOLTPWorkloadReportWorkload Backup Admin Tasks OLTP Activity Ad-hoc Reports Executive Reports High Max CPU 90% Admin Admin Pool Application Application Pool

host_name () app_name () suser_name () suser_sname () is_srvrolemember () is_member () original_db_name () loginproperty connectionproperty UDF rules apply: No data modification No DCL No transactions No stored procedures No XPs with rowset No EXEC No linked servers

Show me the demo…

Let’s take a look at runaway query.

Why didn’t SQL Server put a limit on the CPU that the query was using? If there are no other cars on the road, why should the governor slow down the solo driver? Why don’t we try that again, but this time we will add one more session

Let’s take a look at that runaway query again.

Metadata CVs: sys.resource_governor_resource_pools sys.resource_governor_workload_groups sys.resource_governor_configuration Running value DMVs: sys.dm_resource_governor_resource_pools sys.dm_resource_governor_workload_groups

Where can you use?

Problem: My users won’t let me put Payroll and GL on the same server. 3rd party packages have unknown, uncontrollable queries. Solution: Configure RG by application or database to minimise interference. Offer enhanced performance for key business cycles, such as pay-day or end-of-quarter.

Problem: Excel and Access users use production databases for workgroup applications. Particularly for reporting, we can’t control their impact on transaction processing. Solution: Create workload groups by application, such as ‘%excel%’ and ‘%access%’ Assign those workload groups to a low-priority resource pool. Use workload connection limits to restrict concurrent usage.

Database Engine only – no SSAS, SSRS, SSIS Many components are not subject to RG, for example sp_OA, linked server queries, XPs, database mail Limit of 18 user-defined resource pools (20 total) Cannot constrain internal pools / groups No throttling of I/O yet. Enterprise Edition only!

Home work…

This is just a quick start to the resource governor, we can do much more with this. Classifiers based on other criteria Time of day Application connecting to certain DB Using the DMVs to determine issues and modify workload groups or resource pools on the fly Much more!

Books Online

© 2009 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.