SlideShare ist ein Scribd-Unternehmen logo
1 von 30
Amit Bansal
CTO
eDominer Systems P Ltd |
Peopleware India
Who is Amit Bansal?
 CTO, eDominer Systems & Peopleware India
 Conducted more than 200 workshops on SQL Server &
 BI for top notch IT companies world wide
 Microsoft MVP for SQL Server
 Microsoft Certified Trainer Advisory Council member
 Speaker at TechED India, TechED US & TechED Europe
 Technical Reviewer – MSL courses on SQL Server
 SME – SQL Server 2008 certifications
 UG Lead (Delhi NCR) – Culminis
 Manager –
 www.WeTogether.in, www.DelhiDevs.com, www.BlogB
 oard.in
Agenda? --- TODO
 Intro to High-Availability/DR
 Key Terms
 Always On Technologies
    Overview, Planned / Unplanned downtime
    When to use
    Enhancements in SQL Server 2008
 Combining Technologies
 Summing it up
What is Availability?
  Availability is defined by an implicit or explicit
  application specific Service Level Agreement
  Example
    The ordering system is considered available when orders can
    complete in less than one minute. The maximum downtime
    acceptable is five minutes per month.
    Downtime = the amount of time when the SLA is not met
    Typically uptime is tracked (i.e. 99.993%), which doesn’t
    include the “planned” downtime
  The SLA should be used during
  design, deployment, and production monitoring
  phases of the application lifecycle
Intro to Disaster Recovery
 Processes and procedures designed to restore
 business operations due to a natural or human-
 induced disaster
    Typically involves providing redundancy spanning
    multiple sites or across geographic regions
Key Terms
 SLA Metrics:
    Recovery Point Objective (RPO) = data loss
      How much data can you lose?
      guided by criticality of application data
    Recovery Time Objective (RTO) = downtime
      How much downtime can you tolerate?
      guided by availability requirements


 Local High-Availability (Local HA)
 Site Disaster Recovery (Site DR)
Always On Technologies
 Unplanned Downtime
   SAN/RAID
   Backup and Restore
   Log Shipping
   Database Mirroring
   Failover Clustering
   Replication

 Planned Downtime
   Rolling Upgrades and Patching
   Online Operations
   Resource Governor
   Database Snapshots
Always On Availability Scenarios
 System Administration
   Upgrades, Index rebuilds

 Logical Errors (User or Application)
   Incorrect data modifications, accidental changes

 Site Disaster
   Hurricanes, fires

 Hardware Failures
   Memory, network, disks

 Software Failures
   Bugs
Categorizing Availability On Solutions

High Availability              Solution
Requirement
System Administration          Online management
Recovery from application or   Logical recovery
user errors
Site disaster protection       Database or storage mirroring
Database workload scale out Replication
with redundancy
Online Management
 Downtime Scenarios
   Applying a patch or upgrade
   Moving a table as part of system maintenance
   Deploying a new version of an application
   Recovering from a corrupted data file
 Always On Solutions
   Rolling Upgrades utilizing Database Mirroring, Log
   Shipping, or Replication
   Fast recovery
   Online alter table, index create, index rebuild
   Online granular restore
Categorizing Availability On Solutions

High Availability              Solution
Requirement
System Administration          Online management
Recovery from application or   Logical recovery
user errors
Site disaster protection       Database or storage mirroring
Database workload scale out Replication
with redundancy
Recovery from User or Application
Errors
 Downtime Scenarios
   A table is accidentally dropped
   An application makes incorrect updates to data
   A user possibly made unauthorized changes to data
 Always On Solutions
   View point in time snapshots of the system
     Take database snapshots at intervals
     Log ship to another site using restore delay/standby options
     Compare table to older version using tablediff utility
   Track history of DML statements
     Use SQL Trace or customized replication
Log Shipping
How it works
           Update orders
              set
.


 Primary Instance                              Secondary Instance




