Extending Your Availability Group for Disaster Recovery



Similar documents
Windows Geo-Clustering: SQL Server

SQL Server AlwaysOn. Michal Tinthofer 11. Praha What to avoid and how to optimize, deploy and operate.

SQL Server AlwaysOn (HADRON)

SQL Server 2012/2014 AlwaysOn Availability Group

WELKOM Cloud met Azure

Implementing Microsoft Windows Server Failover Clustering (WSFC) and SQL Server 2012 AlwaysOn Availability Groups in the AWS Cloud

GoGrid Implement.com Configuring a SQL Server 2012 AlwaysOn Cluster

Deploy App Orchestration 2.6 for High Availability and Disaster Recovery

Designing a Data Solution with Microsoft SQL Server 2014

Course 20465C: Designing a Data Solution with Microsoft SQL Server

Designing a Data Solution with Microsoft SQL Server 2014

Designing a Data Solution with Microsoft SQL Server

Course 20465: Designing a Data Solution with Microsoft SQL Server

Mission-Critical Availability

Designing a Data Solution with Microsoft SQL Server

SQL Server AlwaysOn

CREATING SQL SERVER DISASTER RECOVERY SOLUTIONS WITH SIOS DATAKEEPER

Expert Reference Series of White Papers. Unlock the Power of Microsoft SQL Server 2012

Microsoft Windows Server Failover Clustering (WSFC) and SQL Server AlwaysOn Availability Groups on the AWS Cloud: Quick Start Reference Deployment

SQL Server Mirroring. Introduction. Setting up the databases for Mirroring

MS 20465C: Designing a Data Solution with Microsoft SQL Server

20465C: Designing a Data Solution with Microsoft SQL Server


Installing and Configuring a SQL Server 2014 Multi-Subnet Cluster on Windows Server 2012 R2

MIRRORING: START TO FINISH. Ryan Adams Blog - Twitter

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

Course 20465C: Designing a Data Solution with Microsoft SQL Server

Availability Guide for Deploying SQL Server on VMware vsphere. August 2009

20465: Designing a Data Solution with Microsoft SQL Server

SQL AlwaysOn Availability Groups (AAG) on Tintri

"Charting the Course... MOC C Designing a Data Solution with Microsoft SQL Server Course Summary

Designing a Data Solution with Microsoft SQL Server

Implementing Microsoft Azure Infrastructure Solutions

Designing a Data Solution with Microsoft SQL Server 2014

Installing SQL Server 2008 Cluster

Appendix A Core Concepts in SQL Server High Availability and Replication

Part2 Hyper-V Replica and Hyper-V Recovery Manager. Datacenter Specialist

Dell High Availability and Disaster Recovery Solutions Using Microsoft SQL Server 2012 AlwaysOn Availability Groups

Cool New Hyper-V Features in Windows Server 2012 R2. Aidan Finn

Building a Scale-Out SQL Server 2008 Reporting Services Farm

Configuring Advanced Windows Server 2012 Services

Using Double-Take Through a Firewall

Floating on a Hybrid Cloud: SQL Server 2012 & Microsoft Azure. Timothy P. McAliley Microsoft Premier Field Engineer SQL Server

Maintaining a Microsoft SQL Server 2008 Database

This course is intended for database professionals who need who plan, implement, and manage database solutions. Primary responsibilities include:

Advanced HA and DR.

Installation and Upgrade on Windows Server 2008/2012 When the Secondary Server is Physical VMware vcenter Server Heartbeat 6.6

Configuring Advanced Windows Server 2012 Services MOC 20412

Database Mirroring: High Availability (HA) and Disaster Recovery (DR) Technology

$99.95 per user. SQL Server 2005 Database Administration CourseId: 152 Skill level: Run Time: 30+ hours (158 videos)

Cisco Active Network Abstraction Gateway High Availability Solution

Explain how to prepare the hardware and other resources necessary to install SQL Server. Install SQL Server. Manage and configure SQL Server.

Configuring Advanced Windows Server 2012 Services 5 Days

VMware vcloud Air Networking Guide

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

Configuring Windows Server Clusters

Setup and configuration for Intelicode. SQL Server Express

Before deploying SiteAudit it is recommended to review the information below. This will ensure efficient installation and operation of SiteAudit.

SteelEye DataKeeper Cluster Edition. v7.6. Release Notes

SharePoint 2013 on Windows Azure Infrastructure David Aiken & Dan Wesley Version 1.0

1Y0-250 Implementing Citrix NetScaler 10 for App and Desktop Solutions Practice Exam

Implementing and Managing Windows Server 2008 Clustering

