SQL Server Availability Groups

Similar documents
things to consider STRETCHING SQL Server & Availability Groups Failover Clustered Instances Disaster Recovery Site

Microsoft SQL AlwaysOn and High Availability

Clusters Your Way. SQL Server in "The Cloud": High Availability and Disaster Recovery in Azure, AWS and Google

StarWind Virtual SAN Windows Geo-Clustering: SQL Server

Microsoft SQL AlwaysOn and High Availability

Are AGs A Good Fit For Your Database? Doug Purnell

Ryan Adams Blog - Twitter Thanks to our Gold Sponsors

Windows Clustering 101

Index. Peter A. Carter 2016 P.A. Carter, SQL Server AlwaysOn Revealed, DOI /

EASYHA SQL SERVER V1.0

Avoiding the Cost of Confusion: SQL Server Failover Cluster Instances versus Basic Availability Group on Standard Edition

New England Data Camp v2.0 It is all about the data! Caregroup Healthcare System. Ayad Shammout Lead Technical DBA

SQL Server AlwaysOn setup on ObserveIT environment

Using Double-Take Software and the Virtual Recovery Appliance

SQL 2016 Always On High Availability

Maximizing SharePoint Availability Whitepaper v1.1 4/2018

Disaster Recovery and Business Continuity

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

Configuring SharePoint 2013 as a. Configuring. SharePoint Business Intelligence Platform. Edwin Sarmiento SQL Server MCM & MVP

Microsoft Azure Windows Server Microsoft System Center

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

SQL AlwaysOn - Skype for Business

High Availability- Disaster Recovery 101

Troubleshooting Always On Availability Groups Performance

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

HIGH-AVAILABILITY & D/R OPTIONS FOR MICROSOFT SQL SERVER

SQL Server Virtualization 201

SQL Server technical e-book series. Drive business continuity with SQL Server

Buyer s Guide: DRaaS features and functionality

Architecting a Hybrid Database Strategy with Microsoft SQL Server and the VMware Cloud Provider Program

Virtual protection gets real

Windows 2008 failover cluster

MOVING TOWARDS ZERO DOWNTIME FOR WINTEL Caddy Tan 21 September Leaders Have Vision visionsolutions.com 1

The safer, easier way to help you pass any IT exams. Exam : Administering Microsoft SQL Server 2012 Databases.

High Availability- Disaster Recovery 101

Building Clusters to Protect SQL Server in Cloud Configurations

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

Performance Monitoring Always On Availability Groups. Anthony E. Nocentino

Eliminate Idle Redundancy with Oracle Active Data Guard

Microsoft SQL Server

DOWNLOAD PDF SQL SERVER 2012 STEP BY STEP

Transformez votre PRA

70-740: Installation, Storage, and Compute with Windows Server 2016

Dell EMC Avamar for SQL Server

AlwaysOn Availability Groups: Backups, Restores, and CHECKDB

Implementation of Microsoft SQL Server using AlwaysOn for High Availability and Disaster Recovery without Shared Storage

Choosing a MySQL HA Solution Today. Choosing the best solution among a myriad of options

SQL Server 2012 virtually out, Microsoft talks features, licensing

Allan Hirt Cluster MVP E mail: Website and Blog:

2. Recovery models ->

CSE 444: Database Internals. Section 9: 2-Phase Commit and Replication

Dell EMC Avamar for SQL Server

AlwaysOn Availability Groups 2016 What is new?

Disaster Recovery (DR) Planning with the Cloud Desktop

Standalone to SQL Server HA Clusters in Minutes.

DISASTER RECOVERY (DR): SOMETHING EVERYBODY NEEDS, BUT NEVER WANTS TO USE

COURSE 20740B: INSTALLATION, STORAGE AND COMPUTE ITH WINDOWS SERVER 2016

SQL Server HA and DR: A Simple Strategy for Realizing Dramatic Cost Savings

Copyright 2010 EMC Corporation. Do not Copy - All Rights Reserved.

