SQL Server 2012 - AlwaysOn



Similar documents
Cass Walker TLG Learning

SQL Server What s New? Christopher Speer. Technology Solution Specialist (SQL Server, BizTalk Server, Power BI, Azure) v-cspeer@microsoft.

Microsoft SQL Server 2008 R2 Enterprise Edition and Microsoft SharePoint Server 2010

SQL Server 2012/2014 AlwaysOn Availability Group

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

SQL Server AlwaysOn (HADRON)

Mission-Critical Availability

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

GoGrid Implement.com Configuring a SQL Server 2012 AlwaysOn Cluster

Online Transaction Processing in SQL Server 2008

Mind Q Systems Private Limited

Extending Your Availability Group for Disaster Recovery

SQL Server 2012 Database Administration With AlwaysOn & Clustering Techniques

Microsoft SQL Database Administrator Certification

New hybrid cloud scenarios with SQL Server Matt Smith 6/4/2014

Windows Geo-Clustering: SQL Server

SQL Server 2012 Gives You More Advanced Features (Out-Of-The-Box)

Designing Database Solutions for Microsoft SQL Server 2012 MOC 20465

Advanced HA and DR.

Upgrading to Microsoft SQL Server 2008 R2 from Microsoft SQL Server 2008, SQL Server 2005, and SQL Server 2000

Module 14: Scalability and High Availability

Microsoft SQL Server 2012: What to Expect

SQL Server for Database Administrators Course Syllabus

SQL Server 2008 Designing, Optimizing, and Maintaining a Database Session 1

Designing and Deploying Messaging Solutions with Microsoft Exchange Server 2010 Service Pack B; 5 days, Instructor-led

SQL Server on Azure An e2e Overview. Nosheen Syed Principal Group Program Manager Microsoft

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

Designing, Optimizing and Maintaining a Database Administrative Solution for Microsoft SQL Server 2008

Administering Microsoft SQL Server 2012 Databases

6231A - Maintaining a Microsoft SQL Server 2008 Database

Writers: Ann Bachrach, Daniel Yu, Darmadi Komo, Gopal Ashok, Joanne Hodgins, Pej Javaheri, Sabrena Mcbride, Tharun Tharian

Enterprise and Standard Feature Compare

Microsoft SQL Server Native High Availability with XtremIO

Course Syllabus. At Course Completion

MS Design, Optimize and Maintain Database for Microsoft SQL Server 2008

Contents. SnapComms Data Protection Recommendations

Upon completion of the program, students are given a full support to take and pass Microsoft certification examinations.

Microsoft SQL Server 2012 Administration

Course Syllabus. Maintaining a Microsoft SQL Server 2005 Database. At Course Completion

Appendix A Core Concepts in SQL Server High Availability and Replication

Below are the some of the new features of SQL Server that has been discussed in this course

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

Administering a SQL Database Infrastructure

Administering a SQL Database Infrastructure 20764; 5 Days; Instructor-led

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

Administering Microsoft SQL Server 2012 Databases

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

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

SQL Server 2008 Performance and Scale

MOC 20462C: Administering Microsoft SQL Server Databases

WELKOM Cloud met Azure

SQL Server 2014 New Features/In- Memory Store. Juergen Thomas Microsoft Corporation

SQL Server AlwaysOn Deep Dive for SharePoint Administrators

6231B: Maintaining a Microsoft SQL Server 2008 R2 Database

Eliminate SQL Server Downtime Even for maintenance

TABLE OF CONTENTS THE SHAREPOINT MVP GUIDE TO ACHIEVING HIGH AVAILABILITY FOR SHAREPOINT DATA. Introduction. Examining Third-Party Replication Models

Designing a Data Solution with Microsoft SQL Server 2014

Deploying Exchange Server 2007 SP1 on Windows Server 2008

Maintaining a Microsoft SQL Server 2008 Database

