SlideShare a Scribd company logo
1 of 36
Extending Your Availability Group
for Disaster Recovery
Ed Leighton-Dick
Kingfisher Technologies
About Me
 Email: ed@leightondick.com
 Blog: edleightondick.com
 Twitter: @eleightondick
JOIN ME AGAIN
OCTOBER 25-28
Where Data Professionals
Connect, Share, and Learn
I’M SPEAKING
Extending Applications
Securely Using Service
Broker
Contact your Local or Virtual Chapter for their unique
discount to SAVE $150!
Agenda
 Availability Groups: A Brief Intro
 Multi-Subnet Availability Groups:
Differences, When, Why, & How
 Walkthrough
 Troubleshooting
AVAILABILITY GROUPS:
A BRIEF INTRODUCTION
HA/DR Before SQL Server 2012
 Replication
 Log shipping
 Failover cluster
 Database mirroring
Availability Groups
W
SQL1 SQL2
L
Availability Groups
 Uses Windows Server Failover Cluster
 No shared storage
 Up to 4 secondary replicas (8 in 2014)
 Secondary replicas can be readable
 Backups can be offloaded to secondary replica
 Synchronous or asynchronous
 Automatic or manual failover
 Can be geographically distributed
 Can be combined with other HA/DR methods
Limitations
 Operates at database level
 Practical limit to number of databases per AG
 Worker Thread Exhaustion
 Licensing
 Enterprise Edition required for full functionality
 Basic Availability Groups (SQL 2016 Standard Edition)
 Must license all servers
 … Except those used strictly for disaster recovery
SQL 2016 Enhancements
 Basic Availability Groups
 Automatic failover to 3 synchronous replicas
 Direct seeding
 Improved transport performance
 Failover on database health
 Load-balancing on read-only replicas
 SSIS catalog can participate
 Columnstore indexes supported
 DTC supported (Windows Server 2016+)
 Domain-independent AG (Windows Server 2016+)
 Group Managed Service Accounts supported
 Encrypted databases fully supported
 Encrypted endpoints
MULTI-SUBNET
AVAILABILITY GROUPS
Typical Availability Group (HA)
W
SQL1 SQL2
L
Simple Multi-Subnet Availability Group
W
SQL1 SQL2
L
HA+DR – Best of Both Worlds
W
SQL3 SQL1 SQL2
Potential Pain Points
 It’s the network
 Latency
 Firewalls
 Addressing
 Active Directory
 DNS
W
Why Use Multi-Subnet AGs?
 Disaster recovery
 Reporting in remote locations
Prerequisites
 Windows Server Failover Cluster (WSFC)
 Quorum (File share witness)
 Node weight (“votes”)
Prerequisites
 Separate subnet/NICs for heartbeat traffic
 IPs on all subnets
 Public – One per server
 Heartbeat – One per server
 Cluster – One per subnet
 Listener – One per subnet
 FQDNs
 Cluster
 Listener
Prerequisites
 Open ports
TCP/UDP Port Description
TCP 1433 SQL – AG Listener
TCP 5022 SQL – AG/DBM Endpoint
TCP/UDP 3343 Cluster Network Communication
TCP 135 Cluster DCOM
UDP 137 Authentication
ICMP Ping
TCP/UDP 49152-65535 Dynamic Ports (Configurable)
Prerequisites
 File share for initial data synchronization
 Service account (SQL)
 Active Directory/DNS security
 Cluster machine account (domaincluster$)
 Mechanism for synchronizing server objects
 Jobs
 Logins
WALKTHROUGH
SPECIAL CONSIDERATIONS
Special Considerations
 Synchronous or asynchronous?
 Synchronous
 High availability
 No data loss is acceptable
 WAN latency must be low
 Asynchronous
 Disaster recovery
 Distributed reporting
 Data loss must be acceptable
 Hybrid
Special Considerations
 Do you need automatic failover?
 Latency must be low (<1 sec roundtrip)
 CrossSubnetDelay (Def 1000, Max 5000)
 CrossSubnetThreshold (Def 5, Max 120)
 Usually reserved for high availability scenarios
Special Considerations
 IP Handling
 Works best with SQL Server Native Client v11 or
SQL Server ODBC v11
 Other drivers cannot support MultiSubnetFailover
