Presentation is loading. Please wait.

Presentation is loading. Please wait.

Managing a database environment in the cloud

Similar presentations


Presentation on theme: "Managing a database environment in the cloud"— Presentation transcript:

1 Managing a database environment in the cloud

2 Agenda What is cloud computing? What is Azure SQL Database?
Managing a SQL Database Monitoring a SQL Database

3 Vitor Fava MVP Data Platform Pass Chapter Leader do SQLManiacs
Module 0: Introduction Course ####y Vitor Fava MVP Data Platform Pass Chapter Leader do SQLManiacs SQL Server Database Consultant na Pythian CEO da Vita Database Solutions Welcome students to the course and introduce yourself. Provide a brief overview of your background to establish credibility. Ask students to introduce themselves and provide their backgrounds, product experience, and expectations of the course. Record student expectations on a whiteboard or flip chart that you can reference during class.

4 What is Cloud Computing?
What is the cloud? Where is the cloud? Are we in the cloud now? Cloud computing means storing and accessing data and programs over the Internet instead of your computer's hard drive. Software-as-a-Service (SaaS) Infrastructure-as-a-service (IaaS) Platform-as-a-Service (PaaS)

5 What is SQL Database? Relational database service in the cloud based on the market-leading Microsoft SQL Server engine, with mission-critical capabilities. Delivers predictable performance, scalability with no downtime, business continuity and data protection—all with near-zero administration Focus on rapid app development and accelerating your time to market, rather than managing virtual machines and infrastructure. Because it’s based on the SQL Server engine, SQL Database supports existing SQL Server tools, libraries and APIs, which makes it easier for you to move and extend to the cloud.

6 Azure – Service Tiers

7 What is DTU? DTU = Database Throughput Units
Resources assigned to a database Unified measure of CPU+Memory+Read/write rates CPU 40% 65% 30% 50% Writes Reads Memory Utilization

8 DTU Calculator How to calculate the needed DTU to my SQL Database?
You can predict the service tier  Too much: Not cost effective. Too less: You can put your database in trouble (and you!). DTU Calculator Online service ( Based on collected performance indicators. Processor - % Processor Time Logical Disk - Disk Reads/sec Logical Disk - Disk Writes/sec Database - Log Bytes Flushed/sec Does not take into account: Uptime SLA Point in time Restore Performance Objective

9 Managing a SQL Database
Azure Portal   Web-based application where you can create, update, and delete databases and logical servers and monitor database activity SSMS and Data Tools Client tools that run on your computer and allow you to connect to, manage, and develop your database in the cloud. Command line tools You can use command line tools such as PowerShell to manage databases and elastic database pools, and to automate Azure resource deployments.

10 Backup/Restore Point-in-time Restore - return the database to an earlier point in time. A kind of regular “restore”. Automatic backups: Weekly* full backup; Daily* differential backup; Log backups every 5 minutes; *automatically uploaded to geo-redundant Azure Storage SQL Database backups sabcp01bl21 Azure Storage sabcp01bl21 Geo- replicated Restore from backup

11 Restore to any Azure region
Business Continuity Geo-Restore - default recovery option when a database is unavailable. Restores last daily backup to another region, using a geo-replicated backup copy. SQL Database backups sabcp01bl21 Azure Storage sabcp01bl21 Geo- replicated Restore to any Azure region

12 Business Continuity Standard Geo-Replication - When the primary database fails you can initiate failover to a non-readable secondary. Offline secondary, fixed DR pairing. North Central US You must reconfigure the new secondary databases. LS OPQ DB Failover and activation of secondary (during incident) DB DB LS ABC LS XYZ West US East US

13 Business Continuity Active Geo-Replication - Up to 4 readable secondaries, with configurable regions. A kind of AG in the cloud. Geo- replicated

14 MONITORING A SQL DATABASE
DMVs Extended Events Query Performance Insight

15 Query Performance Insight
Deeper insight into your databases resource (DTU) consumption; The top CPU consuming queries, which can potentially be tuned for improved performance. The ability to drill down into the details of a query, view its text and history of resource utilization. Performance tuning annotations that show actions performed by SQL Azure Database Advisor

16 Query Performance Insight

17 Dúvidas?!

18


Download ppt "Managing a database environment in the cloud"

Similar presentations


Ads by Google