SQL Azure Database – High Availability

Slides:



Advertisements
Similar presentations
Database Throughput Unit – DTU Monitoring % of current Performance Level Utilization 75% Read 50% Write CPU 60% Memory (coming) Compute Writes.
Advertisements

Ken Casada Technical Evangelist Microsoft Switzerland What’s new in Microsoft Azure.
SQL Server Disaster Recovery Chris Shaw Sr. SQL Server DBA, Xtivia Inc.
SharePoint 2013 & SQL Server 2012 Availability Groups The Rough Guide.
1EMC CONFIDENTIAL—INTERNAL USE ONLY Overview of SQL Server 2012 High Availability and Disaster Recovery (HADR) Wei Fan Technical Partner Management – Microsoft.
FlareCo Ltd ALTER DATABASE AdventureWorks SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS Slide 1.
Keith Burns Microsoft UK Mission Critical Database.
Virtual techdays INDIA │ September 2011 High Availability - A Story from Past to Future Balmukund Lakhani │ Technical Lead – SQL Support, Microsoft.
SQL Server 2012 Always On Premier Field Engineer Microsoft Corporation Lisa Gardner
SharePoint Business Continuity Management with SQL Server AlwaysOn
IT Business Continuity Briefing March 3,  Incident Overview  Improving the power posture of the Primary Data Center  STAGEnet Redundancy  Telephone.
Business Continuity and Disaster Recovery Chapter 8 Part 2 Pages 914 to 945.
DATABASE MIRRORING  Mirroring is mainly implemented for increasing the database availability.  Is configured on a Database level.  Mainly involves two.
DB-2: OpenEdge® Replication: How to get Home in Time … Brian Bowman Sr. Solutions Engineer Sandy Caiado Sr. Solutions Engineer.
SQLintersection Session SQL37 SQL Server 2012 Availability Groups Aaron Bertrand
Introduktion till Azure SQL Database Robert Folkesson Active Solution.
High Friction & Control Resources Dedicated Shared Low 100% of API, Virtualized Roll-your-own HA/DR/scale SQL Server in IaaS Virtualized Machine SQL.
High Availability in DB2 Nishant Sinha
SQL Server 2012 Session: 1 Session: 4 SQL Azure Data Management Using Microsoft SQL Server.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
Narasimha Reddy Gopu Jisha J. Agenda Introduction to AlwaysOn * AlwaysOn Availability Groups (AG) & Listener * AlwaysOn Failover * AlwaysOn Active Secondaries.
Azure SQL Database Lori Clark SQL Saturday 10/17/2015.
SQL Server High Availability Introduction to SQL Server high availability solutions.
William Durkin A Gourmet Menu of SQL Server High Availability Options.
AlwaysOn In SQL Server 2012 Fadi Abdulwahab – SharePoint Administrator - 4/2013
FUN WITH AVAILABILITY GROUPS Christopher Wolff SQL Server Database Engineer, Xero.
SQL Server as a Cloud Service April 15th 2016 Warner Chaves Data Platform MVP/SQL Server MCM.
Are You High? Can You Recover? Robert Douglas SQL Saturday #468, Sydney 27 th February 2016.
Microsoft Dynamics NAV Dynamics NAV 2016 one Azure SQL Dmitry Chadayev Microsoft.
Managing a database environment in the cloud
Backups for Azure SQL Databases and SQL Server instances running on Azure Virtual Machines Session on backup to Azure feature (manual and managed) in SQL.
Use relational database as a service
State of Azure SQL Database
Azure Site Recovery For Hyper-V, VMware, and Physical Environments
Sponsors.
Business Continuity for Virtual SQL Servers
Why are you still taking backups?
ALWAYSON AVAILABILITY GROUPS
Navigating the options for Data Redundancy
Disaster Recovery Where to Begin
Lead SQL BankofAmerica Blog: SQLHarry.com
Getting Started with Azure DBaaS!
Migrating SQL Server to Azure the Right Way
The DBA with his Head in the Clouds (or being an Azure SQL DBA)
SQL DB Elastic Pools for SaaS
Example of a page header
Scaling In e Scaling Out através do elastic pool
Always On Availability Groups
Always on HA SQL Server Always ON feature is the new comprehensive high availability and disaster recovery solution which increases application availability.
SharePoint disaster recovery as a service
Planning for a Plan: Disaster Recovery Preparation
Azure SQL Database – Scaling in and Scaling out with elastic pool
04 – Azure SQL Database Bret Stateham | Senior Technical Evangelist​
Required 9s and data protection: introduction to sql server 2012 alwayson, new high availability solution Santosh Balasubramanian Senior Program Manager.
Azure SQL Database – Scaling in and Scaling out with elastic pool
Azure and SQL Server: Getting the best out of the cloud
Introduction to Azure SQL Database
SQL On Azure Parikshit Savjani, Sr. Premier Field Engineer.
Microsoft Azure P wer Lunch
Microsoft Azure Fundamentals: Data Understanding Microsoft Azure SQL
Azure SQL Database - Managing your database on the cloud
Understanding Azure SQL DB Service Tiers
AlwaysOn Availability Groups
Using the Cloud for Backup, Archiving & Disaster Recovery
Azure Files & Azure File Sync
04 | Always On High Availability
SQL Server Data Mobility
ZORAN BARAC DATA ARCHITECT at CIN7
Azure SQL Database for Business Critical Cloud Applications
Designing Database Solutions for SQL Server
Presentation transcript:

