monitoring microsoft azure sql server vms and sql database
DESCRIPTION
Monitoring Microsoft Azure SQL Server VMs and SQL Database. Grant Fritchey [email protected]. Goals. Understand the different parts of the architecture that can be monitored Learn about the tools used for monitoring - PowerPoint PPT PresentationTRANSCRIPT
Grant Fritchey | www.ScaryDBA.comwww.ScaryDBA.com
Monitoring Microsoft Azure SQL Server VMs and SQL DatabaseGrant [email protected]
Grant Fritchey | www.ScaryDBA.com
Goals Understand the different parts of the
architecture that can be monitored Learn about the tools used for monitoring Identify the differences
between monitoring a physical box, a local VM and a hosted environment
Grant Fritchey | www.ScaryDBA.com
Get in touch Grant Fritchey
scarydba.com
@gfritchey
Grant Fritchey | www.ScaryDBA.com 4
Monitoring as the Basis of Knowledge Monitoring is the ultimate example of
knowledge is power Is the server online and available Are there errors we need to know
about What does the performance look like Immediate performance information Historical performance information Ability to compare to a known state
Grant Fritchey | www.ScaryDBA.com
Architectural Differences The hardware is effectively invisible Within Azure, you get what Microsoft gives
you Most tools are already known to you Automation is available It’s on the cloud
Grant Fritchey | www.ScaryDBA.com
What Can Be Monitored Azure Microsoft Azure SQL Database (MASD) Azure SQL Server Virtual Machine Blob Storage
Grant Fritchey | www.ScaryDBA.com
Azure: What Can You Monitor? Azure Service Azure applications Various Azure components As a SQL Server DBA» Beyond availability, not much here
Grant Fritchey | www.ScaryDBA.com
Azure: Tools Windows Azure Service Dashboard Azure Management Portal Service level diagnostics data
(Azure Applications, outside our scope) Azure SDK System Center Azure Monitoring Pack 3rd Party
Grant Fritchey | www.ScaryDBA.com
DEMOAzure Monitoring
Grant Fritchey | www.ScaryDBA.com
MASD: What Can You Monitor Availability Connectivity Core query performance Deadlocks Errors Throttling But you can’t monitor» Extended query performance» Disk I/O» Detailed performance metrics»Most internals
Grant Fritchey | www.ScaryDBA.com
MASD: Tools Azure Management Portal Windows Azure SQL Database Portal Dynamic Management Objects (DMOs)
Grant Fritchey | www.ScaryDBA.com
DEMOSQL Database Monitoring
Grant Fritchey | www.ScaryDBA.com
Azure VM: What Can You Monitor It’s Windows
» Availability» Internally, everything you
expect to see» Externally, no access to
underlying hardware It’s SQL Server» Internally, everything you expect to see» Relationship to Windows, exactly what you expect» Externally, no access to underlying hardware
It’s a VM» Internal behaviors still related to standard templates» I/O can be observed» No other external access
Grant Fritchey | www.ScaryDBA.com
Azure SQL Server VM: Tools Standard tool set» Performance Monitor» Extended Events» Trace Events» Dynamic Management Objects» Performance Monitor Counters
Additional Tools» AzureTools» Event Viewer» Logs» Azure SDK» 3rd Party
Grant Fritchey | www.ScaryDBA.com
DEMOVM Monitoring
Grant Fritchey | www.ScaryDBA.com
Blob Storage: What Can You Monitor Ingress/Egress Availability Latency Capacity Others
Grant Fritchey | www.ScaryDBA.com
Blob Storage: Tools Azure Management Portal Azure SDK
Grant Fritchey | www.ScaryDBA.com
DEMOStorage Monitoring
Grant Fritchey | www.ScaryDBA.com
General Recommendations Retry Logic Plan for outage
» Not because Azure is bad, but because it’s the internet
Build in logging and tracing» And make that configurable» Instrument your code
Treat T-SQL the same as ever» Although MASD data collection is limited
Focus on VM internals» Surrender control over the external system
Except for I/O» That you can monitor» To speed I/O, look to put static content
on a nearby Content Delivery Network (CDN) Take regular baselines
Grant Fritchey | www.ScaryDBA.com
More Recommendations Right-size the CPU» You pay for what you use, but
dedicating CPU to you is the same thing as using them.
Enable Read/Write cache» On by default» High I/O switch to none» Latency sensitive and
low I/O switch to read Create an Availability Group for your VMs
Grant Fritchey | www.ScaryDBA.com
Most Important Recommendations Don’t trust anything I’ve told you about
recommendations Don’t trust anything
Microsoft tells you about recommendations
Verify everything through testing
Grant Fritchey | www.ScaryDBA.com
References Monitoring Windows Azure SQL Database Usin
g Dynamic Management Views SQL on Azure VM Troubleshooting in Windows Azure How to Monitor a Storage Account Windows Azure – Troubleshooting & Debuggin
g Azure SQL Server VM Disk Configuration Collect Logging Data by Using Windows Azure
Diagnostics Take Control of Logging and Tracing in Windo
ws Azure Troubleshooting and Monitoring for SQL Serve
r in Azure Virtual Machines Windows Azure SQL Database Performance an
d Elasticity Guide Performance Guidance for SQL Server in Wind
ows Azure Virtual Machines
Grant Fritchey | www.ScaryDBA.com
Goals Understand the different parts of the
architecture that can be monitored Learn about the tools used for monitoring Identify the differences
between monitoring a physical box, a local VM and a hosted environment