SlideShare a Scribd company logo
1 of 27
Core Monitoring
Steve Jones
SQL Server Central, Red Gate Software
#sqlinthecity
Goals
• Understand the value of monitoring
• Understand what baselines are
• Learn the core items to monitor for SQL Server
Accidents Happen
3
Workloads Grow
4
Systems Evolve
5
What is Monitoring?
• Awareness of the state of a system
• Tracking state across time
• Alerts for changes
– Does not mean critical alerts/pages
• For SQL Server this includes
– Tracking key hardware metrics (CPU,
memory, I/O)
– Tracking instance/database metrics
(transactions)
– Business metrics
What’s Normal?
7
Baselines
• Using monitoring data over time
• Understanding what “normal” is
• Trending
• Extrapolation
Baselines
9
Core Items to Monitor
• Lots of choices
– Windows performance counters
– SQL Server performance counters
– Hypervisor counters
– SQL Server management metrics
– Trace/Extended Events
• Lots of lists available
– Can be version specific
Core Items to Monitor
Your list of metrics will be unique to your
environment.
Core Items to Monitor
• Performance Counters
– Memory – Available MBytes
– Paging File – % Usage
– Physical Disk – Avg. Disk sec/Read
– Physical Disk – Avg. Disk sec/Write
– Physical Disk – Disk Reads/sec
– Physical Disk – Disk Writes/sec
– Processor – % Processor Time
– SQLServer: Buffer Manager – Page life expectancy
– SQLServer: General Statistics – User Connections
– SQLServer: Memory Manager – Memory Grants Pending
– SQLServer: SQL Statistics – Batch Requests/sec
– SQLServer: SQL Statistics – Compilations/sec
– SQLServer: SQL Statistics – Recompilations/sec
– System – Processor Queue Length
From: SQL Server Perfmon (Performance Monitor) Best Practices
12
Core Items to Monitor
• Hypervisor Counters
– CPU usage
– Memory usage (especially balloon counters and swapping)
– Disk I/O
Check with your hypervisor administrator/vendor/consultants
13
Core Items to Monitor
• Administrative Items
– Machine is running (Windows and SQL Server levels)
– Backup time
– Log shipping delay
– Mirroring delay
– Cluster/AG failover
– Job Failure/Duration
– High Severity Errors
14
15
Demo
Performance Monitoring
Monitoring is not just for
performance
16
Beyond Performance
• Administrative tasks need to be monitored
– DBCC
– Fragmentation
– Backups
– Job Duration
– Disk Space
– Long running queries
– Monitoring Down?
17
Beyond Performance
• Business processes should be monitored
– How many orders are you receiving?
– Are ETL loads completing?
– Inventory status
• Development
– Tracking Changes
– CI metrics
– Open ticket times
18
19
http://monitor.red-gate.com
Business Metrics
20
21
Demo
Tracking administrative and business metrics
Homework
• Make sure you have a baseline of all instances
– Have a list of your metrics
– Don’t over monitor
• Set a reminder to periodically review “normal”
– Monthly meeting
– store baselines reports for reference
• Add counters/metrics as necessary to ensure
you understand your environment
22
Goals
• Understand the value of monitoring
• Understand what baselines are
• Learn the core items to monitor for SQL Server
The End
• Backup and recovery
• Troubleshooting
• Productivity
• Questions?
• www.sqlservercentral.com/forums
• Sponsored by Red Gate Software and the SQL DBA Bundle
• Speak to the Red Gate team during the breaks for more info
about the tools in the SQL DBA Bundle
• Performance monitoring
• Change management
• Storage and capacity planning
• Documentation
Learn More
• http://www.sqlservercentral.com
• http://www.simple-talk.com
• http://www.red-gate.com/products/dba/dba-bundle/entrypage/
• http://www.scarydba.com/tag/query-tuning/
• http://voiceofthedba.wordpress.com/tag/administration/
References
• Monitoring (Wikipedia) - http://en.wikipedia.org/wiki/Monitoring
• Monitoring SQL Server - http://msdn.microsoft.com/en-us/library/ee377023(v=bts.10).aspx
• Performance Monitoring and Tuning Tools -
http://msdn.microsoft.com/en-us/library/ms179428.aspx
• SQL Monitor from Red Gate - http://www.red-gate.com/products/dba/sql-monitor/
• Trending - http://www.thefreedictionary.com/trending
• Extrapolation - http://en.wikipedia.org/wiki/Extrapolation
• Top 10 SQL Server Counters for Monitoring SQL Server Performance -
http://www.databasejournal.com/features/mssql/article.php/3932406/Top-10-SQL-Server-Counters-for-Mo
• Correlating SQL Server Profiler with Performance Monitor -
https://www.simple-talk.com/sql/database-administration/correlating-sql-server-profiler-with-performance-m
• SQL Server Perfmon (Performance Monitor) Best Practices -
http://www.brentozar.com/archive/2006/12/dba-101-using-perfmon-for-sql-performance-tuning/
• Correlate a Trace with Windows Performance Log Data -
http://technet.microsoft.com/en-us/library/ms191152.aspx
Images
• Blue screen of death - http://www.flickr.com/photos/_aldem/3196618156/
• Twitter overload - http://www.flickr.com/photos/renaissancechambara/2584497396/
• Abnormal load - http://www.flickr.com/photos/nickwebb/6189613363/
• Statistics for the Utterly Confused - http://www.amazon.com/Statistics-Utterly-Confused-Series-
ebook/dp/B000JMKOWI/ref=sr_1_2?ie=UTF8&qid=1360886590&sr=8-
2&keywords=statistics+for+the+utterly+confused
• http://www.flickr.com/photos/48220147@N07/8068255361/in/photolist-dhXVe4-e8uDwc-7ThDci-
88a1nS-7FMFjC-8nhbin-dorMZv-8xpk4h-7JKe33-7JFibR-8SS7EJ-7CuWcv-bNGqFK-8xpm3N-
8xpkGL-8xpk9Y-axoysW-atrwpR-8xpmbL-auSBrK-cR4cbE-bUQC5N-e5j8W2-8wBuqT-7C8pCw-
93wUnz-dwCCjH-8JxGh2-844Ku9-7Ydxrz-dJBMGb-8m1BFw-8EkXX3-7zGqZC-8HWffw-a84fQD-
a878qf-a84g2p-a878mb-a84g62-a878C9-7y4z2D-8KVGNd-89cnvX-9FJMYs-9FFTu4-arRMAa-
aHPXPe
27

