AlwaysOn Availability Groups

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.
1EMC CONFIDENTIAL—INTERNAL USE ONLY Overview of SQL Server 2012 High Availability and Disaster Recovery (HADR) Wei Fan Technical Partner Management – Microsoft.
FlareCo Ltd ALTER DATABASE AdventureWorks SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS Slide 1.
Virtual techdays INDIA │ September 2011 High Availability - A Story from Past to Future Balmukund Lakhani │ Technical Lead – SQL Support, Microsoft.
SQL Server 2012 Always On Premier Field Engineer Microsoft Corporation Lisa Gardner
National Manager Database Services
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
Implementing Database Snapshot & Database Mirroring in SQL Server 2005 Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server MVP Microsoft.
High-Availability Methods Lesson 25. Skills Matrix.
Architecting Availability Groups
SQL-Server 2012 Always On.
IT Pro Day SQL Server 2012 AllwaysOn Stephan Hurni Microsoft V-TSP Principal Consultant, Trivadis AG
Clustering SQL Server Tom Pullen Senior DBA, RM Education
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,
DATABASE MIRRORING  Mirroring is mainly implemented for increasing the database availability.  Is configured on a Database level.  Mainly involves two.
Rajib Kundu Agenda Definitions Failover Cluster Database Snapshots Log shipping Database Mirroring.
Chokchai Junchey Microsoft Product Specialist Certified Technical Training Center.
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.
Module 10: Maintaining High-Availability. Overview Introduction to Availability Increasing Availability Using Failover Clustering Standby Servers and.
Overview of high availability in Microsoft SQL Server Szymon Wójcik.
7. Replication & HA Objectives –Understand Replication and HA Contents –Standby server –Failover clustering –Virtual server –Cluster –Replication Practicals.
Speaker Name 00/00/2013. Solution Requirements.
1© Copyright 2012 EMC Corporation. All rights reserved. EMC VNX5700, EMC FAST Cache, SQL Server AlwaysOn Availability Groups Strategic Solutions Engineering.
Alwayson Availability Groups
Course Topics Administering SQL Server 2012 Jump Start 01 | Install and Configure SQL Server04 | Manage Data 02 | Maintain Instances and Databases05 |
Warwick Rudd – Henry Rooney – How Available is SQL Server 2016? DAT33 6.
1 Chapter Overview Using Standby Servers Using Failover Clustering.
SQL Server 2012: AlwaysOn HA and DR Design Patterns, and Lessons Learned from Early Customer Deployments Sanjay Mishra SQLCAT.
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.
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 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.
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.
ALWAYSON AVAILABILITY GROUPS Replicas, Listeners & Quorums, Oh My! Kevin Howell SQL Saturday #517 Philadelphia, June 2016.
Architecting Enterprise Workloads on AWS Mike Pfeiffer.
Sponsors.
High Availability in SQL Server 2012
Welcome to SharePoint Saturday Houston
ALWAYSON AVAILABILITY GROUPS
Glasgow, SQL Server Meetup
Navigating the options for Data Redundancy
Disaster Recovery Where to Begin
Lead SQL BankofAmerica Blog: SQLHarry.com
AlwaysOn Mirroring, Clustering
Always On Availability Groups
Always on HA SQL Server Always ON feature is the new comprehensive high availability and disaster recovery solution which increases application availability.
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.
AlwaysOn Availability Groups 101
SQL Server High Availability Amit Vaid.
Your Data Any Place, Any Time
Disaster Recovery Where to Begin
What’s new in SQL Server 2016 Availability Groups
SYED SAJID WASIM SQL SERVER ALWAYS ON Step by Step.
High Availability/Disaster Recovery Solution
04 | Always On High Availability
Distributed Availability Groups Praveen Kumar. What we will cover Availability group refresher The HA/DR solution Distributed availability groups – what.
SQL AlwaysOn Availability Groups
Designing Database Solutions for SQL Server
Presentation transcript:

AlwaysOn Availability Groups How to Setup and Configure using Best Practices

About me Morgan Jung SQL Database Administrator with One Command 9 Years experience with SQL Server, Sybase, and MySQL Contact Me: florencedba@gmail.com

Agenda AlwaysOn Availability Groups Overview Benefits Requirements Best Practices Troubleshoot Demo: Setup and Configure

AlwaysOn Classification Microsoft’s new catch phrase introduced in 2012 Availability Groups Failover clustered instances (FCI) Database mirroring Log-shipping Replication

Availability Groups Synchronization modes Replicas Synchronous Asynchronous Replicas Supports up to 9 secondary replicas (5 in 2012) Up to 3 replicas can be synchronous 1 Primary replica 2 Secondary replicas Up to 2 replicas can be automatic failover partners

Benefits Redundancy High availability Offload reporting & DW loads Offload backups Copy only full backups No differential Local storage

Automatic Page Repair Errors: 823, 824, and 829 Requests a clean page from replica Asynchronous repair Integrity checks Still run physical_only on primary

Replication Replication Publisher: Supports automatic redirect on failover Subscriber: Supports failover* Transactional replication configured the subscriber’s listener name Merge subscribers require additional manual work Distributor: Role failover not supported

Requirements Windows Cluster SQL Enterprise Edition Recommend Windows 2012 SQL Enterprise Edition Replica Initialization Listener (Optional) Network Name IP Address (Static)

Checklist Items Kerberos Service Broker SSISDB Monitoring All SQL Servers need to use the same service account Service Broker SSISDB Monitoring SQL Agent jobs

Best Practices Disk layout (Please!) Same hardware Same SQL Server features are installed on all replicas Use a Quorum witness Windows cluster Latest patches Perform a planned failover Create a failover document

Best Practices (Cont.) Run performance tests Security policy On primary and secondary replicas Security policy AD policy Local policy Perform volume maintenance tasks (Instant file initialization) Perform a planned failover Create a failover document

Worker Threads Monitor Max Worker Threads When set to 0 (default) SQL calculates the max thread based on CPU count Mirroring process uses at least 2 threads per database Number of CPUs 32-bit computer 64-bit computer <= 4 processors 256 512 8 processors 288 576 16 processors 352 704 32 processors 480 960

Noteworthy Manual failovers of asynchronous databases Snapshot isolation Index page splits Only 1 mirror endpoint per SQL instance Watch out for log backups

Troubleshoot SQL Server error log Windows Event Viewer Cluster log Primary and secondary replica Windows Event Viewer Cluster log Database(s) unavailable – Check the cluster Search Exchange forums

Demo Setup AlwaysOn Backup Restore Listener 172.30.201.150 Group: AG1 Listener: AG1-List Setup and test read routing DMVs Quorum votes AlwaysOn information

Monitoring Perfmon Dashboard 3rd-party monitoring solution Idera SQL Sentry http://sqlmonitor.codeplex.com/ http://msdn.microsoft.com/en-us/library/ff878305.aspx http://technet.microsoft.com/en-us/library/dn135338(v=sql.110).aspx

References AlwaysOn Checklist Overview on AlwaysOn Availability Groups Brentozar.com/go/alwayson Overview on AlwaysOn Availability Groups http://msdn.microsoft.com/en-us/library/hh510230.aspx Replication with AlwaysOn http://msdn.microsoft.com/en-us/library/hh710046.aspx