property
 Manual adjustments required
 Slower reconnection after failover
Special Considerations
 Where to put the witness?
 3rd datacenter
W
Special Considerations
 Where to put the witness?
 Co-located with primary replica
W
Special Considerations
 Where to put the witness?
 Co-located with secondary replica
W
Special Considerations
 Where to put the witness?
 Windows Server 2016: Azure Cloud Witness
W
Distributed
AG
SQL 2016: Distributed Availability Group
W
S P
L
W
P S
L
SQL 2016: Distributed Availability Groups
 Benefits
 Joins independent availability groups
 More efficient
 Enables rolling upgrades
 Limitations
 No automatic failover
 Must have same group of databases
 Must configure using T-SQL
TROUBLESHOOTING
AVAILABILITY GROUPS
Troubleshooting
 SQL Server
 Availability Group Dashboard
 Extended Events
 Special session for availability groups
 DMVs (sys.dm_hadr_*)
 Instance log
 Third-party SQL utilities
 SQL Sentry Performance Advisor
 Idera Diagnostic Manager
Troubleshooting
 Windows
 Logs – Application, System
 Cluster logs
 Including cluster.log
 PerfMon
 SCOM
 Network utilities
 iperf
 Packet trace (Wireshark)
Review
 Availability groups can be a great
disaster recovery solution!
 Additional considerations when multiple
subnets are involved
 Network latency
 Firewall configuration
 Active Directory configuration
 DNS configuration
Any Questions?
 Email: ed@leightondick.com
 Blog: edleightondick.com
 Twitter: @eleightondick
Thank you for attending!
Please remember to
fill out your comment cards

More Related Content

What's hot

SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)Hamid J. Fard
 
Tips to install and manage always on availability groups in sql server 2012 &...
Tips to install and manage always on availability groups in sql server 2012 &...Tips to install and manage always on availability groups in sql server 2012 &...
Tips to install and manage always on availability groups in sql server 2012 &...Antonios Chatzipavlis
 
AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoi...
AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoi...AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoi...
AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoi...Michael Noel
 
Sql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalSql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalJoseph D'Antoni
 
Dr and ha solutions with sql server azure
Dr and ha solutions with sql server azureDr and ha solutions with sql server azure
Dr and ha solutions with sql server azureMSDEVMTL
 
SQL Server 2016 AlwaysOn Availability Groups New Features
SQL Server 2016 AlwaysOn Availability Groups New FeaturesSQL Server 2016 AlwaysOn Availability Groups New Features
SQL Server 2016 AlwaysOn Availability Groups New FeaturesJohn Martin
 
Windows clustering and quorum basics
Windows clustering and quorum basicsWindows clustering and quorum basics
Windows clustering and quorum basicsHarsh Chawla
 
SQL Server 2017 on Linux Introduction
SQL Server 2017 on Linux IntroductionSQL Server 2017 on Linux Introduction
SQL Server 2017 on Linux IntroductionTravis Wright
 
Sql server’s high availability technologies
Sql server’s high availability technologiesSql server’s high availability technologies
Sql server’s high availability technologiesvenkatchs
 
HP PolyServe Software for Microsoft SQL Server
HP PolyServe Software for Microsoft SQL ServerHP PolyServe Software for Microsoft SQL Server
HP PolyServe Software for Microsoft SQL Serverwebhostingguy
 
Red Hat Summit 2017 - Intro to SQL Server on RHEL and Open Shift
Red Hat Summit 2017 - Intro to SQL Server on RHEL and Open ShiftRed Hat Summit 2017 - Intro to SQL Server on RHEL and Open Shift
Red Hat Summit 2017 - Intro to SQL Server on RHEL and Open ShiftTravis Wright
 
SQL Server goes Linux - Hello, my name is Tux, I would like to join the #SQLF...
SQL Server goes Linux - Hello, my name is Tux, I would like to join the #SQLF...SQL Server goes Linux - Hello, my name is Tux, I would like to join the #SQLF...
SQL Server goes Linux - Hello, my name is Tux, I would like to join the #SQLF...Andre Essing
 
Storing and processing data with the wso2 platform
Storing and processing data with the wso2 platformStoring and processing data with the wso2 platform
Storing and processing data with the wso2 platformWSO2
 