More Related Content

What's hot

SAP Innovations:Are you overlooking important functionality in SAP Controlling
SAP Innovations:Are you overlooking important functionality in SAP ControllingSAP Innovations:Are you overlooking important functionality in SAP Controlling
SAP Innovations:Are you overlooking important functionality in SAP ControllingAlice Adams
 
5 tips for sap material master buyer and planner functions
5 tips for sap material master buyer and planner functions5 tips for sap material master buyer and planner functions
5 tips for sap material master buyer and planner functionsJohn Jordan
 
SharePoint Backup best Practices
SharePoint Backup best PracticesSharePoint Backup best Practices
SharePoint Backup best PracticesRon Charity
 
04. sap business_suite_4_hana
04. sap business_suite_4_hana04. sap business_suite_4_hana
04. sap business_suite_4_hanaRoberto Ortiz
 
Sap solution manager 7.0 by knack it training
Sap solution manager 7.0 by  knack it trainingSap solution manager 7.0 by  knack it training
Sap solution manager 7.0 by knack it trainingKnack IT Training
 
how_rockwell_automation_optimized_its_product_costing_process
how_rockwell_automation_optimized_its_product_costing_processhow_rockwell_automation_optimized_its_product_costing_process
how_rockwell_automation_optimized_its_product_costing_processJohn Jordan
 
The Wright Way into the Cloud: The Argument for ARCS
The Wright Way into the Cloud:  The Argument for ARCSThe Wright Way into the Cloud:  The Argument for ARCS
The Wright Way into the Cloud: The Argument for ARCSAlithya
 
Interconnect session 1888: Rational Team Concert Process Customization: What ...
Interconnect session 1888: Rational Team Concert Process Customization: What ...Interconnect session 1888: Rational Team Concert Process Customization: What ...
Interconnect session 1888: Rational Team Concert Process Customization: What ...Rosa Naranjo
 

What's hot (9)

SAP Innovations:Are you overlooking important functionality in SAP Controlling
SAP Innovations:Are you overlooking important functionality in SAP ControllingSAP Innovations:Are you overlooking important functionality in SAP Controlling
SAP Innovations:Are you overlooking important functionality in SAP Controlling
 
5 tips for sap material master buyer and planner functions
5 tips for sap material master buyer and planner functions5 tips for sap material master buyer and planner functions
5 tips for sap material master buyer and planner functions
 
How to Implement Fiori Central Hub 1610
How to Implement Fiori Central Hub 1610How to Implement Fiori Central Hub 1610
How to Implement Fiori Central Hub 1610
 
SharePoint Backup best Practices
SharePoint Backup best PracticesSharePoint Backup best Practices
SharePoint Backup best Practices
 
04. sap business_suite_4_hana
04. sap business_suite_4_hana04. sap business_suite_4_hana
04. sap business_suite_4_hana
 
Sap solution manager 7.0 by knack it training
Sap solution manager 7.0 by  knack it trainingSap solution manager 7.0 by  knack it training
Sap solution manager 7.0 by knack it training
 
how_rockwell_automation_optimized_its_product_costing_process
how_rockwell_automation_optimized_its_product_costing_processhow_rockwell_automation_optimized_its_product_costing_process
how_rockwell_automation_optimized_its_product_costing_process
 
The Wright Way into the Cloud: The Argument for ARCS
The Wright Way into the Cloud:  The Argument for ARCSThe Wright Way into the Cloud:  The Argument for ARCS
The Wright Way into the Cloud: The Argument for ARCS
 
