Architecting Availability Groups An analysis of Microsoft SQL Server Always-On Availability Group architectures 1.

Slides:



Advertisements
Similar presentations
SQL Server AlwaysOn: Active Secondaries Luis Vargas Program Manager Microsoft Corporation DBI312.
Advertisements

Implementing SQLServer AlwaysON Sarabpreet Singh Anand SQL Server – MVP SQLServerGeeks.com (VP)
Virtual techdays INDIA │ September 2011 High Availability - A Story from Past to Future Balmukund Lakhani │ Technical Lead – SQL Support, Microsoft.
Denny Cherry twitter.com/mrdenny.
SQL Server 2012 Always On Premier Field Engineer Microsoft Corporation Lisa Gardner
SQL Server AlwaysOn: Active Secondaries Luis Vargas Program Manager Microsoft Corporation DBI312.
Module 14: Scalability and High Availability. Overview Key high availability features available in Oracle and SQL Server Key scalability features available.
SharePoint Business Continuity Management with SQL Server AlwaysOn
SQL Server 2008 Implementation and Maintenance Chapter 7: Performing Backups and Restores.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
Implementing Database Snapshot & Database Mirroring in SQL Server 2005 Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server MVP Microsoft.
High-Availability Methods Lesson 25. Skills Matrix.
Architecting Availability Groups
IT Pro Day SQL Server 2012 AllwaysOn Stephan Hurni Microsoft V-TSP Principal Consultant, Trivadis AG
Maintaining a Mirrored Database Tips and Tricks by Paul G. Hiles.
MODIFY THIS SLIDE FOR ACTUAL PRESENTER, DELETE THIS BAR AFTER MODIFICATION.
SQLintersection SQL37 SQL Server 2012 Availability Groups: High Availability for Your Most Important Data Aaron Bertrand,
SQLCAT: SQL Server 2012 AlwaysOn Lessons Learned from Early Customer Deployments Sanjay Mishra Program Manager Microsoft Corporation DBI360.
SQLintersection Session SQL37 SQL Server 2012 Availability Groups Aaron Bertrand
Unified solution Easy to configure, manage, and monitor Reuse existing investments SAN/DAS environments Allow using HA hardware resources Fast seamless.
SQL Server AlwaysOn Phil Brammer, Database Administrator.
SQLCAT: SQL Server HA and DR Design Patterns, Architectures, and Best Practices Using Microsoft SQL Server 2012 AlwaysOn Sanjay Mishra Program Manager.
Roger Technology Solution Professional DataPlatform Microsoft Corporation SQL Server 2012AlwaysOn Availability Groups.
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 |
Warwick Rudd – Henry Rooney – How Available is SQL Server 2016? DAT33 6.
1 Chapter Overview Using Standby Servers Using Failover Clustering.
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.
#sqlsatTorino #sqlsat400 May 23, 2015 SQL Server AlwaysOn Gianluca
Luis Vargas Senior Program Manager Lead Microsoft.
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.
Architecting Availability Groups An analysis of Microsoft SQL Server Always-On Availability Group architectures 1.
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.
Redmond Protocols Plugfest 2016 Kevin Farlee Senior Program Manager SQL Server AlwaysOn in SQL Server 2016.
Architecting Availability Groups An analysis of Microsoft SQL Server Always-On Availability Group architectures 1.
High Availability & Disaster Recovery with SQL Server AlwaysOn Availability Groups Turgay Sahtiyan Microsoft – Senior SQL Server PFE
SQLSaturday (Silicon Valley) – Mar
Turgay Sahtiyan Istanbul, Turkey
Sponsors.
Architecting Availability Groups
ALWAYSON AVAILABILITY GROUPS
Disaster Recovery Where to Begin
AlwaysOn Mirroring, Clustering
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.
Contained DB? Did it do something wrong?
SQL AlwaysOn Availability Groups
Required 9s and data protection: introduction to sql server 2012 alwayson, new high availability solution Santosh Balasubramanian Senior Program Manager.
AlwaysOn, an Early bird Overview
AlwaysOn Availability Groups 101
Disaster Recovery Where to Begin
Architecting Availability Groups
SYED SAJID WASIM SQL SERVER ALWAYS ON Step by Step.
SQL Server on Linux: High Availability And Disaster Recovery
AlwaysOn Availability Groups
High Availability/Disaster Recovery Solution
Top 5 TIPS TO KEEP Always on AGs humming and users happy
04 | Always On High Availability
Top 5 TIPS TO KEEP Always on AGs humming and users happy
SQL AlwaysOn Availability Groups
Designing Database Solutions for SQL Server
Presentation transcript:

Architecting Availability Groups An analysis of Microsoft SQL Server Always-On Availability Group architectures 1

Derik  Database Administrator (Traditional/Operational/Production)  Spent a year pretending to be a.NET developer then back to being a DBA  Specialize in High-Availability, Disaster Recovery, and Maintenance Automation  Rebuilt the Hampton Roads SQL Server User Group in Virginia Beach, VA before moving.  Chapter leader of FairfieldPASS in Stamford, CT.  BS in Computer Information Systems with a focus in Database Management  Querying Microsoft SQL Server 2012 Databases (70-461)  Administering Microsoft SQL Server 2012 Databases (70-462) 2