SQL Server vNext on Linux
SQL Server vNext on LinuxSQL Server vNext on Linux
SQL Server vNext on LinuxTravis Wright
 
Oracle Real Application Cluster ( RAC )
Oracle Real Application Cluster ( RAC )Oracle Real Application Cluster ( RAC )
Oracle Real Application Cluster ( RAC )varasteh65
 
Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...
Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...
Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...DataStax Academy
 
Brk2051 sql server on linux and docker
Brk2051 sql server on linux and dockerBrk2051 sql server on linux and docker
Brk2051 sql server on linux and dockerBob Ward
 
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginnersSQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginnersTobias Koprowski
 

What's hot (20)

SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)
 
Tips to install and manage always on availability groups in sql server 2012 &...
Tips to install and manage always on availability groups in sql server 2012 &...Tips to install and manage always on availability groups in sql server 2012 &...
Tips to install and manage always on availability groups in sql server 2012 &...
 
AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoi...
AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoi...AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoi...
AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoi...
 
Sql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalSql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_final
 
Dr and ha solutions with sql server azure
Dr and ha solutions with sql server azureDr and ha solutions with sql server azure
Dr and ha solutions with sql server azure
 
SQL Server 2016 AlwaysOn Availability Groups New Features
SQL Server 2016 AlwaysOn Availability Groups New FeaturesSQL Server 2016 AlwaysOn Availability Groups New Features
SQL Server 2016 AlwaysOn Availability Groups New Features
 
Windows clustering and quorum basics
Windows clustering and quorum basicsWindows clustering and quorum basics
Windows clustering and quorum basics
 
SQL Server 2017 on Linux Introduction
SQL Server 2017 on Linux IntroductionSQL Server 2017 on Linux Introduction
SQL Server 2017 on Linux Introduction
 
Sql server’s high availability technologies
Sql server’s high availability technologiesSql server’s high availability technologies
Sql server’s high availability technologies
 
HP PolyServe Software for Microsoft SQL Server
HP PolyServe Software for Microsoft SQL ServerHP PolyServe Software for Microsoft SQL Server
HP PolyServe Software for Microsoft SQL Server
 
Cl221
Cl221Cl221
Cl221
 
Red Hat Summit 2017 - Intro to SQL Server on RHEL and Open Shift
Red Hat Summit 2017 - Intro to SQL Server on RHEL and Open ShiftRed Hat Summit 2017 - Intro to SQL Server on RHEL and Open Shift
Red Hat Summit 2017 - Intro to SQL Server on RHEL and Open Shift
 
Installation Guide
Installation GuideInstallation Guide
Installation Guide
 
SQL Server goes Linux - Hello, my name is Tux, I would like to join the #SQLF...
SQL Server goes Linux - Hello, my name is Tux, I would like to join the #SQLF...SQL Server goes Linux - Hello, my name is Tux, I would like to join the #SQLF...
SQL Server goes Linux - Hello, my name is Tux, I would like to join the #SQLF...
 
Storing and processing data with the wso2 platform
Storing and processing data with the wso2 platformStoring and processing data with the wso2 platform
Storing and processing data with the wso2 platform
 
SQL Server vNext on Linux
SQL Server vNext on LinuxSQL Server vNext on Linux
SQL Server vNext on Linux
 
Oracle Real Application Cluster ( RAC )
Oracle Real Application Cluster ( RAC )Oracle Real Application Cluster ( RAC )
Oracle Real Application Cluster ( RAC )
 
Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...
Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...
Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...
 
Brk2051 sql server on linux and docker
Brk2051 sql server on linux and dockerBrk2051 sql server on linux and docker
Brk2051 sql server on linux and docker
 
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginnersSQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
 

Similar to Extending Your Availability Group for Disaster Recovery

07_DP_300T00A_HA_Disaster_Recovery.pptx
07_DP_300T00A_HA_Disaster_Recovery.pptx07_DP_300T00A_HA_Disaster_Recovery.pptx
07_DP_300T00A_HA_Disaster_Recovery.pptxKareemBullard1
 
Sql 2012 always on
Sql 2012 always onSql 2012 always on
Sql 2012 always ondilip nayak
 