Interconnect session 1888: Rational Team Concert Process Customization: What ...
Interconnect session 1888: Rational Team Concert Process Customization: What ...Interconnect session 1888: Rational Team Concert Process Customization: What ...
Interconnect session 1888: Rational Team Concert Process Customization: What ...
 

Similar to Steve Jones - Core Monitoring

Monitoring Oracle SOA Suite
Monitoring Oracle SOA SuiteMonitoring Oracle SOA Suite
Monitoring Oracle SOA SuiteC2B2 Consulting
 
Monitoring Oracle SOA Suite - UKOUG Tech15 2015
Monitoring Oracle SOA Suite - UKOUG Tech15 2015Monitoring Oracle SOA Suite - UKOUG Tech15 2015
Monitoring Oracle SOA Suite - UKOUG Tech15 2015C2B2 Consulting
 
Idea Port Riga: Siebel health check and optimization
Idea Port Riga: Siebel health check and optimizationIdea Port Riga: Siebel health check and optimization
Idea Port Riga: Siebel health check and optimizationGuntis Valters
 
Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA EDB
 
Transforming your procure to pay process
Transforming your procure to pay processTransforming your procure to pay process
Transforming your procure to pay processLisa Wilberding
 
Transforming procure to-pay
Transforming procure to-payTransforming procure to-pay
Transforming procure to-payEvery Angle US
 
Collaborate 2011-tuning-ebusiness-416502
Collaborate 2011-tuning-ebusiness-416502Collaborate 2011-tuning-ebusiness-416502
Collaborate 2011-tuning-ebusiness-416502kaziul Islam Bulbul
 
ITIL Best Practice for Software Companies
ITIL Best Practice for Software CompaniesITIL Best Practice for Software Companies
ITIL Best Practice for Software CompaniesDaniel Brody
 
collab2011-tuning-ebusiness-421966.pdf
collab2011-tuning-ebusiness-421966.pdfcollab2011-tuning-ebusiness-421966.pdf
collab2011-tuning-ebusiness-421966.pdfElboulmaniMohamed
 
Analysing and Troubleshooting Performance Issues in SAP BusinessObjects BI Re...
Analysing and Troubleshooting Performance Issues in SAP BusinessObjects BI Re...Analysing and Troubleshooting Performance Issues in SAP BusinessObjects BI Re...
Analysing and Troubleshooting Performance Issues in SAP BusinessObjects BI Re...BI Brainz
 
1 Information Systems Analysis & Design,.pptx
1 Information Systems Analysis & Design,.pptx1 Information Systems Analysis & Design,.pptx
1 Information Systems Analysis & Design,.pptxMadhusudhanaSubraman
 
Role of-analytics-in-db as-life
Role of-analytics-in-db as-lifeRole of-analytics-in-db as-life
Role of-analytics-in-db as-lifeNavneet Upneja
 
Remote DBA Experts SQL Server 2008 New Features
Remote DBA Experts SQL Server 2008 New FeaturesRemote DBA Experts SQL Server 2008 New Features
Remote DBA Experts SQL Server 2008 New FeaturesRemote DBA Experts
 
Top 5 server performance problems and how to resolve them using OpManager
Top 5 server performance problems and how to resolve them using OpManagerTop 5 server performance problems and how to resolve them using OpManager
Top 5 server performance problems and how to resolve them using OpManagerManageEngine
 
Database Visibility and Troubleshooting Hands-on Lab - AppSphere16
Database Visibility and Troubleshooting Hands-on Lab - AppSphere16Database Visibility and Troubleshooting Hands-on Lab - AppSphere16
Database Visibility and Troubleshooting Hands-on Lab - AppSphere16AppDynamics
 
Choosing the Right Business Intelligence Tools for Your Data and Architectura...
Choosing the Right Business Intelligence Tools for Your Data and Architectura...Choosing the Right Business Intelligence Tools for Your Data and Architectura...
Choosing the Right Business Intelligence Tools for Your Data and Architectura...Victor Holman
 
Managing Your Hyperion Environment – Performance Tuning, Problem Solving and ...
Managing Your Hyperion Environment – Performance Tuning, Problem Solving and ...Managing Your Hyperion Environment – Performance Tuning, Problem Solving and ...
Managing Your Hyperion Environment – Performance Tuning, Problem Solving and ...eCapital Advisors
 
SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1sqlserver.co.il
 

Similar to Steve Jones - Core Monitoring (20)

Monitoring Oracle SOA Suite
Monitoring Oracle SOA SuiteMonitoring Oracle SOA Suite
Monitoring Oracle SOA Suite
 
Monitoring Oracle SOA Suite - UKOUG Tech15 2015
Monitoring Oracle SOA Suite - UKOUG Tech15 2015Monitoring Oracle SOA Suite - UKOUG Tech15 2015
Monitoring Oracle SOA Suite - UKOUG Tech15 2015
 
Managing Challenges In Your JDA Environment
Managing Challenges In Your JDA EnvironmentManaging Challenges In Your JDA Environment
Managing Challenges In Your JDA Environment
 
