FUN WITH AVAILABILITY GROUPS Christopher Wolff SQL Server Database Engineer, Xero.

Slides:



Advertisements
Similar presentations
Implementing SQLServer AlwaysON Sarabpreet Singh Anand SQL Server – MVP SQLServerGeeks.com (VP)
Advertisements

Mecanismos de alta disponibilidad con Microsoft SQL Server 2008 Por: ISC Lenin López Fernández de Lara.
0 SQL Server AlwaysOn – SharePoint 2013 High Availability and Disaster Recovery Sal Bawany, Solutions Architect
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.
SharePoint Business Continuity Management with SQL Server AlwaysOn
Manage & Configure SQL Database on the Cloud Haishi Bai Technical Evangelist Microsoft.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
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,
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.
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 |
Data Disaster Recovery Planning Greg Fibiger 1/7/2016.
Warwick Rudd – Henry Rooney – How Available is SQL Server 2016? DAT33 6.
SQL Server 2012 Session: 1 Session: 4 SQL Azure Data Management Using Microsoft SQL Server.
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.
Narasimha Reddy Gopu Jisha J. Agenda Introduction to AlwaysOn * AlwaysOn Availability Groups (AG) & Listener * AlwaysOn Failover * AlwaysOn Active Secondaries.
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.
What HADR Option(s) Are Right For You?. Where’s The AlwaysOn?
SQL Server 2016 – New Features Tilahun Endihnew March 12, 2016.
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
Redmond Protocols Plugfest 2016 Kevin Farlee Senior Program Manager SQL Server AlwaysOn in SQL Server 2016.
High Availability & Disaster Recovery with SQL Server AlwaysOn Availability Groups Turgay Sahtiyan Microsoft – Senior SQL Server PFE
ALWAYSON AVAILABILITY GROUPS Replicas, Listeners & Quorums, Oh My! Kevin Howell SQL Saturday #517 Philadelphia, June 2016.
Architecting Enterprise Workloads on AWS Mike Pfeiffer.
Turgay Sahtiyan Istanbul, Turkey
Sponsors.
Amazon Web Services RDS with SQL Server
ALWAYSON AVAILABILITY GROUPS
Navigating the options for Data Redundancy
Disaster Recovery Where to Begin
Lead SQL BankofAmerica Blog: SQLHarry.com
Always on HA SQL Server Always ON feature is the new comprehensive high availability and disaster recovery solution which increases application availability.
TOP 10 Availability Groups Improvement in SQL 2016
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.
Amazon Web Services RDS with SQL Server
AlwaysOn Availability Groups 101
Amazon Web Services RDS with SQL Server
What’s new in SQL Server 2016 Availability Groups
SYED SAJID WASIM SQL SERVER ALWAYS ON Step by Step.
Distributed Availability Groups
AlwaysOn Availability Groups
High Availability/Disaster Recovery Solution
04 | Always On High Availability
Amazon Web Services RDS with SQL Server
Distributed Availability Groups
Using Distributed AGs for Your Migrations
Distributed Availability Groups Praveen Kumar. What we will cover Availability group refresher The HA/DR solution Distributed availability groups – what.
Distributed Availability Groups
SQL AlwaysOn Availability Groups
Designing Database Solutions for SQL Server
Presentation transcript:

FUN WITH AVAILABILITY GROUPS Christopher Wolff SQL Server Database Engineer, Xero

WHO AM I? ▪ Christopher Wolff ▪ Over 14 years using SQL Server and other Database technologies ▪ SQL Server Database Engineer at Xero ▪ We’re hiring! ▪ ▪ ▪ Blog:

OBJECTIVES ▪ Overview of Availability Groups (AG) ▪ A Little History… ▪ Info About Availability Groups ▪ Benefits ▪ Limitations ▪ Changes in the 2014 Version ▪ What do you need to create an Availability Group? ▪ Create an Availability Group ▪ Demo ▪ Geosharding ▪ DMV Queries ▪ Demo ▪ Questions?

NOTE ABOUT “FUN” ▪ Can be boring ▪ They are boring ▪ SELECT * FROM sys.database BORING