[MS20740]: Installation, Storage, and Compute with Windows Server 2016

White Paper. Disaster Recovery in the Cloud

WHITE PAPER. Header Title. Side Bar Copy. Header Title 5 Reasons to Consider Disaster Recovery as a Service for IBM i WHITEPAPER

The Key to Disaster Recovery

DISASTER RECOVERY: SOMETHING EVERYBODY NEEDS, BUT NEVER WANTS TO USE


Use this procedure to manage nodes to an existing SQL Server failover cluster instance.

Virtual Disaster Recovery

Azure Webinar. Resilient Solutions March Sander van den Hoven Principal Technical Evangelist Microsoft

Protecting VMware vsphere/esx Environments with CA ARCserve

NET EXPERT SOLUTIONS PVT LTD

An Oracle White Paper May Oracle VM 3: Overview of Disaster Recovery Solutions

MySQL High Availability. Michael Messina Senior Managing Consultant, Rolta-AdvizeX /

Welcome! Considering a Warm Disaster Recovery Site?

Installation, Storage, and Compute with Windows Server 2016 Course 20740B - 5 Days - Instructor-led, Hands on

Configuring a Microsoft Windows Server 2012/R2 Failover Cluster with Storage Center

A CommVault White Paper: Business Continuity: Architecture Design Guide

MOC 20417B: Upgrading Your Skills to MCSA Windows Server 2012

VMware admins: Can your DR do this?

Windows Server : Installation, Storage, and Compute with Windows Server Upcoming Dates. Course Description.

Course Outline 20740B. Module 1: Installing, upgrading, and migrating servers and workloads

Symantec Administration of Symantec Enterprise Vault 8.0 for Exchange.

Using VERITAS Volume Replicator for Disaster Recovery of a SQL Server Application Note

SQL Saturday Jacksonville Aug 12, 2017

Protecting Microsoft Hyper-V 3.0 Environments with Arcserve

Copyright 2012 EMC Corporation. All rights reserved.

Choosing a MySQL HA Solution Today

Exam : Implementing a Cloud Based Infrastructure

Backup and Disaster Recovery: DIY or Buy? Presented by: Stanley Louissaint

DISASTER RECOVERY: SOMETHING EVERYBODY NEEDS, BUT NEVER WANTS TO USE

Real-time Protection for Microsoft Hyper-V

Floating on a Hybrid Cloud: SQL Server 2014 & Microsoft Azure Timothy P. McAliley Microsoft Premier Field Engineer SQL Server May 8, 2014

Microsoft SQL Server HA and DR with DVX

NWPPA2016. Disaster Recovery NWPPA Reno, NV Copyright 2016, IVOXY Consulting, LLC

SPECIAL EXCERPT II Complete book available Spring Introducing Microsoft. SQL Server 2012 PREVIEW CONTENT. Ross Mistry and Stacia Misner

Installation, Storage, and Compute with Windows Server 2016

BCP/DR Primer Part 2 BCP Tiers and recovery requirements

Protecting VMware vsphere/esx Environments with Arcserve

10 Reasons Why Your DR Plan Won t Work

SC Series: Affordable Data Mobility & Business Continuity With Multi-Array Federation

20740C: Installation, Storage, and Compute with Windows Server 2016

Transcription:

A r c h i t e c t i n g SQL Server Availability Groups Without Losing Your S A N I T Y

Edwin Sarmiento Microsoft MVP/Microsoft Certified Master: SQL Server http://www.edwinmsarmiento.com edwin@edwinmsarmiento.com @EdwinMSarmiento http://ca.linkedin.com/in/edwinmsarmiento

no DEMOS

DESIGN at it s worst https://youtu.be/j-zczjxsxnw?t=1m12s

DESIGN the starting point of any implementation

DESIGN should be driven by REQUIREMENTS NOT TECHNOLOGY

let s start with

RECOVERABILITY Recovery Point Objective (RPO) How much data can I afford to lose?