Nordic infrastructure Conference 2017 - SQL Server on Linux Overview
Nordic infrastructure Conference 2017 - SQL Server on Linux OverviewNordic infrastructure Conference 2017 - SQL Server on Linux Overview
Nordic infrastructure Conference 2017 - SQL Server on Linux OverviewTravis Wright
 
ENT308 Best Practices for Microsoft Architectures on AWS
ENT308 Best Practices for Microsoft Architectures on AWSENT308 Best Practices for Microsoft Architectures on AWS
ENT308 Best Practices for Microsoft Architectures on AWSAmazon Web Services
 
App Innovation Circle Azure IaaS - 9th Dec
App Innovation Circle   Azure IaaS - 9th DecApp Innovation Circle   Azure IaaS - 9th Dec
App Innovation Circle Azure IaaS - 9th DecRaghuram Korukonda
 
Migrate or modernize your database applications using Azure SQL Database Mana...
Migrate or modernize your database applications using Azure SQL Database Mana...Migrate or modernize your database applications using Azure SQL Database Mana...
Migrate or modernize your database applications using Azure SQL Database Mana...ALI ANWAR, OCP®
 
SQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability Groups
SQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability GroupsSQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability Groups
SQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability Groupsturgaysahtiyan
 
ENT308 Best Practices for Microsoft Architectures on AWS
ENT308 Best Practices for Microsoft Architectures on AWSENT308 Best Practices for Microsoft Architectures on AWS
ENT308 Best Practices for Microsoft Architectures on AWSAmazon Web Services
 
Azure SQL - more or/and less than SQL Server
Azure SQL - more or/and less than SQL ServerAzure SQL - more or/and less than SQL Server
Azure SQL - more or/and less than SQL ServerRafał Hryniewski
 
Availability Considerations for SQL Server
Availability Considerations for SQL ServerAvailability Considerations for SQL Server
Availability Considerations for SQL ServerBob Roudebush
 
Building your first sql server cluster
Building your first sql server clusterBuilding your first sql server cluster
Building your first sql server clusterJoseph D'Antoni
 
HA/DR options with SQL Server in Azure and hybrid
HA/DR options with SQL Server in Azure and hybridHA/DR options with SQL Server in Azure and hybrid
HA/DR options with SQL Server in Azure and hybridJames Serra
 
SQL Server 2017 on Linux Introduction
SQL Server 2017 on Linux IntroductionSQL Server 2017 on Linux Introduction
SQL Server 2017 on Linux IntroductionTravis Wright
 
The roadmap for sql server 2019
The roadmap for sql server 2019The roadmap for sql server 2019
The roadmap for sql server 2019Javier Villegas
 
Migration of Microsoft Workloads
Migration of Microsoft WorkloadsMigration of Microsoft Workloads
Migration of Microsoft WorkloadsAmazon Web Services
 
Connect your datacenter to Microsoft Azure
Connect your datacenter to Microsoft AzureConnect your datacenter to Microsoft Azure
Connect your datacenter to Microsoft AzureK.Mohamed Faizal
 
Azure Virtual Machines Deployment Scenarios
Azure Virtual Machines Deployment ScenariosAzure Virtual Machines Deployment Scenarios
Azure Virtual Machines Deployment ScenariosBrian Benz
 
Win08 R2 It Pro Overview
Win08 R2 It Pro OverviewWin08 R2 It Pro Overview
Win08 R2 It Pro Overviewguest092b9a8
 

Similar to Extending Your Availability Group for Disaster Recovery (20)

07_DP_300T00A_HA_Disaster_Recovery.pptx
07_DP_300T00A_HA_Disaster_Recovery.pptx07_DP_300T00A_HA_Disaster_Recovery.pptx
07_DP_300T00A_HA_Disaster_Recovery.pptx
 
Sql 2012 always on
Sql 2012 always onSql 2012 always on
Sql 2012 always on
 
Cl306
Cl306Cl306
Cl306
 
Nordic infrastructure Conference 2017 - SQL Server on Linux Overview
Nordic infrastructure Conference 2017 - SQL Server on Linux OverviewNordic infrastructure Conference 2017 - SQL Server on Linux Overview
Nordic infrastructure Conference 2017 - SQL Server on Linux Overview
 