A LITTLE HISTORY… ▪ Before Availability Groups ▪ Windows Failover Clustering ▪ Database Mirroring ▪ Log Shipping ▪ Replication

INFO ABOUT AVAILABILITY GROUPS ▪ First available in SQL Server 2012 ▪ In house SQL Server tool ▪ Uses Windows Clustering

BENEFITS ▪ Multiple Availability Modes ▪ Asynchronous-commit ▪ Synchronous-commit ▪ Multiple Failover Types ▪ Automatic Failover ▪ Planned Manual ▪ Forced Manual ▪ Read-Only Replicas

BENEFITS (CONT.) ▪ Supports AG Listeners ▪ Integrated Tools ▪ DDL Statements ▪ SSMS Tools ▪ AlwaysOn Dashboard ▪ Object Explorer Detail ▪ PowerShell cmdlets

LIMITATIONS ▪ Licensing Costs ▪ Enterprise Edition Only ▪ Basic Availability Group available in 2016 in Standard Edition ▪ Limited Number of Replicas

CHANGES IN 2014 ▪ Azure Replica Wizard ▪ Replicas Increased from 4 to 8 ▪ Replicas still read-only when disconnected from the primary ▪ Can now use Cluster Shared Volumes ▪ New or enhanced system functions and DMV’s

CHANGES IN 2016 ▪ Optional setting to fail over based on DB failure ▪ Distributed Transaction Coordinator support ▪ Group Managed Service Accounts fully supported ▪ Load Balancing for Readable Secondaries ▪ Additional synchronous failover targets ▪ Improved log transport performance ▪ Basic Availability Group with Standard Edition

WHAT DO YOU NEED TO CREATE AN AVAILABILITY GROUP? Domain Controller 2 SQL Servers Windows Server 2008 or later SQL Servers must be in a Windows Server Failover Clustering cluster Windows up to date Full Backup

TECHNICAL TERMS Replica Each server that is in the AG is referred to as a replica Endpoint Other wise known as database mirroring endpoint The server instance uses this endpoint to listen for AlwaysOn Availability Groups messages from availability replicas hosted by other server instances Listener A virtual IP address and DNS name to which clients, such as 3 rd party tools, can connect to the AG

DEMO

GEOSHARDING

DMV QUERIES 23 Different DMV queries having to do with Availability Groups or Windows Clustering 4 major categories Monitor Availability Groups Monitor Availability Replicas Monitor Availability Databases Monitor Availability Group Listeners

DMV QUERIES – AVAILABILITY GROUPS sys.availability_groups Basic info about the AG sys.dm_hadr_availability_group_states Gives info about the primary

DMV QUERIES – AVAILABILITY REPLICAS sys.availability_replicas Gives information about each replica sys.dm_hadr_availability_replica_states Gives information for each local and remote replicas in the same AG

DMV QUERIES – AVAILABILITY DATABASES sys.availability_databases_cluster One row for each database that is part of the cluster sys.dm_hadr_database_replica_states Extended information about the state of the databases on the primary and secondaries sys.dm_hadr_database_replica_cluster_states Information about the states each database is in currently relating to failover

DMV QUERIES – AVAILABILITY GROUP LISTENERS sys.availability_group_listener_ip_addresses Gives IP information about the listener

DMV QUERIES – DEMO

QUESTIONS? COMMENTS? Crude Remarks?

CREDITS ▪ High Availability Solutions (SQL Server) (2012 Version) ▪ ▪ AlwaysOn Availability Groups (SQL Server) (2012 Version) ▪ ▪ AlwaysOn Availability Groups Dynamic Management Views and Functions (Transact-SQL) ▪ ▪ Monitor Availability Groups (Transact-SQL) ▪ ▪ Use the AlwaysOn Dashboard (SQL Server Management Studio) (2012 Version) ▪ ▪ Overview of AlwaysOn Availability Groups (SQL Server) (2012 Version) ▪ ▪ What's New (Database Engine) (AlwaysOn 2014 version) ▪ ▪ Prerequisites, Restrictions, and Recommendations for AlwaysOn Availability Groups (SQL Server) (2012 Version) ▪ ▪ SQL Server 2016: Availability Group Enhancements ▪

THANK YOU SPONSORS!!