EXAMPLE RPO 12 hours June 10, 2017 10:00AM Maximum data loss: -12 hours

when did the last backup occur

AVAILABILITY Recovery Time Objective (RTO ) When is my application coming back?

EXAMPLE RTO 12 hours June 10, 2017 10:00AM Maximum outage: +12 hours

COMMITMENT Service Level Agreement (SLA) What have we agreed upon?

COMMITMENT Service Level Agreement (SLA) What was promised?

Cost RPO/RTO/SLA versus Cost 70000 60000 50000 40000 30000 20000 10000 0 1 2 3 4 5 6 7 8 9 10 11 Time

High Availability How do you increase uptime *? *typically in the SAME data center

High Availability How do you increase uptime *? *defined by RTO

Disaster Recovery How do you continue operation in case of catastrophic failure? *defined by RPO

Disaster Recovery How do you continue operation in case of catastrophic failure? *typically in a DIFFERENT data center

*also considers SAME data center failure Disaster Recovery How do you continue operation in case of catastrophic failure?

HA!= DR

SQL Server Availability Groups is NOT a new technology

SQL Server Availability Groups combination of DATABASE MIRRORING & FAILOVER CLUSTERING

how does it really WORK? FAILOVER CLUSTERING

stop service

stop service wait service

stop service wait service start service

failover clustering how it works SQL Server t r a d i t i o n a l 2-node cluster log data Windows Server Failover Cluster

failover clustering Application how it works SQL Server t r a d i t i o n a l 2-node cluster log data Windows Server Failover Cluster

failover clustering Application how it works SQL Server t r a d i t i o n a l 2-node cluster data log data *Availability Groups Windows Server Failover Cluster

what IS NOT commonly mentioned

failover clustering Application how it works AD/DNS SQL Server t r a d i t i o n a l 2-node cluster log data Windows Server Failover Cluster

WHY do we even care

we need to speak to the AD and DNS administrators

SQL Server Availability Groups basic architecture

Maximum of 5 replicas in SQL Server 2012 (1 primary and 4 secondary) and 9 replicas in SQL Server 2014/2016 (1 primary and 8 secondary) Primary Replica SQL Server Secondary Replica SQL Server Secondary Replica SQL Server log data log data log data Windows Server Failover Cluster

Application Commit secondary replicas are always running REDO Primary Replica SQL Server Secondary Replica SQL Server Secondary Replica SQL Server log data log data log data Windows Server Failover Cluster

AD/DNS 4 QUORUM SQL Server what about quorum determines the number of failures that the cluster can sustain while still remaining online. Windows Server Failover Cluster

AD/DNS SQL Server quorum majority VOTE wins * all NODES have a vote 4 QUORUM Windows Server Failover Cluster

decision-making based on MAJORITY can I get a VOTE?

AD/DNS SQL Server quorum types 4 QUORUM N o d e M a j o r i t y recommended for clusters with an ODD number of nodes Windows Server Failover Cluster

AD/DNS SQL Server quorum types 4 QUORUM N o d e & D i s k M a j o r i t y recommended for clusters with an EVEN number of local nodes Windows Server Failover Cluster

AD/DNS SQL Server quorum types 4 N o d e & D i s k M a j o r i t y uses a SHARED DISK as a WITNESS QUORUM Windows Server Failover Cluster

AD/DNS SQL Server quorum types 4 N o d e & D i s k M a j o r i t y this dates back to Windows NT 4.0 days QUORUM Windows Server Failover Cluster

AD/DNS SQL Server cluster + quorum 4!= N o d e & D i s k M a j o r i t y QUORUM Windows Server Failover Cluster

AD/DNS SQL Server quorum types Node & File Share Majority 4 QUORUM uses FILE SHARE as a WITNESS instead of a disk Windows Server Failover Cluster

AD/DNS SQL Server quorum types 4 QUORUM N o M a j o r i t y : D i s k O n l y can sustain failures of all nodes except one if the disk is online *NOT RECOMMENDED Windows Server Failover Cluster