Designing a Data Solution with Microsoft SQL Server

70-414: Implementing a Cloud Based Infrastructure. Course Overview

10231B: Designing a Microsoft SharePoint 2010 Infrastructure

SQL AlwaysOn Availability Groups (AAG) on Tintri

Course 20465: Designing a Data Solution with Microsoft SQL Server

Designing a Data Solution with Microsoft SQL Server

MS SQL Server 2014 New Features and Database Administration

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

Designing a Data Solution with Microsoft SQL Server 2014

Administering Microsoft SQL Server 2012 Databases

Designing Database Solutions for Microsoft SQL Server 2012

SteelEye DataKeeper Cluster Edition. v7.6. Release Notes

Deploy App Orchestration 2.6 for High Availability and Disaster Recovery

SQL Server Training Course Content

The last 18 months. AutoScale. IaaS. BizTalk Services Hyper-V Disaster Recovery Support. Multi-Factor Auth. Hyper-V Recovery.

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

Outline. MCSE: Data Platform. Course Content. Course 10776C: MCSA: Developing Microsoft SQL Server 2012 Databases 5 Days


Updating Your SQL Server Skills to Microsoft SQL Server 2014 (10977) H8B96S

Powering the Next Generation Cloud with Azure Stack, Nano Server & Windows Server 2016! Jeff Woolsey Principal Program Manager Cloud & Enterprise

Server Consolidation with SQL Server 2008

Neverfail for Windows Applications June 2010

10775A Administering Microsoft SQL Server 2012 Databases

Writers: Ann Bachrach, Daniel Yu, Darmadi Komo, Gopal Ashok, Joanne Hodgins, Pej Javaheri, Sabrena Mcbride, Tharun Tharian

Data platform evolution

Rethink Disaster Recovery with Microsoft

Administering Microsoft SQL Server Databases MOC 20462

Microsoft Private Cloud Fast Track

MIRRORING: START TO FINISH. Ryan Adams Blog - Twitter

SQL Server 2014

MS 10977B Upgrading Your SQL Server Skills to Microsoft SQL Server 2014

MOC Administering Microsoft SQL Server 2014 Databases

Microsoft SQL Server 2014 Licensing Guide

ORACLE DATABASE 10G ENTERPRISE EDITION

SQL 2016 and SQL Azure

Course. Overview. Length: 5 Day(s) Published: English. IT Professionals. Level: Type: Method: Delivery. Enroll now (CAL)

Implementing a Microsoft SQL Server 2005 Database

Microsoft SharePoint 2010 on VMware Availability and Recovery Options. Microsoft SharePoint 2010 on VMware Availability and Recovery Options

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

Disaster Recovery for Oracle Database

Administering Microsoft SQL Server Databases

Transcription:

SQL Server 2012 - AlwaysOn João Loureiro Microsoft

About João Loureiro SQL Server Senior Support Escalation Engineer (3 rd tier support level) Bridge between frontline support and SQL product group SQL Server Denali TAP Escalation Engineer (part of SQL Server Beta program) Blog: http://blogs.msdn.com/joaol (joaol@microsoft.com) Engaged on Service Packs, hot fixes and new product releases.

SQL Server High Availability Retrospective SQL Server High Availability Today Enterprise customers are being successful Dell, HP, Bwin, ServiceU, CareGroup, BigHammer but Solutions fragmented Lack important flexibility points Initiated holistic review of SQL HA and DR Looked at customer scenarios (RTO and RPO requirements, Local HA and DR) Enterprise blockers Mission Critical Needs (online ops, patching, planned and unplanned maintenance) Failover requirements and hardware usage Future needs

Mission Critical High Availability Solution Meets mission critical high availability SLA Integrated Flexible Efficient