Primary                                                               Secondary
DB                Log                         Log
                                                                      DB
                  Backup                      Restore

                                                  Transaction Log Backup
   Transaction Log Backup        Log Backup          Transaction Log Backup
                                                        Transaction Log Backup
     Transaction Log Backup
        Transaction Log Backup   Copy                       Transaction Log Backup
                                                                Transaction Log Backup
SQL Server - Database Snapshots
                            Create database “HADB Snapshot”
                            on ( filename=<files>)
                            as snapshot of “HADB”



                                               Update orders        Select from orders
                                                  set
.                  where





                                                                                           Maintains the original
                                                                               HADB           snapshot view
                                                   HADB                                      of the database
                                                                              Snapshot
                                                                                         from the time of creation
                              Database Pages
           Database Files




                                                               V2                   V1
Instance
Tablediff command line utility
 Program FilesMicrosoft SQL Server90COMtablediff.exe

Tablediff identifies the data   usage: tablediff
                                     -- Source Options --
differences between two         -sourceserver
                                -sourcedatabase
                                                                     Source Host
                                                                     Source Database
tables                          -sourceschema
                                -sourcetable
                                                                     Source Schema Name
                                                                     Source Table or View
                                -sourceuser                          Source Login
Tables must have same           -sourcepassword                      Source Password
schema but can be on            -sourcelocked                        Lock the source table/view durring tablediff

different servers                    -- Destination Options --
                                -destinationserver                   Destination Host

Use the –f option to generate -destinationdatabase
                                -destinationschema
                                                                     Destination Database
                                                                     Destination Schema Name
a SQL Server script to fix the -destinationtable
                                -destinationuser
                                                                     Destination Table or View
                                                                     Destination Login
out of sync destination version -destinationpassword
                                -destinationlocked
                                                                     Destination Password
                                                                     Lock the destination table/view durring tablediff

The diff algorithm uses an           -- Misc Options --
                                -t                                    Timeout
efficient hash technique        -c                                    Column Level Diff
                                          -f                          Generate Fix SQL (You may also specify a file name and path)
                                          -q                          Quick Row Count
                                          -et                         Specify a table to put the errors into
                                          -dt                         Drop the error table if it exists
                                          -o                          Output file
                                          -b                          Number of bytes to read for blob data types (Default 8000)
                                          -strict    Strict compare of source and destination schema
                                          -rc                         Number of retries
                                          -ri                         Retry interval
Categorizing Availability On Solutions

High Availability              Solution
Requirement
System Administration          Online management
Recovery from application or   Logical recovery
user errors
Site disaster protection       Database or storage mirroring
Database workload scale out Replication
with redundancy
Site Disaster Protection
 Downtime Scenarios
   Earthquake, fire, or flood causes datacenter outage
 Always On Solutions
   Database Mirroring to a secondary site
     Optimized solution - allows very fast failover times to the
     secondary site
     Optionally add log shipping for additional site protection
   Third party geo-clustering solutions for data center
   storage level redundancy
     Find SQL Server Always On reviewed solutions at the
     Microsoft Always On website:
     www.microsoft.com/SQL/AlwaysOn
Database Mirroring
Synchronous mode
                                                           Mirror is always
              Application         Witness                  redoing—it remains
            Commit                                         current
Principal                                   Mirror




                1           5
                                  2
              SQL Server                         SQL Server

               2      >2          4                  3     >3

                Log        Data                      Log      Data
Database Mirroring – trade offs
 Hot-standby
    + Fastest failover (best RTO)
 Synchronous
    + No data loss (RPO=0)
    - Performance impact for commit

 Limited to one mirror per database
 Performance impact increases with number of mirrored
 databases
 No read access to mirror
Automatic Page Repair in DB Mirroring
Name
Title
Company
Categorizing Availability On Solutions

High Availability              Solution
Requirement
System Administration          Online management
Recovery from application or   Logical recovery
user errors
Site disaster protection       Database or storage mirroring
Database workload scale out Replication
with redundancy
Database Scale Out with Redundancy

  Scenario
    Real time reporting on one or more secondary
    servers that can also be used for disaster recovery
    Tier of identical databases for scaling out
    applications which are partitioned by site
  Solutions
    Transactional Replication
    Peer to Peer Replication
