Distributed Availability Groups

Slides:



Advertisements
Similar presentations
Implementing SQLServer AlwaysON Sarabpreet Singh Anand SQL Server – MVP SQLServerGeeks.com (VP)
Advertisements

SharePoint 2013 & SQL Server 2012 Availability Groups The Rough Guide.
Mecanismos de alta disponibilidad con Microsoft SQL Server 2008 Por: ISC Lenin López Fernández de Lara.
1EMC CONFIDENTIAL—INTERNAL USE ONLY Overview of SQL Server 2012 High Availability and Disaster Recovery (HADR) Wei Fan Technical Partner Management – Microsoft.
1 Cheriton School of Computer Science 2 Department of Computer Science RemusDB: Transparent High Availability for Database Systems Umar Farooq Minhas 1,
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
Module 14: Scalability and High Availability. Overview Key high availability features available in Oracle and SQL Server Key scalability features available.
National Manager Database Services
High-Availability Methods Lesson 25. Skills Matrix.
SQL-Server 2012 Always On.
MODIFY THIS SLIDE FOR ACTUAL PRESENTER, DELETE THIS BAR AFTER MODIFICATION.
DATABASE MIRRORING  Mirroring is mainly implemented for increasing the database availability.  Is configured on a Database level.  Mainly involves two.
SQLCAT: SQL Server 2012 AlwaysOn Lessons Learned from Early Customer Deployments Sanjay Mishra Program Manager Microsoft Corporation DBI360.
Rajib Kundu Agenda Definitions Failover Cluster Database Snapshots Log shipping Database Mirroring.
SQLintersection Session SQL37 SQL Server 2012 Availability Groups Aaron Bertrand
DBI Meets mission critical high availability SLA Integrated Efficient Flexible.
SQLCAT: SQL Server HA and DR Design Patterns, Architectures, and Best Practices Using Microsoft SQL Server 2012 AlwaysOn Sanjay Mishra Program Manager.
7. Replication & HA Objectives –Understand Replication and HA Contents –Standby server –Failover clustering –Virtual server –Cluster –Replication Practicals.
Speaker Name 00/00/2013. Solution Requirements.
Alwayson Availability Groups
Course Topics Administering SQL Server 2012 Jump Start 01 | Install and Configure SQL Server04 | Manage Data 02 | Maintain Instances and Databases05 |
Data Disaster Recovery Planning Greg Fibiger 1/7/2016.
Warwick Rudd – Henry Rooney – How Available is SQL Server 2016? DAT33 6.
SQL Server 2012: AlwaysOn HA and DR Design Patterns, and Lessons Learned from Early Customer Deployments Sanjay Mishra SQLCAT.
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.
SQL Server 2014 AlwaysOn Step-by-Step SQL Server 2014 AlwaysOn Step-by-Step A hands on look at implementing AlwaysOn in SQL Server 2014.
What HADR Option(s) Are Right For You?. Where’s The AlwaysOn?
SQL Server High Availability Introduction to SQL Server high availability solutions.
All the things you need to know before setting up AlwaysOn Michael Steineke SQL & BI Solution Lead Enterprise Architect Concurrency, Inc.
Windows Server Failover Clustering (WSFC) with SQL Server.
SQL 2012 – Always On Deep Dive Bob Duffy Database Architect Prodata SQL Centre of Excellence 11 th April 2013.
High Availability & Disaster Recovery with SQL Server AlwaysOn Availability Groups Turgay Sahtiyan Microsoft – Senior SQL Server PFE
ALWAYSON AVAILABILITY GROUPS Replicas, Listeners & Quorums, Oh My! Kevin Howell SQL Saturday #517 Philadelphia, June 2016.
Turgay Sahtiyan Istanbul, Turkey
Sponsors.
ALWAYSON AVAILABILITY GROUPS
Navigating the options for Data Redundancy
Disaster Recovery Where to Begin
AlwaysOn Mirroring, Clustering
Always On Multi-Site Patterns
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
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.
VIDIZMO Deployment Options
Contained DB? Did it do something wrong?
Required 9s and data protection: introduction to sql server 2012 alwayson, new high availability solution Santosh Balasubramanian Senior Program Manager.
Always On : Multi-site patterns
AlwaysOn, an Early bird Overview
AlwaysOn Availability Groups 101
Introduction to Clustering
Disaster Recovery Where to Begin
Always On : Multi-site patterns
What’s new in SQL Server 2016 Availability Groups
Planning High Availability and Disaster Recovery
Always On : Multi-site patterns
Example of a page header
SYED SAJID WASIM SQL SERVER ALWAYS ON Step by Step.
AlwaysOn Availability Groups
High Availability/Disaster Recovery Solution
04 | Always On High Availability
Using Distributed AGs for Your Migrations
Using Distributed AGs for Your Migrations
Top 5 TIPS TO KEEP Always on AGs humming and users happy
SQL AlwaysOn Availability Groups
Designing Database Solutions for SQL Server
Presentation transcript:

