SQL Server AlwaysOn.

Slides:



Advertisements
Similar presentations
SQL Server AlwaysOn: Active Secondaries Luis Vargas Program Manager Microsoft Corporation DBI312.
Advertisements

Implementing SQLServer AlwaysON Sarabpreet Singh Anand SQL Server – MVP SQLServerGeeks.com (VP)
Mecanismos de alta disponibilidad con Microsoft SQL Server 2008 Por: ISC Lenin López Fernández de Lara.
Oracle Data Guard Ensuring Disaster Recovery for Enterprise Data
FlareCo Ltd ALTER DATABASE AdventureWorks SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS Slide 1.
Keith Burns Microsoft UK Mission Critical Database.
Virtual techdays INDIA │ September 2011 High Availability - A Story from Past to Future Balmukund Lakhani │ Technical Lead – SQL Support, Microsoft.
EIM April 19, Robin Weaver 13 Years with IBM Prior to Assignment at UNC Charlotte Range of Database Development/Data Management Projects and Products.
SQL Server 2012 Always On Premier Field Engineer Microsoft Corporation Lisa Gardner
SQL Server AlwaysOn: Active Secondaries Luis Vargas Program Manager Microsoft Corporation DBI312.
BARBARIN DAVID SQL Server Senior Consultant Pragmantic SA SQL Server Denali : New administration features.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
High-Availability Methods Lesson 25. Skills Matrix.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
Architecting Availability Groups
SQL-Server 2012 Always On.
IT Pro Day SQL Server 2012 AllwaysOn Stephan Hurni Microsoft V-TSP Principal Consultant, Trivadis AG
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
MODIFY THIS SLIDE FOR ACTUAL PRESENTER, DELETE THIS BAR AFTER MODIFICATION.
Data platform market will be 36.2B by 2012Database key in hosted scenarios.
SQLintersection Session SQL37 SQL Server 2012 Availability Groups Aaron Bertrand
DBI Meets mission critical high availability SLA Integrated Efficient Flexible.
Unified solution Easy to configure, manage, and monitor Reuse existing investments SAN/DAS environments Allow using HA hardware resources Fast seamless.
Ewan MacKellar Andrew Ehrensing. 2 ScenarioOCS 2007 R2Lync 2010Lync 2013 HA: server failure  Server clustering via hardware load balancing (HLB)  Server.
Module 10: Maintaining High-Availability. Overview Introduction to Availability Increasing Availability Using Failover Clustering Standby Servers and.
Speaker Name 00/00/2013. Solution Requirements.
SQL School is strongly committed to provide COMPLETE PRACTICAL REALTIME Trainings on SQL Server Technologies – Dev, SQL DBA, MSBI (SSIS, SSAS, SSRS) and.
Alwayson Availability Groups
Enhancing Scalability and Availability of the Microsoft Application Platform Damir Bersinic Ruth Morton IT Pro Advisor Microsoft Canada
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 |
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.
Luis Vargas Senior Program Manager Lead Microsoft.
What HADR Option(s) Are Right For You?. Where’s The AlwaysOn?
SQL Server High Availability Introduction to SQL Server high availability solutions.
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
FUN WITH AVAILABILITY GROUPS Christopher Wolff SQL Server Database Engineer, Xero.
Redmond Protocols Plugfest 2016 Kevin Farlee Senior Program Manager SQL Server AlwaysOn in SQL Server 2016.
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.
Level 400 SQL Server 2012 AlwaysOn Deep Dive Christian Bolton, Coeo Ltd.
High Availability & Disaster Recovery with SQL Server AlwaysOn Availability Groups Turgay Sahtiyan Microsoft – Senior SQL Server PFE
Turgay Sahtiyan Istanbul, Turkey
Sponsors.
AlwaysON Availability groups
ALWAYSON AVAILABILITY GROUPS
Disaster Recovery Where to Begin
Lead SQL BankofAmerica Blog: SQLHarry.com
AlwaysOn Mirroring, Clustering
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
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, an Early bird Overview
AlwaysOn Availability Groups 101
Disaster Recovery Where to Begin
What’s new in SQL Server 2016 Availability Groups
SYED SAJID WASIM SQL SERVER ALWAYS ON Step by Step.
Active Secondary: Enabling Backup On Secondary
AlwaysOn Availability Groups
High Availability/Disaster Recovery Solution
Distributed Availability Groups
04 | Always On High Availability
ZORAN BARAC DATA ARCHITECT at CIN7
Designing Database Solutions for SQL Server
Presentation transcript:

SQL Server AlwaysOn

Welcome Welcome Speaker: John Ecken Edit Welcome Welcome Speaker: John Ecken Topic: SQL Server AlwaysOn Technology News and Events: To receive news, event invites, and special offers from Tandem Solution please opt-in at http://www.training4it.com/signup Follow me and Like Tandem Solution on Facebook Twitter: @JohnEcken and @Training4IT LinkedIn: @www.linkedin.com/in/johnecken/

About Tandem Solution Tandem Solution is highly regarded for our comprehensive and superior training solutions. Whether it's customizing training for client projects or offering hundreds of Guaranteed to Run classes, we help you succeed. We always utilize the most qualified and certified instructors. We are honored to serve a distinguished list of clients because of how we provide training, the quality of instruction, the myriad of technologies that we offer, the money that we save clients, and the overall value that we bring as a training partner. Experience our most valued training services and see why our customers prefer Tandem Solution to train their greatest resource… their employees.

Introducing SQL Server 2014 DR Introducing SQL Server 2014 AlwaysOn Fail-over Clustering (Shared Drive) Database Mirroring Always On Log Shipping Replication

