Real World Enterprise SQL Server Replication Implementations. Presented by Kun Lee sa@ilovesql.com



Similar documents
Appendix A Core Concepts in SQL Server High Availability and Replication

Module 14: Scalability and High Availability

Basics Of Replication: SQL Server 2000

Comparing Microsoft SQL Server 2005 Replication and DataXtend Remote Edition for Mobile and Distributed Applications

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

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

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

SQL Server Training Course Content

SQL Server Replication Guide

Course Outline: Course 6317: Upgrading Your SQL Server 2000 Database Administration (DBA) Skills to SQL Server 2008 DBA Skills

Online Transaction Processing in SQL Server 2008

Upgrading Your SQL Server 2000 Database Administration (DBA) Skills to SQL Server 2008 DBA Skills Course 6317A: Three days; Instructor-Led

Microsoft SQL Database Administrator Certification

SQL Server for Database Administrators Course Syllabus

MS SQL Server 2014 New Features and Database Administration

MIRRORING: START TO FINISH. Ryan Adams Blog - Twitter

Implementing a Microsoft SQL Server 2005 Database

6231A - Maintaining a Microsoft SQL Server 2008 Database

Contents. SnapComms Data Protection Recommendations

Would-be system and database administrators. PREREQUISITES: At least 6 months experience with a Windows operating system.

Virtual Infrastructure Security

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

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

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

A SURVEY OF POPULAR CLUSTERING TECHNOLOGIES

High Availability Databases based on Oracle 10g RAC on Linux

Mind Q Systems Private Limited

SQL Server 2012 Database Administration With AlwaysOn & Clustering Techniques

Designing Database Solutions for Microsoft SQL Server 2012 MOC 20465

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

Microsoft SQL Server 2012 Administration

Maintaining a Microsoft SQL Server 2008 Database

Data Replication in Privileged Credential Vaults

Microsoft SQL Server 2008 Bible

SQL Server Replication

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

MCTS Microsoft SQL Server 2005 Implementation & Maintenance

DB2 9 for LUW Advanced Database Recovery CL492; 4 days, Instructor-led

How to Implement Multi-way Active/Active Replication SIMPLY

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

50238: Introduction to SQL Server 2008 Administration

Database Replication

NUTECH COMPUTER TRAINING INSTITUTE 1682 E. GUDE DRIVE #102, ROCKVILLE, MD WEB: TEL:

Overview of Microsoft Replication Technologies

Citrix XenServer Backups with SEP sesam

MySQL Enterprise Backup

Real-time Data Replication

Computer Visions Course Outline

Tushar Joshi Turtle Networks Ltd

SQL SERVER TRAINING CURRICULUM

Advanced HA and DR.

SQL Server Administrator Introduction - 3 Days Objectives

Module 07. Log Shipping

Administering a Microsoft SQL Server 2000 Database

Designing a Data Solution with Microsoft SQL Server 2014

M4 Systems. M4 Online Backup. M4 Systems Ltd Tel: International: +44 (0)

Migrating your custom settings to version 7.6

Course Syllabus. At Course Completion

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

Veeam Summer School. Thomas Zaatman Veeam Software

How To Write A Server On A Flash Memory On A Perforce Server

Chapter Replication in SQL Server

EISOO AnyBackup 5.1. Detailed Features

Disaster Recovery Planning BlackBerry Enterprise Server v4.0 for IBM Lotus Domino

MySQL Enterprise Edition Most secure, scalable MySQL Database, Online Backup, Development/Monitoring Tools, backed by Oracle Premier Lifetime Support

Protecting SQL Server Databases Software Pursuits, Inc.

General DBA Best Practices

Rajesh Gupta Best Practices for SAP BusinessObjects Backup & Recovery Including High Availability and Disaster Recovery Session #2747

Beginning SQL Server Administration. Apress. Rob Walters Grant Fritchey

Administering a Microsoft SQL Server 2000 Database

Disaster Recovery for Oracle Database

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

AppSense Environment Manager. Enterprise Design Guide

SQL Server Replication: Providing High Availability using Database Mirroring

CROSS PLATFORM AUTOMATIC FILE REPLICATION AND SERVER TO SERVER FILE SYNCHRONIZATION

Shadowbase Data Replication Solutions. William Holenstein Senior Manager of Product Delivery Shadowbase Products Group

10231B: Designing a Microsoft SharePoint 2010 Infrastructure

Redefining Microsoft SQL Server Data Management. PAS Specification

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

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

Course 2788A: Designing High Availability Database Solutions Using Microsoft SQL Server 2005

SQL Server 2012/2014 AlwaysOn Availability Group

Level 1: Asigra Cloud Backup Foundation Training

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

Application Note 116: Gauntlet System High Availability Using Replication

An Oracle White Paper March Best Practices for Real-Time Data Warehousing

Virtuoso Replication and Synchronization Services

ADDING A NEW SITE IN AN EXISTING ORACLE MULTIMASTER REPLICATION WITHOUT QUIESCING THE REPLICATION

Direct NFS - Design considerations for next-gen NAS appliances optimized for database workloads Akshay Shah Gurmeet Goindi Oracle

SQL Server Developer Training Program. Topics Covered

ArcGIS for Server in the Amazon Cloud. Michele Lundeen Esri

Data Protection as Part of Your Cloud Journey

Administering Microsoft SQL Server 2012 Databases

DISASTER RECOVERY WITH AWS