Database Scale Out with Redundancy
 Transactional Replication                   Peer to Peer Replication
Reporting + Redundancy                      Scale Out* + Redundancy

                                                Boston


New York                                                                England




                                                                    Shanghai
New Jersey




                                                                          Tokyo
                                              Seattle




                             *Application data modifications must be
                             partitioned by site to prevent conflicts
Peer-to-Peer Replication –
Enhancements in SQL Server 2008
Combining Technologies
                                                                                         Database
 Failover Clustering                                                     Replication     Scale Out
                                            Failover Clustering
      Local server redundancy                                                            For Queries


 Database Mirroring
      Primary disaster site for databases
                                                                    Database Mirroring
                                                                                           Hot
 Log Shipping
                                                                                           Standby
      Additional disaster sites for databases
      App/user error recovery                          Production
                                                       Database
 Replication                                                           Log Shipping
                                                                                           Warm
      Database reporting
      and read scale out                                                                   Standby
      with redundancy

 Always On Partner Solutions                                        Log Shipping
                                                                    With Restore Delay     App/User
      Highest hardware reliability
                                                                                           Error
                                                                                           Recovery
Summary - Unplanned Downtime
Redundancy Stack
    Application


  Query (Logical)     ‱ Replication



SQL Server Instance   ‱ Failover Clustering


                      ‱ Database Mirroring
  Log/Database        ‱ Log Shipping
    (Physical)        ‱ Backup and Restore


    Hardware          ‱ SAN/RAID
© 2009 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.

Weitere Àhnliche Inhalte

Was ist angesagt?

Oracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slidesOracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slides
Saiful
 
Windows command prompt a to z
Windows command prompt a to zWindows command prompt a to z
Windows command prompt a to z
Subuh Kurniawan
 

Was ist angesagt? (19)

ABAP Open SQL & Internal Table
ABAP Open SQL & Internal TableABAP Open SQL & Internal Table
ABAP Open SQL & Internal Table
 
Oracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slidesOracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slides
 
Meet HBase 1.0
Meet HBase 1.0Meet HBase 1.0
Meet HBase 1.0
 
Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013
 
Meet hbase 2.0
Meet hbase 2.0Meet hbase 2.0
Meet hbase 2.0
 
Rman Presentation
Rman PresentationRman Presentation
Rman Presentation
 
SQL Server 2014 In-Memory Tables (XTP, Hekaton)
SQL Server 2014 In-Memory Tables (XTP, Hekaton)SQL Server 2014 In-Memory Tables (XTP, Hekaton)
SQL Server 2014 In-Memory Tables (XTP, Hekaton)
 
221 Rac
221 Rac221 Rac
221 Rac
 
Oracle 12c Multi Tenant
Oracle 12c Multi TenantOracle 12c Multi Tenant
Oracle 12c Multi Tenant
 
Why virtual private catalog?
Why virtual private catalog?Why virtual private catalog?
Why virtual private catalog?
 
RMAN - New Features in Oracle 12c - IOUG Collaborate 2017
RMAN - New Features in Oracle 12c - IOUG Collaborate 2017RMAN - New Features in Oracle 12c - IOUG Collaborate 2017
RMAN - New Features in Oracle 12c - IOUG Collaborate 2017
 
Les 10 Tune Rman
Les 10 Tune RmanLes 10 Tune Rman
Les 10 Tune Rman
 
What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)
 
241 Rac
241 Rac241 Rac
241 Rac
 
Non-Relational Postgres
Non-Relational PostgresNon-Relational Postgres
Non-Relational Postgres
 
Windows command prompt a to z
Windows command prompt a to zWindows command prompt a to z
Windows command prompt a to z
 
Operating and supporting HBase Clusters
Operating and supporting HBase ClustersOperating and supporting HBase Clusters
Operating and supporting HBase Clusters
 
Sap abap tutorials
Sap abap tutorialsSap abap tutorials
Sap abap tutorials
 
Leveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN PerformanceLeveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN Performance
 

Andere mochten auch (6)

Kevin Ms Web Platform
Kevin Ms Web PlatformKevin Ms Web Platform
Kevin Ms Web Platform
 
Walther Mvc
Walther MvcWalther Mvc
Walther Mvc
 
HCI Consulting Inc. Corporate and Team Profile Brochure
HCI Consulting Inc. Corporate and Team Profile BrochureHCI Consulting Inc. Corporate and Team Profile Brochure
HCI Consulting Inc. Corporate and Team Profile Brochure
 
Harish Understanding Aspnet
Harish Understanding AspnetHarish Understanding Aspnet
Harish Understanding Aspnet
 
Walther Ajax4
Walther Ajax4Walther Ajax4
Walther Ajax4
 
Walther Aspnet4
Walther Aspnet4Walther Aspnet4
Walther Aspnet4
 

Ähnlich wie Admin High Availability

Visualizing a Database Structure with SchemaSpy
Visualizing a Database Structure with SchemaSpyVisualizing a Database Structure with SchemaSpy
Visualizing a Database Structure with SchemaSpy
Guo Albert
 
No sql solutions - êł”ê°œìš©
No sql solutions - êł”ê°œìš©No sql solutions - êł”ê°œìš©
No sql solutions - êł”ê°œìš©
Byeongweon Moon
 
3 installation-setup-of-r3
3 installation-setup-of-r33 installation-setup-of-r3
3 installation-setup-of-r3
sanganiraju
 
Hw09 Sqoop Database Import For Hadoop
Hw09   Sqoop Database Import For HadoopHw09   Sqoop Database Import For Hadoop
Hw09 Sqoop Database Import For Hadoop
Cloudera, Inc.
 
Hadoop and Hive Development at Facebook
Hadoop and Hive Development at FacebookHadoop and Hive Development at Facebook
Hadoop and Hive Development at Facebook
elliando dias
 
Hadoop and Hive Development at Facebook
Hadoop and Hive Development at  FacebookHadoop and Hive Development at  Facebook
Hadoop and Hive Development at Facebook
S S
 
Introduction to Hadoop
Introduction to HadoopIntroduction to Hadoop
Introduction to Hadoop
Ovidiu Dimulescu
 

Ähnlich wie Admin High Availability (20)

The Very Very Latest In Database Development - Lucas Jellema - Oracle OpenWor...
The Very Very Latest In Database Development - Lucas Jellema - Oracle OpenWor...The Very Very Latest In Database Development - Lucas Jellema - Oracle OpenWor...
The Very Very Latest In Database Development - Lucas Jellema - Oracle OpenWor...
 
Introduction to Sqoop Aaron Kimball Cloudera Hadoop User Group UK
Introduction to Sqoop Aaron Kimball Cloudera Hadoop User Group UKIntroduction to Sqoop Aaron Kimball Cloudera Hadoop User Group UK
Introduction to Sqoop Aaron Kimball Cloudera Hadoop User Group UK
 
Intro to sbt-web
Intro to sbt-webIntro to sbt-web
Intro to sbt-web
 
Spring 3 - Der dritte FrĂŒhling
Spring 3 - Der dritte FrĂŒhlingSpring 3 - Der dritte FrĂŒhling
Spring 3 - Der dritte FrĂŒhling
 
ŚžŚ™Ś›ŚŚœ
ŚžŚ™Ś›ŚŚœŚžŚ™Ś›ŚŚœ
ŚžŚ™Ś›ŚŚœ
 
Visualizing a Database Structure with SchemaSpy
Visualizing a Database Structure with SchemaSpyVisualizing a Database Structure with SchemaSpy
Visualizing a Database Structure with SchemaSpy
 
04.egovFrame Runtime Environment Workshop
04.egovFrame Runtime Environment Workshop04.egovFrame Runtime Environment Workshop
04.egovFrame Runtime Environment Workshop
 