ENT308 Best Practices for Microsoft Architectures on AWS
ENT308 Best Practices for Microsoft Architectures on AWSENT308 Best Practices for Microsoft Architectures on AWS
ENT308 Best Practices for Microsoft Architectures on AWS
 
App Innovation Circle Azure IaaS - 9th Dec
App Innovation Circle   Azure IaaS - 9th DecApp Innovation Circle   Azure IaaS - 9th Dec
App Innovation Circle Azure IaaS - 9th Dec
 
Migrate or modernize your database applications using Azure SQL Database Mana...
Migrate or modernize your database applications using Azure SQL Database Mana...Migrate or modernize your database applications using Azure SQL Database Mana...
Migrate or modernize your database applications using Azure SQL Database Mana...
 
SQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability Groups
SQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability GroupsSQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability Groups
SQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability Groups
 
ENT308 Best Practices for Microsoft Architectures on AWS
ENT308 Best Practices for Microsoft Architectures on AWSENT308 Best Practices for Microsoft Architectures on AWS
ENT308 Best Practices for Microsoft Architectures on AWS
 
Azure SQL - more or/and less than SQL Server
Azure SQL - more or/and less than SQL ServerAzure SQL - more or/and less than SQL Server
Azure SQL - more or/and less than SQL Server
 
Availability Considerations for SQL Server
Availability Considerations for SQL ServerAvailability Considerations for SQL Server
Availability Considerations for SQL Server
 
Building your first sql server cluster
Building your first sql server clusterBuilding your first sql server cluster
Building your first sql server cluster
 
Sql server 2012 ha dr
Sql server 2012 ha drSql server 2012 ha dr
Sql server 2012 ha dr
 
HA/DR options with SQL Server in Azure and hybrid
HA/DR options with SQL Server in Azure and hybridHA/DR options with SQL Server in Azure and hybrid
HA/DR options with SQL Server in Azure and hybrid
 
SQL Server 2017 on Linux Introduction
SQL Server 2017 on Linux IntroductionSQL Server 2017 on Linux Introduction
SQL Server 2017 on Linux Introduction
 
The roadmap for sql server 2019
The roadmap for sql server 2019The roadmap for sql server 2019
The roadmap for sql server 2019
 
Migration of Microsoft Workloads
Migration of Microsoft WorkloadsMigration of Microsoft Workloads
Migration of Microsoft Workloads
 
Connect your datacenter to Microsoft Azure
Connect your datacenter to Microsoft AzureConnect your datacenter to Microsoft Azure
Connect your datacenter to Microsoft Azure
 
Azure Virtual Machines Deployment Scenarios
Azure Virtual Machines Deployment ScenariosAzure Virtual Machines Deployment Scenarios
Azure Virtual Machines Deployment Scenarios
 
Win08 R2 It Pro Overview
Win08 R2 It Pro OverviewWin08 R2 It Pro Overview
Win08 R2 It Pro Overview
 

More from Ed Leighton-Dick

SQL Server: Now It's Everywhere You Want to Be
SQL Server: Now It's Everywhere You Want to BeSQL Server: Now It's Everywhere You Want to Be
SQL Server: Now It's Everywhere You Want to BeEd Leighton-Dick
 
How to Keep Your Databases Secure in Just Minutes a Day
How to Keep Your Databases Secure in Just Minutes a DayHow to Keep Your Databases Secure in Just Minutes a Day
How to Keep Your Databases Secure in Just Minutes a DayEd Leighton-Dick
 
DevOps+Data: Working with Source Control
DevOps+Data: Working with Source ControlDevOps+Data: Working with Source Control
DevOps+Data: Working with Source ControlEd Leighton-Dick
 
Understanding SQL Server 2016 Always Encrypted
Understanding SQL Server 2016 Always EncryptedUnderstanding SQL Server 2016 Always Encrypted
Understanding SQL Server 2016 Always EncryptedEd Leighton-Dick
 
Dammit Jim! Dr McCoy’s Field Guide to system_health (and the default trace)
Dammit Jim! Dr McCoy’s Field Guide to system_health (and the default trace)Dammit Jim! Dr McCoy’s Field Guide to system_health (and the default trace)
Dammit Jim! Dr McCoy’s Field Guide to system_health (and the default trace)Ed Leighton-Dick
 