EVOLVE'16 | Enhance | Gordon Pike | Rev Up Your Marketing Engine
EVOLVE'16 | Enhance | Gordon Pike | Rev Up Your Marketing EngineEVOLVE'16 | Enhance | Gordon Pike | Rev Up Your Marketing Engine
EVOLVE'16 | Enhance | Gordon Pike | Rev Up Your Marketing Engine
 
Idea Port Riga: Siebel health check and optimization
Idea Port Riga: Siebel health check and optimizationIdea Port Riga: Siebel health check and optimization
Idea Port Riga: Siebel health check and optimization
 
Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA
 
Transforming your procure to pay process
Transforming your procure to pay processTransforming your procure to pay process
Transforming your procure to pay process
 
Transforming procure to-pay
Transforming procure to-payTransforming procure to-pay
Transforming procure to-pay
 
Collaborate 2011-tuning-ebusiness-416502
Collaborate 2011-tuning-ebusiness-416502Collaborate 2011-tuning-ebusiness-416502
Collaborate 2011-tuning-ebusiness-416502
 
ITIL Best Practice for Software Companies
ITIL Best Practice for Software CompaniesITIL Best Practice for Software Companies
ITIL Best Practice for Software Companies
 
collab2011-tuning-ebusiness-421966.pdf
collab2011-tuning-ebusiness-421966.pdfcollab2011-tuning-ebusiness-421966.pdf
collab2011-tuning-ebusiness-421966.pdf
 
Analysing and Troubleshooting Performance Issues in SAP BusinessObjects BI Re...
Analysing and Troubleshooting Performance Issues in SAP BusinessObjects BI Re...Analysing and Troubleshooting Performance Issues in SAP BusinessObjects BI Re...
Analysing and Troubleshooting Performance Issues in SAP BusinessObjects BI Re...
 
1 Information Systems Analysis & Design,.pptx
1 Information Systems Analysis & Design,.pptx1 Information Systems Analysis & Design,.pptx
1 Information Systems Analysis & Design,.pptx
 
Role of-analytics-in-db as-life
Role of-analytics-in-db as-lifeRole of-analytics-in-db as-life
Role of-analytics-in-db as-life
 
Remote DBA Experts SQL Server 2008 New Features
Remote DBA Experts SQL Server 2008 New FeaturesRemote DBA Experts SQL Server 2008 New Features
Remote DBA Experts SQL Server 2008 New Features
 
Top 5 server performance problems and how to resolve them using OpManager
Top 5 server performance problems and how to resolve them using OpManagerTop 5 server performance problems and how to resolve them using OpManager
Top 5 server performance problems and how to resolve them using OpManager
 
Database Visibility and Troubleshooting Hands-on Lab - AppSphere16
Database Visibility and Troubleshooting Hands-on Lab - AppSphere16Database Visibility and Troubleshooting Hands-on Lab - AppSphere16
Database Visibility and Troubleshooting Hands-on Lab - AppSphere16
 
Choosing the Right Business Intelligence Tools for Your Data and Architectura...
Choosing the Right Business Intelligence Tools for Your Data and Architectura...Choosing the Right Business Intelligence Tools for Your Data and Architectura...
Choosing the Right Business Intelligence Tools for Your Data and Architectura...
 
Managing Your Hyperion Environment – Performance Tuning, Problem Solving and ...
Managing Your Hyperion Environment – Performance Tuning, Problem Solving and ...Managing Your Hyperion Environment – Performance Tuning, Problem Solving and ...
Managing Your Hyperion Environment – Performance Tuning, Problem Solving and ...
 
SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1
 

More from Red Gate Software

The future of DevOps: fully left-shifted deployments with version control and...
The future of DevOps: fully left-shifted deployments with version control and...The future of DevOps: fully left-shifted deployments with version control and...
The future of DevOps: fully left-shifted deployments with version control and...Red Gate Software
 
Embracing DevOps through database migrations with Flyway
Embracing DevOps through database migrations with FlywayEmbracing DevOps through database migrations with Flyway
Embracing DevOps through database migrations with FlywayRed Gate Software
 
Database DevOps for Managed Service Providers
Database DevOps for Managed Service ProvidersDatabase DevOps for Managed Service Providers
Database DevOps for Managed Service ProvidersRed Gate Software
 
Mizuho Financial: Launching our Database DevOps journey
Mizuho Financial: Launching our Database DevOps journeyMizuho Financial: Launching our Database DevOps journey
Mizuho Financial: Launching our Database DevOps journeyRed Gate Software
 
7 steps to effective SQL Server monitoring
7 steps to effective SQL Server monitoring7 steps to effective SQL Server monitoring
7 steps to effective SQL Server monitoringRed Gate Software
 
Level up your deployments for SQL Source Control
Level up your deployments for SQL Source Control Level up your deployments for SQL Source Control
Level up your deployments for SQL Source Control Red Gate Software
 
Key findings from the 2020 state of database dev ops report
Key findings from the 2020 state of database dev ops reportKey findings from the 2020 state of database dev ops report
Key findings from the 2020 state of database dev ops reportRed Gate Software
 
