Controlling Resources in SQL Server
-
Upload
chris-testa-oneill -
Category
Data & Analytics
-
view
204 -
download
0
description
Transcript of Controlling Resources in SQL Server
Controlling Resources in SQL Server
Chris Testa-O’Neill – SQL Server MVP
Principal Consultant
Microsoft SQL Server and Azure Consulting
Who Am I?
Microsoft SQL Server and Azure Consulting
Publications
AUTHOR
• Collection 6233AE: Implementing and Maintaining Business Intelligence in Microsoft SQL Server 2008
• Collection 2778BE: Querying and Modifying Data in Microsoft SQL Server 2008 with Transact-SQL
• Collection 6369AE: Implementing and Maintaining Microsoft SQL Server 2008
• Collection 6370AE: Microsoft SQL Server 2008 R2 Database Development
AUTHOR/TECHNICAL REVIEWER
• Course 20467A: Designing Business Intelligence Solutions with Microsoft SQL Server 2012
TECHNICAL REVIEWER
• Course 10777A: Implementing a Data Warehouse with Microsoft SQL Server 2012
• Course 10778A: Implementing Data Models and Reports with Microsoft SQL Server 2012
TECHNICAL REVIEWER
• Course 20463A: Implementing a Data Warehouse with Microsoft SQL Server 2014
• Course 20466A: Implementing Data Models and Reports with Microsoft SQL Server 2014
• Course 20467B : Designing Business Intelligence Solutions with Microsoft SQL Server 2014
• Course 10977A: Updating Your SQL Server Skills to Microsoft SQL Server 2014
Microsoft SQL Server and Azure Consulting
Agenda
•Resource Governor
•Policy-Based Management
Microsoft SQL Server and Azure Consulting
Resource Governor• Monitor and manage the workloads on your SQL Server
system
• Enterprise 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
Microsoft SQL Server and Azure Consulting
Resource Governor Components
• Resource Pools represents the physical resources of the server
Internal and default
• Workload Groups serves as a container for session requests that are
similar
• Classification Function a set of user-written criteria contained in a function
Microsoft SQL Server and Azure Consulting
Demo
Microsoft SQL Server and Azure Consulting
Policy Based management
• Enforce the configuration of SQL Server On all editions for single instance
Enterprise and Standard for multiple instances
• Can be used to centrally managed multiple servers
• Can export and import policies
• Can evaluate policies
Microsoft SQL Server and Azure Consulting
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.
Microsoft SQL Server and Azure Consulting
How policies are enforced
• Manually
• Scheduled
• On change prevent – (DDL triggers)
• On change log only – (event notifications)
Microsoft SQL Server and Azure Consulting
Demo
Microsoft SQL Server and Azure Consulting
Questions?
Microsoft SQL Server and Azure Consulting
www.claribi.co.uk
@ctesta_oneill
@_claribi_
Thank you!
Microsoft SQL Server and Azure Consulting