ORACLE 9i
ORACLE 9iORACLE 9i
ORACLE 9i
 
No sql solutions - êł”ê°œìš©
No sql solutions - êł”ê°œìš©No sql solutions - êł”ê°œìš©
No sql solutions - êł”ê°œìš©
 
3 installation-setup-of-r3
3 installation-setup-of-r33 installation-setup-of-r3
3 installation-setup-of-r3
 
Hw09 Sqoop Database Import For Hadoop
Hw09   Sqoop Database Import For HadoopHw09   Sqoop Database Import For Hadoop
Hw09 Sqoop Database Import For Hadoop
 
Hadoop and Hive Development at Facebook
Hadoop and Hive Development at FacebookHadoop and Hive Development at Facebook
Hadoop and Hive Development at Facebook
 
Hadoop and Hive Development at Facebook
Hadoop and Hive Development at  FacebookHadoop and Hive Development at  Facebook
Hadoop and Hive Development at Facebook
 
Spring 3 - An Introduction
Spring 3 - An IntroductionSpring 3 - An Introduction
Spring 3 - An Introduction
 
Introduction to Hadoop
Introduction to HadoopIntroduction to Hadoop
Introduction to Hadoop
 
SF Big Analytics 20190612: Building highly efficient data lakes using Apache ...
SF Big Analytics 20190612: Building highly efficient data lakes using Apache ...SF Big Analytics 20190612: Building highly efficient data lakes using Apache ...
SF Big Analytics 20190612: Building highly efficient data lakes using Apache ...
 
Datastage details
Datastage detailsDatastage details
Datastage details
 
Four Things to Know About Reliable Spark Streaming with Typesafe and Databricks
Four Things to Know About Reliable Spark Streaming with Typesafe and DatabricksFour Things to Know About Reliable Spark Streaming with Typesafe and Databricks
Four Things to Know About Reliable Spark Streaming with Typesafe and Databricks
 
Replicate from Oracle to data warehouses and analytics
Replicate from Oracle to data warehouses and analyticsReplicate from Oracle to data warehouses and analytics
Replicate from Oracle to data warehouses and analytics
 
Sql server 2012 - always on deep dive - bob duffy
Sql server 2012 - always on deep dive - bob duffySql server 2012 - always on deep dive - bob duffy
Sql server 2012 - always on deep dive - bob duffy
 

Mehr von rsnarayanan

Harish Aspnet Dynamic Data
Harish Aspnet Dynamic DataHarish Aspnet Dynamic Data
Harish Aspnet Dynamic Data
rsnarayanan
 
Harish Aspnet Deployment
Harish Aspnet DeploymentHarish Aspnet Deployment
Harish Aspnet Deployment
rsnarayanan
 
Whats New In Sl3
Whats New In Sl3Whats New In Sl3
Whats New In Sl3
rsnarayanan
 
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...
rsnarayanan
 
Advanced Silverlight
Advanced SilverlightAdvanced Silverlight
Advanced Silverlight
rsnarayanan
 
Occasionally Connected Systems
Occasionally Connected SystemsOccasionally Connected Systems
Occasionally Connected Systems
rsnarayanan
 
Developing Php Applications Using Microsoft Software And Services
Developing Php Applications Using Microsoft Software And ServicesDeveloping Php Applications Using Microsoft Software And Services
Developing Php Applications Using Microsoft Software And Services
rsnarayanan
 
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...
rsnarayanan
 
J Query The Write Less Do More Javascript Library
J Query   The Write Less Do More Javascript LibraryJ Query   The Write Less Do More Javascript Library
J Query The Write Less Do More Javascript Library
rsnarayanan
 
Ms Sql Business Inteligence With My Sql
Ms Sql Business Inteligence With My SqlMs Sql Business Inteligence With My Sql
Ms Sql Business Inteligence With My Sql
rsnarayanan
 
Windows 7 For Developers
Windows 7 For DevelopersWindows 7 For Developers
Windows 7 For Developers
rsnarayanan
 