Protecting Your Data with Encryption
Protecting Your Data with EncryptionProtecting Your Data with Encryption
Protecting Your Data with EncryptionEd Leighton-Dick
 
SQL Server Features That Will Blow Your Mind!
SQL Server Features That Will Blow Your Mind!SQL Server Features That Will Blow Your Mind!
SQL Server Features That Will Blow Your Mind!Ed Leighton-Dick
 
Service Broker: The Queue Continuum
Service Broker: The Queue ContinuumService Broker: The Queue Continuum
Service Broker: The Queue ContinuumEd Leighton-Dick
 
Practically Normal: An Introduction to Normalization
Practically Normal: An Introduction to NormalizationPractically Normal: An Introduction to Normalization
Practically Normal: An Introduction to NormalizationEd Leighton-Dick
 

More from Ed Leighton-Dick (10)

SQL Server: Now It's Everywhere You Want to Be
SQL Server: Now It's Everywhere You Want to BeSQL Server: Now It's Everywhere You Want to Be
SQL Server: Now It's Everywhere You Want to Be
 
How to Keep Your Databases Secure in Just Minutes a Day
How to Keep Your Databases Secure in Just Minutes a DayHow to Keep Your Databases Secure in Just Minutes a Day
How to Keep Your Databases Secure in Just Minutes a Day
 
DevOps+Data: Working with Source Control
DevOps+Data: Working with Source ControlDevOps+Data: Working with Source Control
DevOps+Data: Working with Source Control
 
Understanding SQL Server 2016 Always Encrypted
Understanding SQL Server 2016 Always EncryptedUnderstanding SQL Server 2016 Always Encrypted
Understanding SQL Server 2016 Always Encrypted
 
Dammit Jim! Dr McCoy’s Field Guide to system_health (and the default trace)
Dammit Jim! Dr McCoy’s Field Guide to system_health (and the default trace)Dammit Jim! Dr McCoy’s Field Guide to system_health (and the default trace)
Dammit Jim! Dr McCoy’s Field Guide to system_health (and the default trace)
 
Protecting Your Data with Encryption
Protecting Your Data with EncryptionProtecting Your Data with Encryption
Protecting Your Data with Encryption
 
SQL Server Features That Will Blow Your Mind!
SQL Server Features That Will Blow Your Mind!SQL Server Features That Will Blow Your Mind!
SQL Server Features That Will Blow Your Mind!
 
Get Involved!
Get Involved!Get Involved!
Get Involved!
 
Service Broker: The Queue Continuum
Service Broker: The Queue ContinuumService Broker: The Queue Continuum
Service Broker: The Queue Continuum
 
Practically Normal: An Introduction to Normalization
Practically Normal: An Introduction to NormalizationPractically Normal: An Introduction to Normalization
Practically Normal: An Introduction to Normalization
 

Recently uploaded

Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxolyaivanovalion
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...amitlee9823
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxMohammedJunaid861692
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceDelhi Call girls
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 

Recently uploaded (20)

Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptx
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 