Missed Recovery Techniques for SQL Server By Rudy Panigas

Course 20533: Implementing Microsoft Azure Infrastructure Solutions

Hyper-V Replica Broker Configuration Lab By Yung Chou, Microsoft Platform Evangelist,

Course Outline. Course 20412B: Configuring Advanced Windows Server 2012 Services. Duration: 5 Days

Active-Active and High Availability

Disaster Recovery Checklist Disaster Recovery Plan for <System One>

Deploying Exchange Server 2007 SP1 on Windows Server 2008

Microsoft SQL Server on VMware Availability and Recovery Options

Configuring Advanced Windows Server 2012 Services

MS Configuring Advanced Windows Server 2012 Services

Course Outline: Course Configuring Advanced Windows Server 2012 Services

AppSense Environment Manager. Enterprise Design Guide

Implementing a Microsoft SQL Server 2005 Database

Remote Desktop Services Overview. Prerequisites. Additional References

20465D: Designing Solutions for Microsoft SQL Server 2014

Configuring Advanced Windows Server 2012 Services Course 20412

CA ARCserve and CA XOsoft r12.5 Best Practices for protecting Microsoft SQL Server

Course Syllabus. At Course Completion

10972-Administering the Web Server (IIS) Role of Windows Server

Module 14: Scalability and High Availability

Disaster Recovery White Paper

Linux High Availability

Implementing Microsoft Azure Infrastructure Solutions

Assignment # 1 (Cloud Computing Security)

20417-Upgrading Your Skills to MCSA Windows Server 2012

W H I T E P A P E R : T E C H N I C A L. Understanding and Configuring Symantec Endpoint Protection Group Update Providers

SQL Server Whitepaper. Top 5 SQL Server. Cluster Setup Mistakes. By Kendra Little Brent Ozar Unlimited

Microsoft SQL Server 2012 Administration

Boost SQL Server Performance Buffer Pool Extensions & Delayed Durability

Microsoft SharePoint Architectural Models

Microsoft Azure Cloud on your terms. Start your cloud journey.

$99.95 per user. SQL Server 2008/R2 Database Administration CourseId: 157 Skill level: Run Time: 47+ hours (272 videos)

Transcription:

Extending Your Availability Group for Disaster Recovery Ed Leighton-Dick Kingfisher Technologies About Me Email: ed@leightondick.com Blog: edleightondick.com Twitter: @eleightondick 1

Agenda Availability Groups: A Brief Intro Multi-Subnet Availability Groups: Differences, When, Why, & How Walkthrough Troubleshooting AVAILABILITY GROUPS: A BRIEF INTRODUCTION 2

HA/DR Before SQL Server 2012 Replication Log shipping Failover cluster Database mirroring Availability Groups L SQL1 SQL2 W 3

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 only Must license all servers Except those used strictly for disaster recovery 4

Limitations: Worker Thread Exhaustion Required (per AG) 1 per database in primary replica 1 per database for each secondary replica 1 for each secondary replica +1 if using secondary replica backup Limit: Max Worker Threads 40 Light Usage: (D * 2) + 1 Heavy Usage: (D * 5) + 1 Limitations: Worker Thread Exhaustion # CPU Cores 32-bit 64-bit <= 4 256 512 8 288 576 16 352 704 32 480 960 64 736 1472 128 4224 4480 256 8320 8576 Source: MSDN (http://bit.ly/1db0nwi) 5

MULTI-SUBNET AVAILABILITY GROUPS Typical Availability Group (HA) L SQL1 SQL2 W 6

Simple Multi-Subnet Availability Group L SQL1 SQL2 W HA+DR Best of Both Worlds SQL3 SQL1 SQL2 W 7

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 8

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 9

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 (domain\cluster$) Mechanism for synchronizing server objects Jobs Logins 10

WALKTHROUGH SPECIAL CONSIDERATIONS 11

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 12

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 IP handling Register all listener IPs SQL driver must be able to support MultiSubnetFailover RegisterAllIPs = 1 HostRecordTTL = 300 Register only current listener IP RegisterAllIPs = 0 HostRecordTTL = as low as possible Cluster must be able to update DNS Much slower failover 13

Special Considerations Where to put the witness? 3 rd datacenter W Special Considerations Where to put the witness? Co-located with primary replica W 14

Special Considerations Where to put the witness? Co-located with secondary replica W Special Considerations Where to put the witness? Windows Server v.next: Azure Cloud Witness W 15

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 16

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 17

Any Questions? Email: ed@leightondick.com Blog: edleightondick.com Twitter: @eleightondick Thank you for attending! Please remember to fill out your comment cards 18