AlwaysOn Availability Groups AlwaysOn Availability Groups is a new feature that enhances and combines database mirroring and log shipping capabilities Flexible Integrated Efficient Multi-database failover Multiple secondaries Total of 4 secondaries 2 synchronous secondaries 1 automatic failover pair Synchronous and asynchronous data movement Built in compression and encryption Automatic and manual failover Flexible failover policy Automatic Page Repair Application failover using virtual name Configuration Wizard Dashboard System Center Integration Rich diagnostic infrastructure File-stream replication Replication publisher failover Active Secondary Readable Secondary Backup from Secondary Automation using power-shell

A Flexible Solution AlwaysOn provides the flexibility of different HA configurations A A A A A A A Direct attached storage local, regional and geo target Shared Storage, regional and geo secondaries Synchronous Data Movement Asynchcronous Data Movement

Mission Critical Requirements Zero data loss is critical for the business Fast application recovery during planned and unplanned downtime Redundancy across 3 datacenters Application databases and dependencies failover together

demo Deploy using AlwaysOn Availability Groups

Application Failover Availability Groups Listener allow applications to failover seamlessly to any secondary Application reconnects using a virtual name after a failover to a secondary ServerA ServerB ServerC HR DB AG_HR HR DB HR DB Primary HR_VNN -server HR_Listener;- catalog HRDB Secondary Primary Application retry during failover Secondary Connect to new primary once failover is complete and the listener is online

What about Server Objects? Introducing Contained Databases or CDB s Unit of application programmability in Denali A DB which establishes a boundary between application and server CDBs sever the user login relationship Windows users no longer need matching logins Users with passwords replace SQL logins CDB can be part of an availability group and can failover across replicas Authentication information moves with the CDB Limitation Other objects, like jobs are not contained and has to be managed

Availability Group Architecture Windows Server Failover Cluster Database Active Log Synchronization Database Active Log Synchronization Availability Group uses Windows Server Failover Cluster (WSFC) for WSFC Common Microsoft Availability Platform Inter-node health detection, Failover coordination, Primary health detection, Distributed data store for settings and state, Distributed change notifications

AlwaysOn Active Secondary IT efficiency and cost-effectiveness is critical for businesses Idle hardware is not an option anymore AlwaysOn Active Secondary enables efficient utilization of high availability hardware resources thereby improving overall IT efficiency Active Secondary can be utilized for Balancing read-only workloads Offloading Backup Operations

Active Secondary Making Secondary Readable SQLservr.exe Primary Secondary SQLservr.exe InstanceA Secondary Primary InstanceB DB1 DB2 DB1 DB2 Reports Reports Readable secondary allow offloading read queries to secondary Close to real-time data, latency of log synchronization impact data freshness

Read-Only Client Connectivity Read-Only client connection behavior determined by Availability Replica Option+ ApplicationIntent Property ApplicationIntent is a connection property Replica option determines whether a replica is enabled for read access when in a secondary role Read-Only Routing enables redirection of client connection to new secondary on role change Enable seamless redirection of application connection across replicas without manual intervention

Read Workload Impact Concurrency and Blocking REDO can get blocked by reporting workload REDO thread and read workload can deadlock Solution Internally map read workload to non blocking isolation levels (no application changes required) Read Uncommitted Snapshot Isolation Read Committed Snapshot Isolation Repeatable Read Snapshot Isolation Serializable Snapshot Isolation Ignore all locking hints Never choose REDO as deadlock victim Result Blocking and deadlock between Reporting workload (i.e. Query) and REDO thread is eliminated No issues with DML (INSERT/DELETE/UPDATE) as it is not allowed Will incur additional cost of row versioning.

demo Readable Secondary

Active Secondary Enabling Backup on Secondary R/W workload Backups Primary Secondary Secondary Backups Backups Backups can be done on any replica of a database Backups on primary replica still works Log backups done on all replicas form a single log chain Database Recovery Advisor makes restores simple

Restrictions, cautions, and gotchas Differential backups are not supported on secondary Only Copy-only full backups are supported on secondary The only distinction is the differential bitmap clearing Advisable for backups to be stored centrally