Extend DevOps to Your SQL Server Databases
Extend DevOps to Your SQL Server DatabasesExtend DevOps to Your SQL Server Databases
Extend DevOps to Your SQL Server DatabasesRed Gate Software
 
What we learned at PASS Summit in 2019
What we learned at PASS Summit in 2019What we learned at PASS Summit in 2019
What we learned at PASS Summit in 2019Red Gate Software
 
Quality in Software Development: Anglia Ruskin University
Quality in Software Development: Anglia Ruskin UniversityQuality in Software Development: Anglia Ruskin University
Quality in Software Development: Anglia Ruskin UniversityRed Gate Software
 
How SQL Change Automation helps you deliver value faster
How SQL Change Automation helps you deliver value fasterHow SQL Change Automation helps you deliver value faster
How SQL Change Automation helps you deliver value fasterRed Gate Software
 
DevOps essentials from Abel Wang and Steve Jones
DevOps essentials from Abel Wang and Steve JonesDevOps essentials from Abel Wang and Steve Jones
DevOps essentials from Abel Wang and Steve JonesRed Gate Software
 
Successfully migrating existing databases to Azure
Successfully migrating existing databases to AzureSuccessfully migrating existing databases to Azure
Successfully migrating existing databases to AzureRed Gate Software
 
The Ultimate Guide to Choosing and Implementing the Right Monitoring Tool
The Ultimate Guide to Choosing and Implementing the Right Monitoring ToolThe Ultimate Guide to Choosing and Implementing the Right Monitoring Tool
The Ultimate Guide to Choosing and Implementing the Right Monitoring ToolRed Gate Software
 
Everything You Need to Know About the 2019 DORA Accelerate State of DevOps Re...
Everything You Need to Know About the 2019 DORA Accelerate State of DevOps Re...Everything You Need to Know About the 2019 DORA Accelerate State of DevOps Re...
Everything You Need to Know About the 2019 DORA Accelerate State of DevOps Re...Red Gate Software
 
Using Redgate, AKS and Azure to bring DevOps to your database
Using Redgate, AKS and Azure to bring DevOps to your databaseUsing Redgate, AKS and Azure to bring DevOps to your database
Using Redgate, AKS and Azure to bring DevOps to your databaseRed Gate Software
 
Using Redgate, AKS and Azure to bring DevOps to your Database
Using Redgate, AKS and Azure to bring DevOps to your DatabaseUsing Redgate, AKS and Azure to bring DevOps to your Database
Using Redgate, AKS and Azure to bring DevOps to your DatabaseRed Gate Software
 
How to Pitch a Software Development Initiative and Ignite Culture Change
How to Pitch a Software Development Initiative and Ignite Culture ChangeHow to Pitch a Software Development Initiative and Ignite Culture Change
How to Pitch a Software Development Initiative and Ignite Culture ChangeRed Gate Software
 

More from Red Gate Software (20)

The future of DevOps: fully left-shifted deployments with version control and...
The future of DevOps: fully left-shifted deployments with version control and...The future of DevOps: fully left-shifted deployments with version control and...
The future of DevOps: fully left-shifted deployments with version control and...
 
Embracing DevOps through database migrations with Flyway
Embracing DevOps through database migrations with FlywayEmbracing DevOps through database migrations with Flyway
Embracing DevOps through database migrations with Flyway
 
Database DevOps for Managed Service Providers
Database DevOps for Managed Service ProvidersDatabase DevOps for Managed Service Providers
Database DevOps for Managed Service Providers
 
Mizuho Financial: Launching our Database DevOps journey
Mizuho Financial: Launching our Database DevOps journeyMizuho Financial: Launching our Database DevOps journey
Mizuho Financial: Launching our Database DevOps journey
 
7 steps to effective SQL Server monitoring
7 steps to effective SQL Server monitoring7 steps to effective SQL Server monitoring
7 steps to effective SQL Server monitoring
 
Level up your deployments for SQL Source Control
Level up your deployments for SQL Source Control Level up your deployments for SQL Source Control
Level up your deployments for SQL Source Control
 
Key findings from the 2020 state of database dev ops report
Key findings from the 2020 state of database dev ops reportKey findings from the 2020 state of database dev ops report
Key findings from the 2020 state of database dev ops report
 
Extend DevOps to Your SQL Server Databases
Extend DevOps to Your SQL Server DatabasesExtend DevOps to Your SQL Server Databases
Extend DevOps to Your SQL Server Databases
 
2019 year in review slides
2019 year in review slides2019 year in review slides
2019 year in review slides
 
What we learned at PASS Summit in 2019
What we learned at PASS Summit in 2019What we learned at PASS Summit in 2019
What we learned at PASS Summit in 2019
 
Quality in Software Development: Anglia Ruskin University
Quality in Software Development: Anglia Ruskin UniversityQuality in Software Development: Anglia Ruskin University
Quality in Software Development: Anglia Ruskin University
 
How SQL Change Automation helps you deliver value faster
How SQL Change Automation helps you deliver value fasterHow SQL Change Automation helps you deliver value faster
How SQL Change Automation helps you deliver value faster
 