SQL Azure Database – High Availability Jan 2018 – SQL Saturday Malaysia 2018 Nagaraj Venkatesan, Data Platform MVP, Singapore

SQL Azure DB – HA / DR High Availability Backup n Restore Active Geo Replication Active Geo Replication + Failover Groups Active Geo Repl + FG + Elastic Pools

Default Backup Options Automatic Full, differential and T Log Local and Geo redundant Automatic backup 7 days for basic, 35 for standard, premium Long Term Retention for extended retention Retention Local Redundant – Any time Geo Redundant – 1 hour, 12 hours recovery time RPO / RTO Not suitable for mission critical workload Can’t do load sharing Challenges

Geo Replication Fundamentals Primary Secondary Asynchronous Active Secondary Upto 4 secondary Read Only Queries Service Tier Available on all service tier Primary n Secondary – Same tier Pricing n DTU Secondary can have lesser DTU than primary Secondary Pricing – Same like Primary

Geo Replication Fundamentals Primary Secondary Asynchronous Avoiding Data Loss Exec sp_wait_for_database_copy_sync Sizing Secondary Log IO % * Primary DTU Sys.dm_db_resource_stats

Comparison – RTO, RPO Capability Basic tier Standard tier Premium tier Point in Time Restore from backup Any restore point within 7 days Any restore point within 35 days Geo-restore from geo-replicated backups ERT < 12h, RPO < 1h Restore from Azure Backup Vault ERT < 12h, RPO < 1 wk Active geo-replication ERT < 30s, RPO < 5s

Transparent & Auto Failover Failover Groups

Failover Groups – ( Preview ) What is it Transparent failover like always on Read Write and Read Only URL Secondary Max 2 secondary Same subscription Failover Automatic or Manual Multiple DBs GracePeriod - Wait time before failover with data loss

Failover Group Application FAILOVER GROUP LISTENER Intent = Read Only Intent = Read /Write Intent = Read Only Intent = Read /Write Primary Secondary Secondary Primary Asynchronous Synchronization Failure

Failover Groups - Monitoring sys.dm_geo_replication_link_status replication_state_desc – Expect to see “catch-up” replication_lag_sec – Time to sync up lag last_commit – Time upto which secondary has caught up sys.dm_operation_status; Geo Replication Setup details

Multiple databases – cost effective solution Elastic pools

Elastic Pools Elastic Pool 150 DTU DB1 100 DTU DB1 AVG usage – 40 DTU Peak – 80 DTU DB2 100 DTU DB2 DB3 100 DTU DB3

Assume 3 DBs peak simultaneously Elastic Pools Normal SQL Database 10 Databases 100 DTU each AVG: 40 DTU MAX: 80 DTU Total DTU = 100 * 10 = 1000 DTU COST: 1.5 * 1000= 1500 USD Elastic Pool Assume 3 DBs peak simultaneously 10 Databases AVG: 40 DTU MAX: 80 DTU Total DTU: (( 80 * 3 ) + ( 40 * 7 ) ) = 240 + 280 = 520 DTU = 2.25 * 520 = 1170 USD

Elastic Pools Multiple DB with Varying Workload Avoids over / under provisioning Elastic Pools Predictable price 1.5 times Single DB DTU cost Suitable for * Multiple DBs * Spikes with pattern * Db don’t’ spike in parallel

Configuring Elastic Pool with Failover Groups 2) Elastic Pool needs to exist on secondary as well 1) Elastic Pool to be created before FG Delete FG Delete secondary DB Create Epool on primary Import Primary DB into Epool Create Epool on Secondary Configure FG

References SQL Azure Database Pricing - https://azure.microsoft.com/en-us/pricing/details/sql- database/ Failover Groups - https://docs.microsoft.com/en- us/azure/sql-database/sql-database-geo-replication- overview https://docs.microsoft.com/en-us/azure/sql- database/sql-database-designing-cloud-solutions-for- disaster-recovery https://docs.microsoft.com/en-us/azure/sql- database/sql-database-disaster-recovery-strategies- for-applications-with-elastic-pool https://docs.microsoft.com/en-us/azure/sql- database/sql-database-business-continuity