Distributed Availability Groups Raghu Gopalakrishnan Microsoft PFE

Agenda AlwaysOn Availability Groups Basics Data Replication between nodes Distributed Availability Groups Introduction Setup Demo Use Cases Agenda

AlwaysOn Availability Groups (Traditional) https://blogs.msdn.microsoft.com/sqlcat/2014/02/03/alwayson-availability-groups-listener-named-instances-port-numbers-etc/

Data Replication Between Nodes Step 1: In a typical case the SAP application would send a commit to finalize a transaction Step2: The commit record is inserted into the actual log buffer. Step 3: The commit record triggers a flush of the log buffer to persist the buffer in the transaction log on the instance running the primary replica. In the same notion the buffer is copied into the new log cache. If all secondary replicas are in an asynchronous availability mode, the success of this step would be good enough to send an acknowledge message of a successful commit back to the application when the I/O to the local transaction log successfully executed. Step 4: The new log capture framework will now capture the new log data and will hand it over into our messaging framework which will manage the send and receive queues as well as failure detection in the network traffic. Step 5: The change records as persisted to the transaction log of the primary are getting transferred to the instances in the secondary role. The log content is getting compressed and encrypted before sending it over the instances running the secondary replicas. Step 6: The content received from the messaging framework gets persisted in the transaction log of the secondary replicas and at the same time get inserted into the log cache of the secondary replicas. Step 7: The moment the content was successfully persisted in the transaction log of the secondary instance an acknowledge message is sent to the messaging framework Step 8: As the acknowledge messages of the successful persist on the secondary replica is sent to the primary replica, the secondary replica is starting to apply the changes to the actual data pages. If all the acknowledges of the synchronous secondary replicas is received on the instance running the primary replica the next step can be done Step 9: The acknowledge message is sent to the SAP application I think this is enough for a first rough explanation of AlwaysOn. As you likely realized, there was no mentioning of a Witness as we had it in Database Mirroring. The next part of the series will explain why we don’t need a witness instance anymore and how it is getting substituted. Reference: https://blogs.msdn.microsoft.com/saponsqlserver/2012/02/07/sql-server-2012-alwayson-what-is-it/

Distributed Availability Groups 1 Started with SQL Server 2016 2 A traditional availability group has resources configured in a WSFC cluster. A distributed availability group does not configure anything in the WSFC cluster. Everything about it is maintained within SQL Server.  3 A distributed availability group requires that the underlying availability groups have a listener. 4 The only way to make AG 2's primary replica accept inserts, updates, and deletions is to manually fail over the distributed availability group from AG 1. 5 Only manual failover is supported for a distributed availability group.

Distributed Availability Group Reference: https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/distributed-availability-groups?view=sql-server-2017

Traditional AG vs Distributed AG Reference: https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/distributed-availability-groups?view=sql-server-2017

Configure Distributed Availability Groups Remove Remove a distributed availability group Fail over Fail over to a secondary availability group Join Join distributed availability group on second cluster Create Create distributed availability group on first cluster Create 2nd Availability Group Create 1st Availability Group

Demo

Distributed availability group use cases Disaster recovery and easier multi-site configurations Migration to new hardware or configurations, which might include using new hardware or changing the underlying operating systems Increasing the number of readable replicas beyond eight in a single availability group by spanning multiple availability groups

Patch Installation Because there are two separate availability groups, the process of installing a service pack or cumulative update on a replica that's participating in a distributed availability group is slightly different from that of a traditional availability group https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/upgrading-always-on-availability-group-replica-instances?view=sql-server-2017

Upgrade/Migrations 1 Stop all data traffic to the original availability group and change the distributed availability group to synchronous data movement.  2 This action ensures that the primary replica of the second availability group is fully synchronized, so there would be no data loss.  3 Fail over the distributed availability group to the secondary availability group. 4 1. Rename the listener on the secondary availability group (and possibly delete or rename the old one on the original primary availability group) Or re-create it with the listener from the original primary availability group, so that applications and users can access the new configuration. 2. If a rename or re-creation is not possible, point applications and users to the listener on the second availability group.

Thank you!