What Is New In Wpf 3.5 Sp1
What Is New In Wpf 3.5 Sp1What Is New In Wpf 3.5 Sp1
What Is New In Wpf 3.5 Sp1
rsnarayanan
 
Ux For Developers
Ux For DevelopersUx For Developers
Ux For Developers
rsnarayanan
 
A Lap Around Internet Explorer 8
A Lap Around Internet Explorer 8A Lap Around Internet Explorer 8
A Lap Around Internet Explorer 8
rsnarayanan
 
App Arch Guide (Dons)
App Arch Guide (Dons)App Arch Guide (Dons)
App Arch Guide (Dons)
rsnarayanan
 
Data Access Tech Ed India
Data Access   Tech Ed IndiaData Access   Tech Ed India
Data Access Tech Ed India
rsnarayanan
 
Federated Identity Architectures Integrating With The Cloud
Federated Identity Architectures   Integrating With The CloudFederated Identity Architectures   Integrating With The Cloud
Federated Identity Architectures Integrating With The Cloud
rsnarayanan
 
Pnp Agile Tech Ed India
Pnp Agile Tech Ed IndiaPnp Agile Tech Ed India
Pnp Agile Tech Ed India
rsnarayanan
 
Prism Tech Ed India
Prism Tech Ed IndiaPrism Tech Ed India
Prism Tech Ed India
rsnarayanan
 

Mehr von rsnarayanan (20)

Harish Aspnet Dynamic Data
Harish Aspnet Dynamic DataHarish Aspnet Dynamic Data
Harish Aspnet Dynamic Data
 
Harish Aspnet Deployment
Harish Aspnet DeploymentHarish Aspnet Deployment
Harish Aspnet Deployment
 
Whats New In Sl3
Whats New In Sl3Whats New In Sl3
Whats New In Sl3
 
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...
 
Advanced Silverlight
Advanced SilverlightAdvanced Silverlight
Advanced Silverlight
 
Netcf Gc
Netcf GcNetcf Gc
Netcf Gc
 
Occasionally Connected Systems
Occasionally Connected SystemsOccasionally Connected Systems
Occasionally Connected Systems
 
Developing Php Applications Using Microsoft Software And Services
Developing Php Applications Using Microsoft Software And ServicesDeveloping Php Applications Using Microsoft Software And Services
Developing Php Applications Using Microsoft Software And Services
 
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...
 
J Query The Write Less Do More Javascript Library
J Query   The Write Less Do More Javascript LibraryJ Query   The Write Less Do More Javascript Library
J Query The Write Less Do More Javascript Library
 
Ms Sql Business Inteligence With My Sql
Ms Sql Business Inteligence With My SqlMs Sql Business Inteligence With My Sql
Ms Sql Business Inteligence With My Sql
 
Windows 7 For Developers
Windows 7 For DevelopersWindows 7 For Developers
Windows 7 For Developers
 
What Is New In Wpf 3.5 Sp1
What Is New In Wpf 3.5 Sp1What Is New In Wpf 3.5 Sp1
What Is New In Wpf 3.5 Sp1
 
Ux For Developers
Ux For DevelopersUx For Developers
Ux For Developers
 
A Lap Around Internet Explorer 8
A Lap Around Internet Explorer 8A Lap Around Internet Explorer 8
A Lap Around Internet Explorer 8
 
App Arch Guide (Dons)
App Arch Guide (Dons)App Arch Guide (Dons)
App Arch Guide (Dons)
 
Data Access Tech Ed India
Data Access   Tech Ed IndiaData Access   Tech Ed India
Data Access Tech Ed India
 
Federated Identity Architectures Integrating With The Cloud
Federated Identity Architectures   Integrating With The CloudFederated Identity Architectures   Integrating With The Cloud
Federated Identity Architectures Integrating With The Cloud
 
Pnp Agile Tech Ed India
Pnp Agile Tech Ed IndiaPnp Agile Tech Ed India
Pnp Agile Tech Ed India
 
Prism Tech Ed India
Prism Tech Ed IndiaPrism Tech Ed India
Prism Tech Ed India
 

KĂŒrzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

KĂŒrzlich hochgeladen (20)

JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 

Admin High Availability

  • 1.
  • 2. Amit Bansal CTO eDominer Systems P Ltd | Peopleware India
  • 3. Who is Amit Bansal? CTO, eDominer Systems & Peopleware India Conducted more than 200 workshops on SQL Server & BI for top notch IT companies world wide Microsoft MVP for SQL Server Microsoft Certified Trainer Advisory Council member Speaker at TechED India, TechED US & TechED Europe Technical Reviewer – MSL courses on SQL Server SME – SQL Server 2008 certifications UG Lead (Delhi NCR) – Culminis Manager – www.WeTogether.in, www.DelhiDevs.com, www.BlogB oard.in
  • 4. Agenda? --- TODO Intro to High-Availability/DR Key Terms Always On Technologies Overview, Planned / Unplanned downtime When to use Enhancements in SQL Server 2008 Combining Technologies Summing it up
  • 5. What is Availability? Availability is defined by an implicit or explicit application specific Service Level Agreement Example The ordering system is considered available when orders can complete in less than one minute. The maximum downtime acceptable is five minutes per month. Downtime = the amount of time when the SLA is not met Typically uptime is tracked (i.e. 99.993%), which doesn’t include the “planned” downtime The SLA should be used during design, deployment, and production monitoring phases of the application lifecycle
  • 6. Intro to Disaster Recovery Processes and procedures designed to restore business operations due to a natural or human- induced disaster Typically involves providing redundancy spanning multiple sites or across geographic regions
  • 7. Key Terms SLA Metrics: Recovery Point Objective (RPO) = data loss How much data can you lose? guided by criticality of application data Recovery Time Objective (RTO) = downtime How much downtime can you tolerate? guided by availability requirements Local High-Availability (Local HA) Site Disaster Recovery (Site DR)
  • 8. Always On Technologies Unplanned Downtime SAN/RAID Backup and Restore Log Shipping Database Mirroring Failover Clustering Replication Planned Downtime Rolling Upgrades and Patching Online Operations Resource Governor Database Snapshots
  • 9. Always On Availability Scenarios System Administration Upgrades, Index rebuilds
 Logical Errors (User or Application) Incorrect data modifications, accidental changes
 Site Disaster Hurricanes, fires
 Hardware Failures Memory, network, disks
 Software Failures Bugs
  • 10. Categorizing Availability On Solutions High Availability Solution Requirement System Administration Online management Recovery from application or Logical recovery user errors Site disaster protection Database or storage mirroring Database workload scale out Replication with redundancy
  • 11. Online Management Downtime Scenarios Applying a patch or upgrade Moving a table as part of system maintenance Deploying a new version of an application Recovering from a corrupted data file Always On Solutions Rolling Upgrades utilizing Database Mirroring, Log Shipping, or Replication Fast recovery Online alter table, index create, index rebuild Online granular restore
  • 12. Categorizing Availability On Solutions High Availability Solution Requirement System Administration Online management Recovery from application or Logical recovery user errors Site disaster protection Database or storage mirroring Database workload scale out Replication with redundancy
  • 13. Recovery from User or Application Errors Downtime Scenarios A table is accidentally dropped An application makes incorrect updates to data A user possibly made unauthorized changes to data Always On Solutions View point in time snapshots of the system Take database snapshots at intervals Log ship to another site using restore delay/standby options Compare table to older version using tablediff utility Track history of DML statements Use SQL Trace or customized replication
  • 14. Log Shipping How it works Update orders set
. Primary Instance Secondary Instance Primary Secondary DB Log Log DB Backup Restore Transaction Log Backup Transaction Log Backup Log Backup Transaction Log Backup Transaction Log Backup Transaction Log Backup Transaction Log Backup Copy Transaction Log Backup Transaction Log Backup
  • 15. SQL Server - Database Snapshots Create database “HADB Snapshot” on ( filename=<files>) as snapshot of “HADB” Update orders Select from orders set