demo Backup from Secondary

Key Enhancements Fast instance failover through predictable database recovery time Native support for multi-site clustering across subnets enable DR using failover cluster instances Flexible Failover Policy Eliminates false failover Configurable failure condition levels Better diagnostics SMB support enables consolidation of more than 26 instances Support TEMPDB on local drive

Introduce Flexible Failover Policy Flexible Failover Policy provides administrators control over the conditions when an automatic failover should be initiated. Diagnostics Configurable options eliminate false failover Improved logging for better diagnostics

Reducing Planned Downtime Support for Windows Server Core Reduce OS patching by as much as 50-60% Support for rolling upgrade and patching of SQL Server for both Availability Groups and Failover Cluster Instance Fast failover time for both Availability Groups and Failover Cluster Instances New online operations supported LOB Index Adding of column with default

Windows Server Pre-Reqs KB 976097 - Hotfix to add support for asymmetric storages to the Failover Cluster Management MMC snap-in for a failover cluster that is running Windows Server 2008 or Windows Server 2008 R2 Supports SQL Server Failover Cluster Instances with AlwaysOn Availability Groups KB 2494036 - A hotfix is available to let you configure a cluster node that does not have quorum votes in Windows Server 2008 and in Windows Server 2008 R2 Supports configuring optimal quorum with non-automatic failover targets All nodes should be in the same AD domain To create WFSC cluster user running creation must have: Domain account Administrator on all machines Have Create Computer objects and Read All Properties rights in AD Detailed Article: http://technet.microsoft.com/enus/library/cc731002(ws.10).aspx

Quorum Configuration Quorum: need majority of votes to operate and avoid split brain Two-Steps process: 1. Select nodes to vote (KB 2494036) 1 vote if node s that host a replica that is currently: Primary (if primary is an FCI include all possible owner nodes for that FCI) An auto failover target if the primary is also configured for auto failover 0 votes for rest of nodes 2. Select the quorum type: Odd number of votes, use Node Majority Even number of votes, add a witness by either: Adding an additional witness node and use Node Majority Using Node and File Share Majority with a protected file share (blog with details) Re-evaluate and adjust quorum after manual failover outside automatic target

demo Disaster Recovery

New Topology A A A A Reports Backups Synchronous Data Movement Asynchcronous Data Movement

Resources Links Denali AlwaysOn Resource Center: http://msdn.microsoft.com/en-us/sqlserver/gg490638(enus,msdn.10) RCO download (available soon) Documentation MSDN forums Microsoft Connect AlwaysOn Blog

SQL Server 2012 Highlights High Availability Scalability & Performance Security & Manageability Beyond Relational Web & Breadth Business Intelligence EIM SQL Server AlwaysOn Up to 15K Partitions/Table User-Defined Server Roles Microsoft Project Juneau PHP Driver Unified Semantic Model SSIS Server Reliable, Integrated Failover Detection Column Store Index, Apollo Contained Database Authentication Win32 Access to Database files Local DB Runtime Crescent Data Quality Application Centric Failover Fast FILESTEAM Distributed Replay FileTable UTF-16 In-memory BI for corporate Enhanced MDS Multiple Secondaries Fast Full-Text Search Audit Enhancements Semantic Search Platform Paging for result sets Alerting MDS add-in for Excel Readable Secondaries Fast Spatial Performance Management Pack for High Availability Full Globe Spatial Support JDBC 4.0 driver Sysprep for AS Online Operations DBC & OLTP Appliances/RAs Backup Secondaries DAC Enhancements Support for ARM processors PowerPivot Enhancements HA for StreamInsight Windows Server Core Support Default Schema for Windows Group Active Directory w/ SharePoint for SSRS ODBC for Linux Hybrid Applications with SQL Azure Reporting as SharePoint Shared Service

Thank You

2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.