Goals  Skill level: , assuming some familiarity  Not a “how to”, but there are demos  Architecture: Stand-alone instances  Architecture: Stand-alones with multiple subnets  Architecture: AG with Failover Cluster Instances  Architecture: Hybrid approach (DR on the cheap)  Back-up off-loading  Read-only routing 3

Materials Slide deck and demo queries available at: This material has already been posted. When I update the material, the most recent updates will be available. This slide will be shown again at the end of the session. 4

5

Benefits of Availability Groups  When should you use them?  Automatic failover between local replicas.  DB Mirroring (soon to be ‘Basic HA’) and FCIs have the same capability.  Manual failover between DR sites.  Replication, log shipping, and DB mirroring have the same capability.  Group databases together and failover separately from other groups.  Off-load backups  Off-load read loads. 6

Stand-alone instances 7

Stand-alone instances (cont.)  Database level automatic fail-over available with synchronous commit.  Data duplication - a complete set of drives and data per replica.  Must synchronize server objects between nodes manually. 8 The beauty of this architecture is everything that it is not.

9

Stand-alone instances – multi-subnet 10

Stand-alone instances – multi-subnet (cont.) 11 Nodes synchronize from the primary, remote nodes don’t speak to each other. Even more data duplication. One of the few reasons that I might consider favoring a hybrid with FCIs. Availability Group Listener handles multiple IPs across multiple subnets. Asynchronous Commit recommended for remote site, which only supports manual failover.

12

AG with Failover Cluster Instances 13 Subnet 1 Subnet 2

AG with Failover Cluster Instances (cont.)  No need to synchronize server objects within subnet.  Still need to across the subnets.  Instance level failovers within subnets.  Shared storage can’t cross subnets.  Shared storage dependency.  Can’t ever have one AG replica reside on the same node as another.  Forces you to have more nodes to your cluster.  Configurations where all nodes are active are no longer as possible.  Can’t group DBs for failover, entire instance moves. 14

15

Hybrid Architecture AKA DR on the cheap 16 Subnet 1 Subnet 2

17

Quorum  Prevents “split-brain”  Node majority is typical  Potential voters include  Servers (physical or virtual)  File shares  Remote shared disks  Weight your votes for a complete drop of your connection to your disaster recovery site 18

Why you need to use Windows Server 2012 R2 and above 19 Quorum Demo  Dynamic Quorum  Dynamic Witness  Tie breaker

Why use the Listener?  Read-only routing.  It is capable of faster failovers.  Your applications do not have to wait for DNS time to live to expire.  One virtual network name (VNN), regardless of where the Availability Group (AG) lives.  Configuration files between DR sites can be identical.  Different VNN for each AG on the cluster.  Allows for groups of databases to failover to different servers.  No instance names to worry about. 20

Limitations of the listener bells & whistles  ApplicationIntent and MultiSubnetFailover requires.NET 4.0.  Or, 3.5 SP1 with hotfix KB   Or, JDBC 4.0  Not available for OLEDB or ODBC connections (expect in SQL Native Client some restrictions apply).  Connections must specify a database in the Availability Group in order to perform read-only routing.  Changing database context after connection has been established won’t cut it. 21

Listener Demos  SQL Server Management Studio  Persist parameters – Supposedly fixed in vNext as per MS Connect.  Not fixed for SQL Server 2016 CTP2  Reference the workarounds - parameters-in-sql-server-management-studio/ parameters-in-sql-server-management-studio/  SQLCMD.exe  SQLPS module’s Invoke-SqlCmd (Not a demo, hard to show the non- existence of something)  Add MultiSubnetFailover and ApplicationIntent options – Vote up on MS Connect! 22

23

Read-only routing  Manually configured and optional.  Must connect using an Availability Group database context.  Common stumbling point, thus the 2-slide emphasis.  No SSMS wizard for configuration.  Incurs a round-robin connection performance hit. 24

Read-only routing connection flow 25 Step 1: Client connects using ApplicationIntent=ReadOnly Step 2: Primary replica replies with IP for redirection Step 3: Connection is made with read-only instance

Read-only Routing Demos  Configure - T-SQL  (Non-demo reference) AlwaysOn Tools - Denny Cherry and Associates - you/alwayson-tools you/alwayson-tools  Verify - Dynamic Management Views 26

Read-only Routing Demos  Configure - T-SQL  (Non-demo reference) AlwaysOn Tools - Denny Cherry and Associates - you/alwayson-tools you/alwayson-tools  Verify - Dynamic Management Views 27

Back-up Off-loading  Transaction log backups  COPY_ONLY full backups  Differentials cannot be taken  Various preferred replica configurations available  sys.fn_hadr_backup_is_preferred_replica 28

Availability Group Monitoring Demos  Availability Group Dashboards  Availability Group state DMVs 29

References of interest  Syncing server objects between sites   PowerShell driven desired state Availability Group failover test   SSMS AG Listener connection work around  management-studio/ management-studio/  Lazy log truncation and filestream  availability-groups/ availability-groups/  Step-by-step work through of the AG + FCI architecture 

Materials Slide deck and demo queries available at: This material has already been posted. When I update the material, the most recent updates will be available. 31 My Contact