. where
 Maintains the original HADB snapshot view HADB of the database Snapshot from the time of creation Database Pages Database Files V2 V1 Instance
  • 16. Tablediff command line utility Program FilesMicrosoft SQL Server90COMtablediff.exe Tablediff identifies the data usage: tablediff -- Source Options -- differences between two -sourceserver -sourcedatabase Source Host Source Database tables -sourceschema -sourcetable Source Schema Name Source Table or View -sourceuser Source Login Tables must have same -sourcepassword Source Password schema but can be on -sourcelocked Lock the source table/view durring tablediff different servers -- Destination Options -- -destinationserver Destination Host Use the –f option to generate -destinationdatabase -destinationschema Destination Database Destination Schema Name a SQL Server script to fix the -destinationtable -destinationuser Destination Table or View Destination Login out of sync destination version -destinationpassword -destinationlocked Destination Password Lock the destination table/view durring tablediff The diff algorithm uses an -- Misc Options -- -t Timeout efficient hash technique -c Column Level Diff -f Generate Fix SQL (You may also specify a file name and path) -q Quick Row Count -et Specify a table to put the errors into -dt Drop the error table if it exists -o Output file -b Number of bytes to read for blob data types (Default 8000) -strict Strict compare of source and destination schema -rc Number of retries -ri Retry interval
  • 17. Categorizing Availability On Solutions High Availability Solution Requirement System Administration Online management Recovery from application or Logical recovery user errors Site disaster protection Database or storage mirroring Database workload scale out Replication with redundancy
  • 18. Site Disaster Protection Downtime Scenarios Earthquake, fire, or flood causes datacenter outage Always On Solutions Database Mirroring to a secondary site Optimized solution - allows very fast failover times to the secondary site Optionally add log shipping for additional site protection Third party geo-clustering solutions for data center storage level redundancy Find SQL Server Always On reviewed solutions at the Microsoft Always On website: www.microsoft.com/SQL/AlwaysOn
  • 19. Database Mirroring Synchronous mode Mirror is always Application Witness redoing—it remains Commit current Principal Mirror 1 5 2 SQL Server SQL Server 2 >2 4 3 >3 Log Data Log Data
  • 20. Database Mirroring – trade offs Hot-standby + Fastest failover (best RTO) Synchronous + No data loss (RPO=0) - Performance impact for commit Limited to one mirror per database Performance impact increases with number of mirrored databases No read access to mirror
  • 21. Automatic Page Repair in DB Mirroring Name Title Company
  • 22. Categorizing Availability On Solutions High Availability Solution Requirement System Administration Online management Recovery from application or Logical recovery user errors Site disaster protection Database or storage mirroring Database workload scale out Replication with redundancy
  • 23. Database Scale Out with Redundancy Scenario Real time reporting on one or more secondary servers that can also be used for disaster recovery Tier of identical databases for scaling out applications which are partitioned by site Solutions Transactional Replication Peer to Peer Replication
  • 24. Database Scale Out with Redundancy Transactional Replication Peer to Peer Replication Reporting + Redundancy Scale Out* + Redundancy Boston New York England Shanghai New Jersey Tokyo Seattle *Application data modifications must be partitioned by site to prevent conflicts
  • 26. Combining Technologies Database Failover Clustering Replication Scale Out Failover Clustering Local server redundancy For Queries Database Mirroring Primary disaster site for databases Database Mirroring Hot Log Shipping Standby Additional disaster sites for databases App/user error recovery Production Database Replication Log Shipping Warm Database reporting and read scale out Standby with redundancy Always On Partner Solutions Log Shipping With Restore Delay App/User Highest hardware reliability Error Recovery
  • 27. Summary - Unplanned Downtime Redundancy Stack Application Query (Logical) ‱ Replication SQL Server Instance ‱ Failover Clustering ‱ Database Mirroring Log/Database ‱ Log Shipping (Physical) ‱ Backup and Restore Hardware ‱ SAN/RAID
  • 28.
  • 29.
  • 30. © 2009 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.