monitoring microsoft azure sql server vms and sql database

23
Grant Fritchey | www.ScaryDBA.com www.ScaryDBA.com Monitoring Microsoft Azure SQL Server VMs and SQL Database Grant Fritchey [email protected]

Upload: dixon

Post on 22-Feb-2016

56 views

Category:

Documents


3 download

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 Presentation

TRANSCRIPT

Page 1: Monitoring Microsoft Azure SQL Server VMs and SQL Database

Grant Fritchey | www.ScaryDBA.comwww.ScaryDBA.com

Monitoring Microsoft Azure SQL Server VMs and SQL DatabaseGrant [email protected]

Page 2: Monitoring Microsoft Azure SQL Server VMs and SQL Database

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

Page 3: Monitoring Microsoft Azure SQL Server VMs and SQL Database

Grant Fritchey | www.ScaryDBA.com

Get in touch Grant Fritchey

scarydba.com

[email protected]

@gfritchey

Page 4: Monitoring Microsoft Azure SQL Server VMs and SQL Database

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

Page 6: Monitoring Microsoft Azure SQL Server VMs and SQL Database

Grant Fritchey | www.ScaryDBA.com

What Can Be Monitored Azure Microsoft Azure SQL Database (MASD) Azure SQL Server Virtual Machine Blob Storage

Page 7: Monitoring Microsoft Azure SQL Server VMs and SQL Database

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

Page 8: Monitoring Microsoft Azure SQL Server VMs and SQL Database

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

Page 9: Monitoring Microsoft Azure SQL Server VMs and SQL Database

Grant Fritchey | www.ScaryDBA.com

DEMOAzure Monitoring

Page 10: Monitoring Microsoft Azure SQL Server VMs and SQL Database

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

Page 11: Monitoring Microsoft Azure SQL Server VMs and SQL Database

Grant Fritchey | www.ScaryDBA.com

MASD: Tools Azure Management Portal Windows Azure SQL Database Portal Dynamic Management Objects (DMOs)

Page 12: Monitoring Microsoft Azure SQL Server VMs and SQL Database

Grant Fritchey | www.ScaryDBA.com

DEMOSQL Database Monitoring

Page 13: Monitoring Microsoft Azure SQL Server VMs and SQL Database

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

Page 14: Monitoring Microsoft Azure SQL Server VMs and SQL Database

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

Page 15: Monitoring Microsoft Azure SQL Server VMs and SQL Database

Grant Fritchey | www.ScaryDBA.com

DEMOVM Monitoring

Page 16: Monitoring Microsoft Azure SQL Server VMs and SQL Database

Grant Fritchey | www.ScaryDBA.com

Blob Storage: What Can You Monitor Ingress/Egress Availability Latency Capacity Others

Page 17: Monitoring Microsoft Azure SQL Server VMs and SQL Database

Grant Fritchey | www.ScaryDBA.com

Blob Storage: Tools Azure Management Portal Azure SDK

Page 18: Monitoring Microsoft Azure SQL Server VMs and SQL Database

Grant Fritchey | www.ScaryDBA.com

DEMOStorage Monitoring

Page 19: Monitoring Microsoft Azure SQL Server VMs and SQL Database

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

Page 20: Monitoring Microsoft Azure SQL Server VMs and SQL Database

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

Page 22: Monitoring Microsoft Azure SQL Server VMs and SQL Database

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

Page 23: Monitoring Microsoft Azure SQL Server VMs and SQL Database

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