Improvements with Always On Improved Efficiency and Cost-Effectiveness Efficiency and cost-effectiveness are improved through the implementation of: AlwaysOn Readable Secondaries Contained Databases Multi subnet availability

What happens when… Business requirements are for automatic failover of multiple databases together with no single point of failure and redundancy across multiple datacenters In SQL Server 2008 R2 or prior Database mirroring provides automated failover of a single database Redundant copies of the database exist on principle and mirror server Failing over multiple databases at the same time requires custom code logic to detect single failure and then initiate failover of other databases Application failover is accomplished through the use of FailoverPartner connection string value In SQL Server 2012 Redundant copies (up to four) of the databases exist on nodes participating in the Availability Group, maintained either synchronously or asynchronously Multiple-database failover is handled automatically by the Availability Group Application failover through the Availability Group Listener and Application Virtual Name

Groups AlwaysOn Availability Groups Enhance the capabilities of database mirroring Multiple database coordinated failover for applications that require multiple databases on a single instance (e.g. SharePoint) Simplified application connectivity and automatic redirection through the implementation of Availability Group Listener and Application Virtual Name Built in compression and encryption Synchronous or asynchronous data movement Automatic or manual failover modes with configurable failover trigger levels Automatic repair of page corruptions Readable secondary replicas Support for FILESTREAM, FILETABLE, RBS and Service Broker Simplified configuration wizards, PowerShell integration and Availability Group Dashboard for monitoring

Direct attached storage local, regional and geo secondaries Topology examples A Direct attached storage local, regional and geo secondaries Synchronous data movement Asynchronous data movement

Server & Tools Business 4/15/2017 What happens when… You need to move a database to a different SQL Server (Containment) In SQL Server 2008 R2 or prior SQL Server Logins are mapped to Database Users through login SIDs Incorrectly mapped logins result from creating logins on additional servers Can result in problems during failovers or when restoring databases to new servers Requires manual transfer of login using sp_help_revlogin or SSIS Transfer Logins task to maintain identical SID on both servers Nothing tracks external dependencies that might exist in the database code In SQL Server 2012 Partially Contained Databases contain Database Login Credentials as a part of the database Simplifies failover planning for the environment by allowing the login information to be persisted as a part of the database Developers can track instance level impacts and uncontained dependencies with © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

Containment Demo

AlwaysOn in SQL Server 2014 What’s New What’s being delivered Increase number of secondaries from four to eight Increase availability of readable secondaries Support for Windows Server 2012 CSV Enhanced diagnostics Main benefits Further scale out read workloads across (possibly geo-distributed) replicas Use readable secondaries despite network failures (important in geo-distributed environments) Improve SAN storage utilization Avoid drive letter limitation (max 24 drives) via CSV paths Increase resiliency of storage failover Ease troubleshooting

Groups in 2014 Increase Number of Availability Group Secondaries Description Increase number of secondaries (4–8) Max number of sync secondaries is still two Reason Customers want to use readable secondaries One technology to configure and manage Many times faster than replication Customers are asking for more database replicas (4–8) To reduce query latency (large-scale environments) To scale out read workloads

Always On Group Demo

Readable Secondary Client Connectivity Client connection behavior determined by the Availability Group Replica option Replica option determines whether a replica is enabled for read access when in a secondary role and which clients can connect to it Choices are: No connections Only connections specifying Application Intent=ReadOnly connection property All connections Read-only Routing enables redirection of client connection to new readable secondary after a failover Connection specifies the Availability Group Listener Virtual Name plus Application Intent=ReadOnly in the connection string Possible for connections to go to different readable secondaries if available to balance read-only access

Availability Group Listener Readable secondary ReadOnly Routing Client connects to the Availability Group Listener virtual name Standard connections are routed to the Primary server for read/write operations ReadOnly connections are routed to a readable secondary based on ReadOnly routing configuration Availability Group Listener

Readable secondary Query Performance on the Secondary Challenges: Query workloads typically require index/column statistics so the query optimizer can formulate an efficient query plan Read-only workloads on a secondary replica may require different statistics than the workload on the primary replica Users cannot create different statistics themselves (secondaries can’t be modified) Solution: SQL Server will automatically create required statistics, but store them as temporary statistics in tempdb on the secondary node If different indexes are required by the secondary workload, these must be created on the primary replica so they will be present on the secondaries Care should be taken when creating additional indexes that maintenance overhead does not affect the workload performance on the primary replica

Readable secondary Offloading Backups to a Secondary Backups can be done on any replica of a database to offload I/O from primary replica Transaction log backups, plus COPY_ONLY full backups Backup jobs can be configured on all replicas and preferences set so that a job only runs on the preferred replica at that time This means no script/job changes are required after a failover Transaction log backups done on all replicas form a single log chain Database Recovery Advisor tool helps with restoring backups from multiple Secondaries

Readable secondary Workload impact on the secondary Read-only workloads on mirror database using traditional database mirroring can block replay of transactions from the principal Using Readable Secondaries, the reporting workload uses snapshot isolation to avoid blocking the replay of transactions Snapshot isolation avoids read locks which could block the REDO background thread The REDO thread will never be chosen as the deadlock victim, if a deadlock occurs Replaying DDL operations on the secondary may be blocked by schema locks held by long running or complex queries XEvent fires which allows programmatic termination/resumption of reporting

Readable Secondary Demo

Upcoming http://www.training4it.com/signup Future Events SQL and Azure Together Business Information with what you already have (SQL, Reporting Service, Excel) Office 365 and Power BI *For Future Events Please Sign Up at: http://www.training4it.com/signup

Thank You!