Transcription:

Real World Enterprise SQL Server Replication Implementations Presented by Kun Lee sa@ilovesql.com

About Me DBA Manager @ CoStar Group, Inc. MSSQLTip.com Author (http://www.mssqltips.com/sqlserverauthor/15/kunlee/) Father of two children Hobbyist Photographer

Abstract Come learn how to design, setup and manage SQL Server Replication for a large distributed enterprise with multiple data centers. Learn about some of the technical options such as Re-publishers, Hub and Spoke architecture, Peer-to-Peer replication, pre and post snapshots, automating deployments, monitoring, optimizations and more. With each of these options I will outline many of the configuration options, benefits and issues for each of the technologies based on my experience from the field. My goal is to share my findings to help you make better decisions when using SQL Server Replication so you don t have to go through the same issues that I have experienced.

There is no one tool/solution fits every problem

Scope of this Presentation What is NOT I am not trying to teach you how to write TSQL I am not trying to teach you how to setup all the replications and others I cannot demo everything since the topic is too broad but I will try some though. What is I am trying to show you how and why I make those decisions I am trying to show you what is the benefits and side effects

Not my style Presentation Not much of Demo I will try as much as possible to entertain all of you If no one sleeps at the end, that would be great!

Quick Poll Have you used SQL Replications? What types of replication have you used? And Why?

Technologies that I will cover Replication Link Server Transactional Synonyms Peer to Peer Merge Snapshot Mirroring/Always On CDC/CT Trigger Service Broker Backup & Restore Clustering View & Indexed View F5 (BigIP) Stretch VLAN / Overlay Transport Virtualization (OTV) SAN DMZ/LAN Database Snapshot Disaster Recovery Archiving

Problems to solve Security Performance Scale out vs Scale up Disaster Recovery Reports Cost Reduce SQL Server Edition Number of Servers

Sample Toplogies <Old & Simple Version>

One SQL server I wish Life is easy!

Having Locking issue when someone runs Reports? Database Snapshots if you have Enterprise Edition Backup and restore as different database name Replication to the same server

Having Locking or Resource issue when someone runs Reports? But have Performance SLA on Source DB? Backup & Restore Target Server needs to have the same edition or higher Edition Downtime during Restoring Log Shipping is one way to work around Mirroring but requires Enterprise Edition to see data on other side and can t have customized index for the query on target AlwaysOn also requires Enterprise Edition and can t have customized index for the query for the query on target

Having Locking issue or Resource when someone runs Reports? But have Performance SLA on Source DB? Cont. Transactional SQL Replication Standard Edition Supports Customized index for Target Server Limitation on publisher Articles

Transactional Replication You want incremental changes to be propagated to Subscribers as they occur. The application requires low latency between the time changes are made at the Publisher and the changes arrive at the Subscriber. The application requires access to intermediate data states. For example, if a row changes five times, transactional replication allows an application to respond to each change (such as firing a trigger), not simply the net data change to the row. The Publisher has a very high volume of insert, update, and delete activity. The Publisher or Subscriber is a non-sql Server database, such as Oracle.

Replication Things to consider PK on Publisher Pull vs. Push Replication Snapshot requires some downtime (Lock) Separate Distributor Educate Developers what to do and what not to do No truncate No big huge update Can t drop table Can t just update subscriber (transactional replication) Need to consider what index is required on subscriber How to maintain DEV/TST(QA)/PRD License Shared Publisher

Multiple R/O servers on two Different Data Center Washington DC Replication Same over and over Wasting network bandwidth Slow down replication Los Angeles

Multiple R/O servers on two Different Data Center Re-publisher

Republish Data This is MSFT supported Technology See Republish Data

DEMO

Republish Data Requirements & Tips You need to make sure subscriber DB (republisher) always has Primary Key so you can republish Depending situation, you may want to use one of below techniques to snapshot Compressed Snapshot (not recommendable as it is) Snapshot to Remote location file server and apply snapshot (works pretty well) Snapshot to local as either Raw or compressed (depending on size) and copy manually and Load from remote location Last resolution because it isn t easy to automated

Republishing and Processing for Summary/Aggregate for Customers LAN/Trust DMZ Processing fire wall Publisher Re-Publisher & Processing Subscriber R/O Server

DEMO with CDC & Post Snapshots

What about DML from Customers?

Multiple R/O servers on two Different Data Center Re-publisher Merge among all servers?

Merge Replication Pro Cons Conflict resolution Support Mobile Frequent update on Subscriber Data Filtering No need special process to Syncing Data The application requires net data change rather than access to intermediate data states. For example, if a row changes five times at a Subscriber before it synchronizes with a Publisher, the row changes only once at the Publisher to reflect the net data change (that is, the fifth value). Performance overhead (Adding GUID, etc) Latency Each Subscriber requires a different partition of data. High Maintenance and configuration Requires Snapshot which is very resource intensive and lock tables some period time

Peer to Peer Replication

Peer to Peer Replication Pro Cons Replication is used to improve scalability and availability. Minimal latency is required. Reinitialized with Backup and Restore Data is not partitioned among Subscribers. Conflicts typically do not occur, but they must be detected if they do. Reinitialized with Backup and Restore Adding a new article is cumbersome Better to come up with own way not to conflict data such as introducing Silo ID

WHITE BOARD TIME

Final Thought & Questions? Devils in Detail

Thank you! For attending this session sa@ilovesql.com