Extending Your Availability Group for Disaster Recovery

  • 1. Extending Your Availability Group for Disaster Recovery Ed Leighton-Dick Kingfisher Technologies
  • 2. About Me  Email: ed@leightondick.com  Blog: edleightondick.com  Twitter: @eleightondick
  • 3. JOIN ME AGAIN OCTOBER 25-28 Where Data Professionals Connect, Share, and Learn I’M SPEAKING Extending Applications Securely Using Service Broker Contact your Local or Virtual Chapter for their unique discount to SAVE $150!
  • 4. Agenda  Availability Groups: A Brief Intro  Multi-Subnet Availability Groups: Differences, When, Why, & How  Walkthrough  Troubleshooting
  • 6. HA/DR Before SQL Server 2012  Replication  Log shipping  Failover cluster  Database mirroring
  • 8. Availability Groups  Uses Windows Server Failover Cluster  No shared storage  Up to 4 secondary replicas (8 in 2014)  Secondary replicas can be readable  Backups can be offloaded to secondary replica  Synchronous or asynchronous  Automatic or manual failover  Can be geographically distributed  Can be combined with other HA/DR methods
  • 9. Limitations  Operates at database level  Practical limit to number of databases per AG  Worker Thread Exhaustion  Licensing  Enterprise Edition required for full functionality  Basic Availability Groups (SQL 2016 Standard Edition)  Must license all servers  … Except those used strictly for disaster recovery
  • 10. SQL 2016 Enhancements  Basic Availability Groups  Automatic failover to 3 synchronous replicas  Direct seeding  Improved transport performance  Failover on database health  Load-balancing on read-only replicas  SSIS catalog can participate  Columnstore indexes supported  DTC supported (Windows Server 2016+)  Domain-independent AG (Windows Server 2016+)  Group Managed Service Accounts supported  Encrypted databases fully supported  Encrypted endpoints
  • 12. Typical Availability Group (HA) W SQL1 SQL2 L
  • 13. Simple Multi-Subnet Availability Group W SQL1 SQL2 L
  • 14. HA+DR – Best of Both Worlds W SQL3 SQL1 SQL2
  • 15. Potential Pain Points  It’s the network  Latency  Firewalls  Addressing  Active Directory  DNS W
  • 16. Why Use Multi-Subnet AGs?  Disaster recovery  Reporting in remote locations
  • 17. Prerequisites  Windows Server Failover Cluster (WSFC)  Quorum (File share witness)  Node weight (“votes”)
  • 18. Prerequisites  Separate subnet/NICs for heartbeat traffic  IPs on all subnets  Public – One per server  Heartbeat – One per server  Cluster – One per subnet  Listener – One per subnet  FQDNs  Cluster  Listener
  • 19. Prerequisites  Open ports TCP/UDP Port Description TCP 1433 SQL – AG Listener TCP 5022 SQL – AG/DBM Endpoint TCP/UDP 3343 Cluster Network Communication TCP 135 Cluster DCOM UDP 137 Authentication ICMP Ping TCP/UDP 49152-65535 Dynamic Ports (Configurable)
  • 20. Prerequisites  File share for initial data synchronization  Service account (SQL)  Active Directory/DNS security  Cluster machine account (domaincluster$)  Mechanism for synchronizing server objects  Jobs  Logins
  • 23. Special Considerations  Synchronous or asynchronous?  Synchronous  High availability  No data loss is acceptable  WAN latency must be low  Asynchronous  Disaster recovery  Distributed reporting  Data loss must be acceptable  Hybrid
  • 24. Special Considerations  Do you need automatic failover?  Latency must be low (<1 sec roundtrip)  CrossSubnetDelay (Def 1000, Max 5000)  CrossSubnetThreshold (Def 5, Max 120)  Usually reserved for high availability scenarios
  • 25. Special Considerations  IP Handling  Works best with SQL Server Native Client v11 or SQL Server ODBC v11  Other drivers cannot support MultiSubnetFailover property  Manual adjustments required  Slower reconnection after failover
  • 26. Special Considerations  Where to put the witness?  3rd datacenter W
  • 27. Special Considerations  Where to put the witness?  Co-located with primary replica W
  • 28. Special Considerations  Where to put the witness?  Co-located with secondary replica W
  • 29. Special Considerations  Where to put the witness?  Windows Server 2016: Azure Cloud Witness W
  • 30. Distributed AG SQL 2016: Distributed Availability Group W S P L W P S L
  • 31. SQL 2016: Distributed Availability Groups  Benefits  Joins independent availability groups  More efficient  Enables rolling upgrades  Limitations  No automatic failover  Must have same group of databases  Must configure using T-SQL
  • 33. Troubleshooting  SQL Server  Availability Group Dashboard  Extended Events  Special session for availability groups  DMVs (sys.dm_hadr_*)  Instance log  Third-party SQL utilities  SQL Sentry Performance Advisor  Idera Diagnostic Manager
  • 34. Troubleshooting  Windows  Logs – Application, System  Cluster logs  Including cluster.log  PerfMon  SCOM  Network utilities  iperf  Packet trace (Wireshark)
  • 35. Review  Availability groups can be a great disaster recovery solution!  Additional considerations when multiple subnets are involved  Network latency  Firewall configuration  Active Directory configuration  DNS configuration
  • 36. Any Questions?  Email: ed@leightondick.com  Blog: edleightondick.com  Twitter: @eleightondick Thank you for attending! Please remember to fill out your comment cards

Editor's Notes

  1. Explain how failover happens