DevOps essentials from Abel Wang and Steve Jones
DevOps essentials from Abel Wang and Steve JonesDevOps essentials from Abel Wang and Steve Jones
DevOps essentials from Abel Wang and Steve Jones
 
Successfully migrating existing databases to Azure
Successfully migrating existing databases to AzureSuccessfully migrating existing databases to Azure
Successfully migrating existing databases to Azure
 
The Ultimate Guide to Choosing and Implementing the Right Monitoring Tool
The Ultimate Guide to Choosing and Implementing the Right Monitoring ToolThe Ultimate Guide to Choosing and Implementing the Right Monitoring Tool
The Ultimate Guide to Choosing and Implementing the Right Monitoring Tool
 
Everything You Need to Know About the 2019 DORA Accelerate State of DevOps Re...
Everything You Need to Know About the 2019 DORA Accelerate State of DevOps Re...Everything You Need to Know About the 2019 DORA Accelerate State of DevOps Re...
Everything You Need to Know About the 2019 DORA Accelerate State of DevOps Re...
 
Using Redgate, AKS and Azure to bring DevOps to your database
Using Redgate, AKS and Azure to bring DevOps to your databaseUsing Redgate, AKS and Azure to bring DevOps to your database
Using Redgate, AKS and Azure to bring DevOps to your database
 
Using Redgate, AKS and Azure to bring DevOps to your Database
Using Redgate, AKS and Azure to bring DevOps to your DatabaseUsing Redgate, AKS and Azure to bring DevOps to your Database
Using Redgate, AKS and Azure to bring DevOps to your Database
 
How to Pitch a Software Development Initiative and Ignite Culture Change
How to Pitch a Software Development Initiative and Ignite Culture ChangeHow to Pitch a Software Development Initiative and Ignite Culture Change
How to Pitch a Software Development Initiative and Ignite Culture Change
 
Taming the Wild West
Taming the Wild West Taming the Wild West
Taming the Wild West
 

Recently uploaded

New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 

Recently uploaded (20)

New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 

Steve Jones - Core Monitoring

  • 1. Core Monitoring Steve Jones SQL Server Central, Red Gate Software #sqlinthecity
  • 2. Goals • Understand the value of monitoring • Understand what baselines are • Learn the core items to monitor for SQL Server
  • 6. What is Monitoring? • Awareness of the state of a system • Tracking state across time • Alerts for changes – Does not mean critical alerts/pages • For SQL Server this includes – Tracking key hardware metrics (CPU, memory, I/O) – Tracking instance/database metrics (transactions) – Business metrics
  • 8. Baselines • Using monitoring data over time • Understanding what “normal” is • Trending • Extrapolation
  • 10. Core Items to Monitor • Lots of choices – Windows performance counters – SQL Server performance counters – Hypervisor counters – SQL Server management metrics – Trace/Extended Events • Lots of lists available – Can be version specific
  • 11. Core Items to Monitor Your list of metrics will be unique to your environment.
  • 12. Core Items to Monitor • Performance Counters – Memory – Available MBytes – Paging File – % Usage – Physical Disk – Avg. Disk sec/Read – Physical Disk – Avg. Disk sec/Write – Physical Disk – Disk Reads/sec – Physical Disk – Disk Writes/sec – Processor – % Processor Time – SQLServer: Buffer Manager – Page life expectancy – SQLServer: General Statistics – User Connections – SQLServer: Memory Manager – Memory Grants Pending – SQLServer: SQL Statistics – Batch Requests/sec – SQLServer: SQL Statistics – Compilations/sec – SQLServer: SQL Statistics – Recompilations/sec – System – Processor Queue Length From: SQL Server Perfmon (Performance Monitor) Best Practices 12
  • 13. Core Items to Monitor • Hypervisor Counters – CPU usage – Memory usage (especially balloon counters and swapping) – Disk I/O Check with your hypervisor administrator/vendor/consultants 13
  • 14. Core Items to Monitor • Administrative Items – Machine is running (Windows and SQL Server levels) – Backup time – Log shipping delay – Mirroring delay – Cluster/AG failover – Job Failure/Duration – High Severity Errors 14
  • 16. Monitoring is not just for performance 16
  • 17. Beyond Performance • Administrative tasks need to be monitored – DBCC – Fragmentation – Backups – Job Duration – Disk Space – Long running queries – Monitoring Down? 17
  • 18. Beyond Performance • Business processes should be monitored – How many orders are you receiving? – Are ETL loads completing? – Inventory status • Development – Tracking Changes – CI metrics – Open ticket times 18
  • 22. Homework • Make sure you have a baseline of all instances – Have a list of your metrics – Don’t over monitor • Set a reminder to periodically review “normal” – Monthly meeting – store baselines reports for reference • Add counters/metrics as necessary to ensure you understand your environment 22
  • 23. Goals • Understand the value of monitoring • Understand what baselines are • Learn the core items to monitor for SQL Server
  • 24. The End • Backup and recovery • Troubleshooting • Productivity • Questions? • www.sqlservercentral.com/forums • Sponsored by Red Gate Software and the SQL DBA Bundle • Speak to the Red Gate team during the breaks for more info about the tools in the SQL DBA Bundle • Performance monitoring • Change management • Storage and capacity planning • Documentation
  • 25. Learn More • http://www.sqlservercentral.com • http://www.simple-talk.com • http://www.red-gate.com/products/dba/dba-bundle/entrypage/ • http://www.scarydba.com/tag/query-tuning/ • http://voiceofthedba.wordpress.com/tag/administration/
  • 26. References • Monitoring (Wikipedia) - http://en.wikipedia.org/wiki/Monitoring • Monitoring SQL Server - http://msdn.microsoft.com/en-us/library/ee377023(v=bts.10).aspx • Performance Monitoring and Tuning Tools - http://msdn.microsoft.com/en-us/library/ms179428.aspx • SQL Monitor from Red Gate - http://www.red-gate.com/products/dba/sql-monitor/ • Trending - http://www.thefreedictionary.com/trending • Extrapolation - http://en.wikipedia.org/wiki/Extrapolation • Top 10 SQL Server Counters for Monitoring SQL Server Performance - http://www.databasejournal.com/features/mssql/article.php/3932406/Top-10-SQL-Server-Counters-for-Mo • Correlating SQL Server Profiler with Performance Monitor - https://www.simple-talk.com/sql/database-administration/correlating-sql-server-profiler-with-performance-m • SQL Server Perfmon (Performance Monitor) Best Practices - http://www.brentozar.com/archive/2006/12/dba-101-using-perfmon-for-sql-performance-tuning/ • Correlate a Trace with Windows Performance Log Data - http://technet.microsoft.com/en-us/library/ms191152.aspx
  • 27. Images • Blue screen of death - http://www.flickr.com/photos/_aldem/3196618156/ • Twitter overload - http://www.flickr.com/photos/renaissancechambara/2584497396/ • Abnormal load - http://www.flickr.com/photos/nickwebb/6189613363/ • Statistics for the Utterly Confused - http://www.amazon.com/Statistics-Utterly-Confused-Series- ebook/dp/B000JMKOWI/ref=sr_1_2?ie=UTF8&qid=1360886590&sr=8- 2&keywords=statistics+for+the+utterly+confused • http://www.flickr.com/photos/48220147@N07/8068255361/in/photolist-dhXVe4-e8uDwc-7ThDci- 88a1nS-7FMFjC-8nhbin-dorMZv-8xpk4h-7JKe33-7JFibR-8SS7EJ-7CuWcv-bNGqFK-8xpm3N- 8xpkGL-8xpk9Y-axoysW-atrwpR-8xpmbL-auSBrK-cR4cbE-bUQC5N-e5j8W2-8wBuqT-7C8pCw- 93wUnz-dwCCjH-8JxGh2-844Ku9-7Ydxrz-dJBMGb-8m1BFw-8EkXX3-7zGqZC-8HWffw-a84fQD- a878qf-a84g2p-a878mb-a84g62-a878C9-7y4z2D-8KVGNd-89cnvX-9FJMYs-9FFTu4-arRMAa- aHPXPe 27