AD/DNS SQL Server quorum types 4 QUORUM C l o u d W i t n e s s uses the concept of a file share witness on Microsoft Azure *Windows Server 2016 and higher Windows Server Failover Cluster

AD/DNS SQL Server quorum goal is to have ODD/MAJORITY 4 number of votes QUORUM Windows Server Failover Cluster

HOW do you choose the appropriate quorum model

HOW do you choose the appropriate quorum model let your REQUIREMENTS guide your choice

multi-subnet clusters WHERE do you place the quorum

ideally, it should be on a SEPARATE l o c a t i o n WHERE do you place the quorum

Windows Server Failover Cluster SQL Server SQL Server log data PRODUCTION log DR data

it should be in the SAME location as what you are trying to protect WHERE do you place the quorum

SQL Server Availability Groups COMMON DESIGN PATTERNS

SQL Server Availability Groups COMMON DESIGN PATTERNS What will be your QUORUM model?

SQL Server Availability Groups COMMON DESIGN PATTERNS What will be your REPLICATION MODE?

SQL Server Availability Groups COMMON DESIGN PATTERNS What will be your NETWORK CONFIGURATION?

SQL Server Availability Groups COMMON DESIGN PATTERNS What will be your LICENSING MODE?

2 Replicas, Stand-alone instances (HA only) PRODUCTION Primary Replica Secondary Replica SQL Server SQL Server log data log data Windows Server Failover Cluster

*You need to discuss this with your network team 3 Replicas, Stand-alone instances (HA + DR) PRODUCTION DR Primary Replica Secondary Replica * LowerQuorumPriorityNodeID Site Awareness 2012 2016R2 Secondary Replica * NO VOTE 2008/2012 SQL Server SQL Server SQL Server log data log data log data Windows Server Failover Cluster

*You lose the ability to do automatic failover (on the Availability Group-level) 2 Replicas, FCI + Stand-alone instance (HA + DR) PRODUCTION DR * LowerQuorumPriorityNodeID Site Awareness Primary Replica 2012 2016R2 Secondary Replica * NO VOTE 2008/2012 SQL Server SQL Server log data Windows Server Failover Cluster

*You lose the ability to do automatic failover (on the Availability Group-level) 3 Replicas, FCI + Stand-alone instance (HA + DR + ) PRODUCTION Primary Replica DR * LowerQuorumPriorityNodeID Site Awareness 2012 2016R2 Secondary Replica * NO VOTE 2008/2012 Additional Data Center * LowerQuorumPriorityNodeID Site Awareness 2012 2016R2 Secondary Replica * NO VOTE 2008/2012 SQL Server SQL Server SQL Server log data log data Windows Server Failover Cluster

*You lose the ability to do automatic failover (on the Availability Group-level) 2 Replicas, FCI (HA + DR) PRODUCTION Primary Replica DR * LowerQuorumPriorityNodeID Site Awareness * NO VOTE 2008/2012 2016 2012 R2 Secondary Replica SQL Server SQL Server Windows Server Failover Cluster

3 Replicas, Stand-alone instances (HA + DR) PRODUCTION DR Additional Data Center does this even make sense? SQL Server SQL Server SQL Server log data log data log data Windows Server Failover Cluster

in SUMMARY

DESIGN according to REQUIREMENTS

REFERENCES

REFERENCES AlwaysOn Architecture Guide: Building a High Availability and Disaster Recovery Solution by Using AlwaysOn Availability Groups http://bit.ly/1itbjai

How many of you are interested to DIVE DEEPER into Windows Server Failover Clustering for SQL Server

https://learnsqlserverhadr.com

https://learnsqlserverhadr.com

Edwin Sarmiento Microsoft MVP/Microsoft Certified Master: SQL Server http://www.edwinmsarmiento.com edwin@edwinmsarmiento.com @EdwinMSarmiento http://ca.linkedin.com/in/edwinmsarmiento Q & A QUESTIONS