Download - SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

Transcript
Page 1: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

SQL Azure Administration and Application Self-Servicing

Michal LesiczkaProgram ManagerMicrosoft Corporation

Vinod Jagannathan Program ManagerMicrosoft Corporation

DBI326

Page 2: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

Agenda

Context and Role DefinitionSQL Azure Management SQL Azure Troubleshooting

Page 3: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

Who is the Application Administrator?

Azure Application

SQL Azure SQL

AzureSQL

Azure

SQL Azure

Azure App

SQL Azure

Azure App

SQL Azure

SQL Azure

SQL Azure

SQL Azure

SQL Azure

Azu

re

Applic

ati

on

• Enterprise Tier 1 / Mission Critical• Small # (tens)• 1:1 Admin to App• Highly managed

• CSV• No traditional roles (devs?)• Highly automated• Multi-tenant (1 tenant per DB or Federations)• 100s – 10,000s tenants• Aggregated experience for monitoring,

troubleshooting, management is key

• Breadth/Web & Departmental Apps• Many small distinct apps• 1 DB per app• 1:N (~10) App Admin to App

Page 4: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

Physical vs. Logical Administration

Instance

App Admin role places more focus on logical management

Security

Database

HA Configuration

Schema Creation & Management

Transparent Failovers

Load Balancing

Query Optimization

Page 5: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

App Admin Responsibilities

App LifecyclePlan, Stage, Deploy

Import, Export, Workflows

Patch, Upgrade

Backup, Restore, Recover

Delete, Retire

App Schema

Schema editing

Ad-hoc queries

App Health

Monitoring

Diagnostics

Fixes

App Security

User management

Compliance Reports

Page 6: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

Troubleshooting Features

Summaries and global viewsSQL Azure Management portal integration

Live TroubleshootingLimited DMV coverageExtending DMV coverageDatabase Extended Events

Historical TroubleshootingEvent Table (Logging)

Page 7: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

SQL Azure Management Portal

Page 8: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

SQL Azure Management Portal

Customer Complaints: How do I easily manage my SQL Azure databases?How can I easily look at query plans and troubleshoot my query?

Solution: The SQL Azure Management Portal simplifies management and troubleshooting of databases.

Database management experienceQuery performance detailsQuery plansEvent table support

Page 9: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

demo

SQL Azure Management Portal

Page 10: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

Database Extended Events

Page 11: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

Database Extended Events

Customer Complaint: How do I trace the workload to understand where time is being spent and pinpoint any potential issues?

Solution: Utilize Extended Events to do live troubleshooting on databases in SQL AzureProvides consistent experience between on-premise and SQL Azure troubleshooting

Page 12: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

demo

Database Extended Events

Page 13: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

Live Troubleshooting using DMVs

Customer Complaint: I have a high workload but I am seeing a fairly low number of connections and sessions for my application. How can I find out what T-SQL is executing and if I can improve things?

Solution: New DMVs that provide insight into cached plans, trigger and stored procedure usage and performance.

Page 14: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

demo

Troubleshooting using DMVs

Page 15: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

New DMVsDMV Scenario

sys.dm_exec_query_memory_grants

Queries waiting for memory before they can be executed.

sys.dm_exec_cached_plans Execution plans that are currently in the case.

sys.dm_db_missing_index_details

Missing indexes that would increase the query performance.

sys.dm_db_missing_index_columns

Missing table columns for a given index.

sys.dm_db_missing_index_groups

Missing indexes are contained in a specific missing index group, excluding spatial indexes.

sys.dm_db_missing_index_group_stats

Groups of missing indexes, excluding spatial indexes.

sys.dm_db_index_usage_stats Information about the usage of an index.

sys.dm_db_index_physical_stats Information about the physical layout for a given index (space consumption etc).

sys.dm_db_index_operational_stats

Information about the performance for a given index.

sys.dm_exec_procedure_stats Usage of stored procedures in the database.

sys.dm_exec_trigger_stats Usage of triggers in the database.

Page 16: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

Historical Troubleshooting using Event TableCustomer Complaint:

My application experienced issues a few days ago. Is it potentially related to a deadlock in SQL Azure?

Solution: Event table provides historical event logging inside the logical masterEvents types:

Successful connectionsConnection failuresThrottlingDeadlocks

Page 17: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

demo

Event Table

Page 18: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

Session Takeaways

Position the App Admin role Manage a SQL Azure application Troubleshoot a SQL Azure application

Page 21: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

Resources

Connect. Share. Discuss.

http://northamerica.msteched.com

Learning

Microsoft Certification & Training Resources

www.microsoft.com/learning

TechNet

Resources for IT Professionals

http://microsoft.com/technet

Resources for Developers

http://microsoft.com/msdn

Page 22: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

Complete an evaluation on CommNet and enter to win!

Page 23: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

MS Tag

Scan the Tagto evaluate thissession now onmyTechEd Mobile

Page 24: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.

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

Page 25: SQL Azure Administration and Application Self-Servicing Michal Lesiczka Program Manager Microsoft Corporation Vinod Jagannathan Program Manager Microsoft.