Editor's Notes

  1. Accidents happen. Systems will fail. When something happens, you want to know about it as soon as possible.
  2. Workloads can grow. We’ve seen some famous failures of large systems from Microsoft, Amazon. Facebook, and Twitter. In some cases you can’t do anything, but in many you can see workloads growing and take proactive actions.
  3. Not only can we have problems, but we can just have change. The way our systems work as we enhance and patch them, the way our applications are used will change as our organizations change. We want to know when those changes are occurring so we can provide the services we need to for our customers. http://www.flickr.com/photos/48220147@N07/8068255361/in/photolist-dhXVe4-e8uDwc-7ThDci-88a1nS-7FMFjC-8nhbin-dorMZv-8xpk4h-7JKe33-7JFibR-8SS7EJ-7CuWcv-bNGqFK-8xpm3N-8xpkGL-8xpk9Y-axoysW-atrwpR-8xpmbL-auSBrK-cR4cbE-bUQC5N-e5j8W2-8wBuqT-7C8pCw-93wUnz-dwCCjH-8JxGh2-844Ku9-7Ydxrz-dJBMGb-8m1BFw-8EkXX3-7zGqZC-8HWffw-a84fQD-a878qf-a84g2p-a878mb-a84g62-a878C9-7y4z2D-8KVGNd-89cnvX-9FJMYs-9FFTu4-arRMAa-aHPXPe
  4. Monitoring is an awareness of your system. Even if it’s not you, at least some system is tracking how your database is functioning. Monitoring includes tracking this information across time, not just at spot values. Monitoring includes some response, in the form of alerts. These need not be urgent pages people respond to, but they can be flags that get attention the next day, or sometime this week.
  5. Is a query that takes 48 minutes to run, slow? We have no way to know. If this query is supposed to run in 5 minutes, yes. If it normally takes 60 minutes, no. Einstein in 1905 studied the speed of light and was trying to explain its speed. Unlike physical objects, the speed of light doesn’t vary if you are moving towards, away, or across its path. Speed is a function of distance and time. Until this point, most physicists, and people in general, assumed that time was an absolute. It was a point of reference we all could use as a basis for measurement. Einstein postulated that time was in fact relative, and it might vary depending on the observer. The same thing applies to our systems. We can’t necessarily look at any measurements and declare them good or bad. For example, PLE of 300. This isn’t necessarily a good measurement. We can only measure our systems in relation to some known values.
  6. Baselines are an extension of monitoring, in what you use the monitoring data over time to gain an understanding of what the normal state of the system is. This can be something you use proactively, or something you check when there is suspicion that a system is not acting normal. There are two proactive uses for baseline information. The first is trending, and understanding how your system is changing over time (growing or shrinking) along some axis of measurement. Extrapolation is using the data to predict specific future behaviors, such as the amount of disk space you will need at some point in the future.
  7. Here is an example of the SSC database. We have a two node cluster, which was running as active/active earlier this year. As you can see, we were barely using the hardware, at 20%. I believe this was the Simple Talk node. As a DBA, we like this. 20%, lots of headroom. As a CTO/CFO, this is a waste of hardware. At some point, we failed over. This was a short period of time, but you can see a spike here. We failed back. I wish that I had captured the SSC node at this time period since it would have been interesting to see the load on the other node. If it were also at 20%, then we’d know we had a hardware mismatch here. That would be useful information. We may or may not have done something, but it might let us know as the first node load increases, we need to consider increasing this hardware as well. Or we should investigate if we have other tenants on this hardware (it’s virtual) that might be causing issues.
  8. There are lots of choices in terms of which items to monitor on your servers. There are Windows and SQL Server performance based counters. These are items that measure how well the system is performing, like CU%, transactions/sec, and more. There could be hypervisor counters that you need to monitor as well if you are in a virtual environment. If you are unaware of these counters, you might mis-diagnose or mis-understand how your system is performing. There are also SQL Server management counters, things like the time since the last DBCC or backup. Those don’t affect performance, but they are core monitoring items. Beware that many of the lists available are version specific, and advice may change over time. If you are looking at an article/blog/video/etc, please ensure that it corresponds to your version. New information and features sometimes change the monitoring you need to set up.
  9. There are lots of choices in terms of which items to monitor on your servers. There are Windows and SQL Server performance based counters. These are items that measure how well the system is performing, like CU%, transactions/sec, and more. There could be hypervisor counters that you need to monitor as well if you are in a virtual environment. If you are unaware of these counters, you might mis-diagnose or mis-understand how your system is performing. There are also SQL Server management counters, things like the time since the last DBCC or backup. Those don’t affect performance, but they are core monitoring items. Beware that many of the lists available are version specific, and advice may change over time. If you are looking at an article/blog/video/etc, please ensure that it corresponds to your version. New information and features sometimes change the monitoring you need to set up.
  10. This is a list of performance metrics from Brent Ozar PLF. It’s a good base list. You may need other items, or want to capture other information, but this is a good base list. If you find there are other hardware items that impact your system, you may want to add them, and document the list for others.
  11. Here are counters that help ensure you are checking things that impact availability and reliability.
  12. Here are counters that help ensure you are checking things that impact availability and reliability. The first one might be obvious, but you never know when there are systems that go down, which are not in use. Peoplesoft story, end-of-quarter/EOY system that was down on the 14 th of the month. Not checked until the 24 th and we were unaware this was down until we were called. These are items that affect the performance and reliability of your system in real time.
  13. Demo 1 – Show perf counters in SQL Server Demo 2 – Correlate data from counters. - run perfmon - new user defined set, manually - get perf mon data - Add two counters (CPU, disk IO) - defaults, store in local disk, start. - run profiler, tuning template, add start/end times, filter by ADW - run sql code - stop trace, save file - stop collection set. - reopen trace, import perf data - show performance monitoring with SQL Monitor
  14. Monitoring is for more than just performance. Other things come into play.
  15. In addition to the technical stuff you monitor for performance and administrative tasks, you should consider including various business metrics. These may be sent to business people instead of technical people. You might use your monitoring framework to do this, in addition to the technical stuff. These items, which might be considered meta data about the operation of your system, could be valuable for helping your business work more efficiently. In terms of development, you might use this type of framework to help enforce or teach practices, or even understand how efficient your development staff works. You could track changes, especially unauthorized ones. You might use this to track builds in a CI process, or even the length of time tickets are open if your ticketing system runs on SQL Server.
  16. Here are a number of custom items we’ve added to our database servers. Note that we track metrics from Simple Talk that give us an idea of how much engagement and activity is occurring on the system at a given time. We track some of these items in the application, but we don’t often see the distribution or rate at which they occur. We can also monitor these items and set alerts that notify us if the rates are too low, a sign that things have gone wrong. We do the same thing at SQLServerCentral.
  17. Demo 1 – administrative tracking, look for missing backups, dbccs, severity, mirroring send queue metric Demo 2 – Setup object change tracking in SQL Monitor
  18. Items that the attendees should look at next week at work. Get baselines, get a schedule.