Architecting Availability Groups

Slides:



Advertisements
Similar presentations
0 SQL Server AlwaysOn – SharePoint 2013 High Availability and Disaster Recovery Sal Bawany, Solutions Architect
Advertisements

1© Copyright 2011 EMC Corporation. All rights reserved. EMC RECOVERPOINT/ CLUSTER ENABLER FOR MICROSOFT FAILOVER CLUSTER.
SQL Server 2012 Always On Premier Field Engineer Microsoft Corporation Lisa Gardner
National Manager Database Services
SharePoint Business Continuity Management with SQL Server AlwaysOn
Microsoft Load Balancing and Clustering. Outline Introduction Load balancing Clustering.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
Architecting Availability Groups
Implementing Multi-Site Clusters April Trần Văn Huệ Nhất Nghệ CPLS.
SQL-Server 2012 Always On.
Module 12: Designing High Availability in Windows Server ® 2008.
MODIFY THIS SLIDE FOR ACTUAL PRESENTER, DELETE THIS BAR AFTER MODIFICATION.
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.
Site Power OutageNetwork Disconnect Node Shutdown for Patching Node Crash Quorum Witness Failure How do I make sure my Cluster stays up ??... Add/Evict.
SQLCAT: SQL Server HA and DR Design Patterns, Architectures, and Best Practices Using Microsoft SQL Server 2012 AlwaysOn Sanjay Mishra Program Manager.
Speaker Name 00/00/2013. Solution Requirements.
Alwayson Availability Groups
Architecting Availability Groups An analysis of Microsoft SQL Server Always-On Availability Group architectures 1.
Course Topics Administering SQL Server 2012 Jump Start 01 | Install and Configure SQL Server04 | Manage Data 02 | Maintain Instances and Databases05 |
SQL Server 2012: AlwaysOn HA and DR Design Patterns, and Lessons Learned from Early Customer Deployments Sanjay Mishra SQLCAT.
Deploying Highly Available SQL Server in Windows Azure A Presentation and Demonstration by Microsoft Cluster MVP David Bermingham.
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.
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.
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.
Architecting Availability Groups An analysis of Microsoft SQL Server Always-On Availability Group architectures 1.
SQL 2012 – Always On Deep Dive Bob Duffy Database Architect Prodata SQL Centre of Excellence 11 th April 2013.
Architecting Enterprise Workloads on AWS Mike Pfeiffer.
SQLSaturday (Silicon Valley) – Mar
Introduction to Clustering
High Availability - SQL Cluster
Turgay Sahtiyan Istanbul, Turkey
Sponsors.
File Share Parameters File share resources can be normal shares, DFS roots, or Dynamic Shares. You configure file share permissions at the same time and.
Architecting Availability Groups
ALWAYSON AVAILABILITY GROUPS
Disaster Recovery Where to Begin
Query Tuning without Production Data
Network Load Balancing
Maximum Availability Architecture Enterprise Technology Centre.
Always On Multi-Site Patterns
Always On Availability Groups
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
SQL Server High Availability Amit Vaid.
Introduction to Clustering
Always On : Multi-site patterns
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.
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
Distributed Availability Groups
04 | Always On High Availability
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:

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

Derik Hammer @sqlhammer derik@sqlhammer.com www.sqlhammer.com Database Administrator (Traditional/Operational/Production) Specialize in High-Availability, Disaster Recovery, and Maintenance Automation User group leader of FairfieldPASS in Stamford, CT. Friend of Redgate SentryOne Product Advisory Counsel 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)

What will I give you? Architecture AG with Failover Cluster Instances Stand-alone instances Stand-alones with multiple subnets AG with Failover Cluster Instances Distributed AG AG Specific features, i.e. Read-only routing Multi-Subnet Failovers Focus on concepts, design, and lessons learned Not a “how to”

Questions Interaction Feedback Session evaluations What can you give me? Questions Interaction I just might ask you to help me present Feedback Session evaluations

Stand-alone instances Simplest architecture which equates to being the most stable, easiest to maintain, and has the least limitations. Explain the physical structure ONLY on this slide. -- Local storage, not required to be shared like FCIs. -- Can be physically attached or attached with ISCSI. -- -- Life event: Liberty Tax VB servers rebooted. SAN storage didn’t come back up. Required Windows reboot, extending outage.

Stand-alone instances – multi-subnet Explain the cross-subnet information here and introduce the listener. Mention how the listener has multiple IPs but don’t get too deep yet. Mention the AND / OR dependency for cluster resources which was available in Windows Server 2008 but multi-subnet was not supported by SQL Server until 2012.

AG with Failover Cluster Instances Subnet 1 Discuss physical architecture ONLY. ** Remember animated pieces ** Local failover arrows fly in. Subnet labels fall in. Subnet 2

Distributed Availability Group

Quorum Voting mechanism 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 Connection drops between sites happen. That F-18 crash is from Virginia Beach, VA in Jan, 2014. 6 miles from my primary production data center.

Server A Server B Initial setup Total votes 3 Online votes File Share Witness Odd number of votes to prevent split brain scenarios.

One server down Intermediate state Total votes 3 Online votes 2 Server A Server B File Share Witness Cluster is still online because we maintain node majority with 2 votes out of 3.

Server A Server B Dynamic witness Total votes 1 Online votes File Share Witness Total votes recalculates after a few seconds to become a total of 2 with 2 online. Dynamic quorum engages and revokes a vote from the witness to make an odd number. Total recalculates to 1 with 1 online.

Reset No witness Intermediate state Total votes 2 Online votes Server A Server B You create a 2 node cluster without a witness.

Server A Server B Dynamic quorum Total votes 1 Online votes Dynamic quorum quickly removes a vote from server A to not be an even number. Total is recalculated to 1 with 1 online.

LowerQuorumPriorityNodeId Tie breaker Total votes 1 Online votes Server A Server B Server A was selected for dynamic quorum to revoke its vote because server A was designated the tie breaker. It was designated by the LowerQuorumPriorityNodeId equaling 2. By default it equals 0 which indicates that the server with the lowest node id is the lower, meaning server B would be the loser by default. 7 2 LowerQuorumPriorityNodeId

What is the listener for? Read-only routing. Faster failovers. ** 55 min Mention that the listener is optional. You don’t have to use it nor do you have to have one.

Read-only routing Manually configured. Must connect using an Availability Group database context.

Read-only routing connection flow Step 1: Client connects using ApplicationIntent=ReadOnly Step 2: Primary replica replies with IP for redirection If you have a servers in the routing list which take a long time to connect this might cause connection timeouts. I recommend not allowing your routing configurations to cross data centers. Step 3: Connection is made with read-only instance

References of interest Syncing server objects between sites http://www.sqlhammer.com/synchronizing-server-objects-for-availability-groups/ PowerShell driven desired state Availability Group failover test http://www.sqlhammer.com/failing-over-alwayson-availability-groups/ SSMS AG Listener connection work around http://www.sqlhammer.com/store-optional-connection-parameters-in-sql-server- management-studio/ Lazy log truncation and filestream http://www.sqlhammer.com/filestream-garbage-collection-with-alwayson- availability-groups/ Step-by-step work through of the AG + FCI architecture http://www.sqlhammer.com/how-to-configure-sql-server-2012-alwayson-part-1-of-7/

Materials Slide deck and demo material available at: This deck http://www.sqlhammer.com/presentation-architecting- availability-groups/ All presentations http://www.sqlhammer.com/community/ This material has already been posted. When I update the material, the most recent updates will be available. My Contact Information: @SQLHammer derik@sqlhammer.com www.sqlhammer.com