SlideShare ist ein Scribd-Unternehmen logo
1 von 53
Downloaden Sie, um offline zu lesen
SQL Saturday 2009 – Portland, Oregon
HA cover




Copyright 2009 – Database Architechs
       www.dbarchitechs.com
Paul Bertucci
•   Founder Database Architechs – www.dbarchitechs.com
     – Specializing in HA, Database Design, Data Architecture, Data Replication, and P&T for SQL
       Server, Sybase, DB2 and Oracle
     – Over 28+ years experience in Data Base industry
•   Co-Author of SQL Server 2000 Unleashed! (SAMS)
•   Co-Author of SQL Server 2005 Unleashed! (SAMS)
•   Co-Author of SQL Server 2008 Unleashed! (SAMS) – Summer 2009 !
•   Co-Author of ADO.NET in 24 hours (SAMS)
•   Author MS SQL Server High Availability (SAMS)
•   Author Sybase Performance & Tuning
•   Author Sybase Physical DB Design
•   Veritas SQL Server Performance Series
•   Former Chief Data Architect Symantec Corporation
•   Current Chief Architect Autodesk Corporation

                                  pbertucci@dbarchitechs.com




                                    Copyright 2009 – Database Architechs
                                           www.dbarchitechs.com
Agenda
What is High Availability?

How do you assess your HA Requirements?

What are the MS SQL Server related options for HA?

How each option delivers HA…

Performance and Tuning is critical too – SQL Shot!

Q&A
              Copyright 2009 – Database Architechs
                     www.dbarchitechs.com
Test

1. What is the quickest way to test if your SQL Server Clustering
   configuration is failing over properly?

2. What is the SQL Server feature in SQL Server 2005/2008
   that replaces Log Shipping?




                       Copyright 2009 – Database Architechs
                              www.dbarchitechs.com
What is Availability?
         Application
         Availability


                                                          Failure causes:
           Planned Unplanned                              - Human
Uptime                                                    - Hardware
          Downtime Downtime                               - Software



                 Recoverable Disaster



                   Copyright 2009 – Database Architechs
                          www.dbarchitechs.com
The cost of Un-Availability
Airline Reservation Systems - $67K to $112K per hour

ATM Service Fees - $12K to $17K per hour

Brokerage (Retail) - $5.6M to $7.3M per hour



        What is your cost of downtime?




                Copyright 2009 – Database Architechs
                       www.dbarchitechs.com
Across all layers of your systems
Network
   Application
     Middleware
        Database
                                                          HARDWARE
             Operating System                          Network Components
                                                             Servers
                                                          Disk Systems
                                                            Memory




                Copyright 2009 – Database Architechs
                       www.dbarchitechs.com
Availability across planned operation

              100%
                                                                         Availability Goals

               90%
                Availability (%)




                                   Feb 14-28         Mar 1 – Apr 15            Apr 16 – 20


           Starting Date Date of Failure            Days      Hours   Minutes MBU (minutes)      TU       Avail %
Period 1         2/14/2008    2/28/2008              15.00      24.00    60.00     21600.00       38.00   99.82407
Period 2          3/1/2008    4/15/2008              46.00      24.00    60.00     66240.00       68.00   99.89734
Period 3         4/16/2008    4/20/2008               5.00      24.00    60.00      7200.00      442.00   93.86111

Overall         2/14/2008              4/20/2008      66.00      24.00       60.00    95040.00   548.00    99.4234
                                            Copyright 2009 – Database Architechs
                                                   www.dbarchitechs.com
Availability Continuum
                                            Characteristic               Availability Range

   Extreme Availability                   Near zero downtime!             (99.5% - 100%)


     High Availability                      Minimal downtime              (95% - 99.4%)


   Standard Availability                   With some downtime             (83% - 94%)
                                                tolerance



  Acceptable Availability                Non-critical Applications        (70%-82%)



   Marginal Availability               Non-production Applications        (up to 69%)



Availability Range describes the percentage of time relative to the “planned” hours of operations

               8,760 hours/year | 168 hours/week | 24 hours/day
      525,600 minutes/year | 7,200 minutes/week | 1,440 minutes/day
                                  Copyright 2009 – Database Architechs
                                         www.dbarchitechs.com
Applications and Availability                     Extreme Availability
                                                          High Availability       ATM
  Zero                                 Standard Availability
 Planned                                                                   eCommerce 911
Downtime                                                                  email
                      Acceptable Availability
                                                                                  Inventory
                                                                Accounting          Mgmt
           Marginal Availability
                                                     HR

                                   Marketing
                                    Mailers




                                                                                                Zero
                                                                                              Unplanned
                                                                                              Downtime
                   Five 9’s (99.999%) ~ 6 minutes/year downtime
                                   Copyright 2009 – Database Architechs
                                          www.dbarchitechs.com
What do you need?
It’s as simple as 1, 2, 3 +

    Step One – Launch of a brief “Phase 0” HA Assessment

    Step Two – Complete an HA Primary Variables gauge

    Step Three – Match your need to the optimal HA solution

    Step + (optional) – Determine the ROI of the HA solution




                        Copyright 2009 – Database Architechs
                               www.dbarchitechs.com
Assessing HA with Primary Variables
0%                                                                         100%
        Uptime Requirement
Long                                                                      Short
        Time to Recover
High                                                                       Low
        Tolerance of Recovery Time
Low                                                                       High
        Data Resiliency
Low                                                                       High
        Application Resiliency
Low                                                                        High
        Degree of Distributed Access/Synchronization
Often                                                                     Never
        Scheduled Maintenance Frequency
Low                                                                        High
        Performance/Scalability
Low                                                                        High
        Cost of Downtime ($$ lost/hr)
Low                                                                        High
        Cost of the High Availability Solution ($$)
                                   Copyright 2009 – Database Architechs
                                                 www.dbarchitechs.com
Development Methodology
                                     “With High Availability built in”
          Assessment
          Assessment
            (scope)
             (scope)                                         3. Code & Test
                                                             - Code Development/Unit Testing
                                                             - Fully integrate the HA solution with the application
0. Assessment             Requirements
                           Requirements                                     4. System Test & Acceptance
- Project Planning                                                          - Full system Test/User Acceptance
- Project Sizing                                                            - Full HA Test/Validation/Acceptance
- Deliverables Identified (SOW)
- Schedules/milestones
                                         Design
                                         Design                                       5. Implementation
                                                                                      - Production Build/Implementation
- High-Level Requirements (scope)
                                                                                      - Production HA build/monitoring begins
- Estimate HA Primary Variables (gauges)

    1. Requirements                                       Code & Test
                                                          Code & Test
    - Detail Requirements (process/data/technology)
    - Early Prototyping (optional)
    - Detailed HA Primary Variables                                         System Test &
                                                                             System Test &
    - Detailed Service Level Agreements/Rqmts                                 Acceptance
    - Detailed Disaster Recovery requirements
                                                                               Acceptance


                  2. Design                                                              Implementation
                                                                                          Implementation
                  - Detail Design (data/process/technology)
                  - Choose and design the matching HA
                  solution for the application Copyright 2009 – Database Architechs
                                                         www.dbarchitechs.com
Spiral/Rapid Methodology
                                                  Iterative approach                                             0. Initial assessment
                                                                                                                 - Project Planning
7. Implementation                                                                                                - Project Sizing
- Production Build/Implementation                                                                                - Deliverables Identified (SOW)
- Production HA build/monitoring begins                                                                          - Schedules/milestones
                                                                                                                 - High-Level Functions (scope)
                                    Transition                                                 Inception         -Estimate HA Primary
                                                                                                                   Variables (gauges)

                                                                                                                 3. Requirements
6. System Test & Acceptance                                                                                      - Detail Requirements
- Full system Test/User                                                                                            (process/data/technology)
  Acceptance                                                                                                     - Detail HA Primary Variables
-Full HA Test/Validation                                                                                         - Detailed SLA/Rqmts
 /Acceptance                                                                                                     - Detailed Disaster
                                                                                                                   Recovery requirements




5. Code & Test                                                                                                   1. High-level Rqmts/Prototyping
- Code Development/Unit Testing                                                                                  - High-level requirements
-Fully integrate the HA solution                                                                                   (process/data/technology)
 with the application                                                                                            - High-level HA Primary Variables
                                    Construction                            Elaboration/Prototype
                       2. Early Code & Test                                                    4. Design
                       - Early code and testing of apps/DI                                     - Detail Designs (process/data/technology)
                         (process/data/technology)      Copyright 2009 – Database Architechs   - Choose and design the matching HA solution
                       - Prototyping of HA options             www.dbarchitechs.com              for the application (verified via prototypes)
Valid High Availability Options

               Disk     Other   Cluster          Data        SQL         DB         Log
              Methods    HW     Services       Replication Clustering Mirroring   Shipping

 Disk
Methods

  Other
   HW

Cluster
Services

  Data
Replication

  SQL
Clustering

   DB
Mirroring

  Log
Shipping                        Copyright 2009 – Database Architechs
                                       www.dbarchitechs.com
MSCS Cluster Services

                                                               C:
                                                                      Local
                                                                     Binaries
          Windows 2003
Node A   Enterprise Edition                                     Cluster Group
                                                                 Resources
                                                                D:



                                                                          Shared
                                                        SCSI
                                                                           Disk

                                                                    Q: Quorum




          Windows 2003
Node B   Enterprise Edition                                    C:
                 Copyright 2009 – Database Architechs                 Local
                        www.dbarchitechs.com                         Binaries
SQL
                     SQL Clustering
Connections                                                                   COLTST1
                                                                        C:
                                                                               Local
                                                                              Binaries
                     Windows 2003
                    Enterprise Edition                                        Cluster Group
                                                                               Resources
               SQL Server 2008 (physical)
                                                                         E:               MS DTC

                                                                                  Master DB
               SQL Server 2008                                   SCSI             TempDB
              (Virtual SQL Server)                                                Appl 1 DB
              VSQLDBARCHVSQLSRV1
                                                                    Q:              Quorum
                                                                                     Disk
                SQL Server 2008 (physical)                                               SQL Agent

                     Windows 2003                                              COLTST2
                    Enterprise Edition                                  C:
                          Copyright 2009 – Database Architechs                 Local
                                 www.dbarchitechs.com                         Binaries
Data Replication
                                                      Can be used as a Warm Standby
                                                        and/or for Reporting needs
      “Primary”
      SQL Server 2008
                                                                    “Replicate”
                                                                    SQL Server 2008
Publication                                                         Subscription
              Adventure                                               Server
  Server
               Works                                                AdventureWorks




Distribution
   Server    distribution
                                                                          “Replicate”
                                                                           SQL Server 2008
       SQL Server 2008                                                    Subscription
                                                                            Server
                            Central Publisher/                             AdventureWorks

                            Remote Distributor
                            Replication model
                             Copyright 2009 – Database Architechs
                                    www.dbarchitechs.com
Database Mirroring
             Client          Client     Client      Client


                                Network

                      A

    SQL Server 2008                              SQL Server 2008
Database                                         Mirror Server

MirroringAdventure
 Principal
           Works DB
                           D                       Adventure
                                                               D
   Server                             B            Works DB
                translog                            translog
                                           C


                               SQL Server 2008


                           Witness
                                       MSDB DB
                           Server
Database Mirroring
                     with DB Snapshots
     SQL Server 2008                                 SQL Server 2008
                                                   Mirror Server
20FIG34      AdventureWorks                         AdventureWorks
 Principal
                  DB                                     DB
  Server
                translog                               translog
                                                           Database Snapshot




                                 SQL Server 2008




                                                                                 rk
                                                                                rk


                                                                                 s
                                                                              oo
                              Witness




                                                                              er
                                                                             tw
                                                                            tw


                                                                           Us
                                         MSDB DB




                                                                           Ne
                              Server




                                                                         Ne

                                                                        ng
                                                                    rti
                                                                 po
                                                              Re
Log Shipping
                                        “Source”
                                      SQL Server 2008                                             “Destination”
                                                                                                   SQL Server 2008
                                                                   TxnLog
                                  Primary     CallOne DB           backups                        Secondary
                                   Server                                                           Server
                                               translog
                                                                                                   CallOne DB
                                    BackupCallOne_tlog_200405141120.TRN
Last log shipped
                   Delay Answer




                                                 LogShareCallOne_tlog_200405141120.TRN                   TxnLog
                                  TxnLog
                                   Copies                                                                  Restores
                                                                          “Monitor”
                                                                        SQL Server 2008                   Delay between
                                                                                                           logs loaded
                                                                                                           Delay Answer
                                                                  Monitor
                                                                                       MSDB DB
                                                                  Server

                                                           Copyright 2009 – Database Architechs
                                                                  www.dbarchitechs.com
RAID Disk I/O Summary

    RAID Level    Fault Tolerance           Logical        Physical I/Os       Logical         Physical
                                              Reads               per            Writes     I/Os per Write
                                                                 Read
     RAID 0             None                    1                  1             1                 1



   RAID 1 or 10         Best                    1                  1             1             2 writes
                  (Optimal for OLTP)


     RAID 5            Moderate                 1                  1             1         2 reads + 2 writes
                  (Optimal for mostly                                                     (that’s 4 per write!)
                       READ ONLY
                         systems)


NOTE:
   Several RAID vendors are now showing RAID 5 and RAID 10
       performance almost equivalent now via Cache/Buffer
             advancements on their RAID controllers
                                        Copyright 2009 – Database Architechs
                                               www.dbarchitechs.com
Fault Tolerance and SQL DB Files
                                         Description                       Fault Tolerance
 Quorum Drive     The quorum drive used with MSCS should be                   RAID 1 or
                     isolated to a drive by itself (very often mirrored       RAID 10
                     as well for maximum availability)
SQL Server        For OLTP (online transaction processing) systems,           RAID 10
   Database           the database data/index files should be placed
   files (OLTP)       on a RAID 10 disk system.

SQL Server        For DSS (Decision Support Systems) systems that              RAID 5
   Database           are primarily READ ONLY, the database
   files (DSS)        data/index files should be placed on a RAID 5
                      disk system.
Temp DB           Highly volatile disk I/O (when not able to do all it’s      RAID 10
                      work in cache)
SQL Server     The SQL transaction log files should be on their own           RAID 10
   Transaction    mirrored volume for both performance and                      Or
   Log files      database protection. (for DSS systems, this                 RAID 1
                      could be RAID 5 also).
                                   Copyright 2009 – Database Architechs
                                          www.dbarchitechs.com
Example DB data files configuration
                                                                     E:
                                                                                  RAID 5
 Master DB
log
       DSS - DB                                                      F:
      (read only)

  TempDB
                                                                                  RAID 10
log
                                                                     G:
 OLTP X - DB

log
OLTP Y - DB                                                          H:



                                                                                  RAID 1 or
                                                                                   RAID 10

                                                                      Q: Quorum
                              Copyright 2009 – Database Architechs
                                     www.dbarchitechs.com
Decision Tree approach

                      Condition/Question
          Case A Case B Case C Case D                      . . . Case n
           Action Action Action Action                      . . . Action
             V      W      X      Y                                      Z




 Disk     Other   Cluster      Data        SQL      Database    Log    Distributed
Methods    HW     Services   Replication Clustering Mirroring Shipping Transactions
                                  Copyright 2009 – Database Architechs
                                         www.dbarchitechs.com
                                      Database Snapshots
Decision-Tree Path Traversal

                                                                    SQL
                                                                  Clustering          Database
             Cluster                                                                  Snapshots
             Services
                                   1a2c3        1a2d3
                                                         1a2e3
                        1a2b3                                                     Database
                                       b c d                                      Mirroring
                                      a 1a2 e
                        1a2a3

    HA
                                            a    b 1b2
                             1e2
                                        e 1 c
Not Needed                                d
                                                     1c2                         Log
                                      1d2                                      Shipping


      HW/Disk
     Redundancy                                                       Data
                                Distributed                         Replication
                                Transactions
                           Copyright 2009 – Database Architechs
                                  www.dbarchitechs.com
Decision-Tree: ASP Questions 1-3
1
                What % of availability must your application have?
A% <= 70%            70% < A% < =83%        83 < A% < =95%           95% < A% < =99.5%   A%> 99.5%


     Marginal         Acceptable               Standard                 High              Extreme
    Availability      Availability            Availability            Availability       Availability

2
                How much tolerance of downtime by end-users?
    Very High            High                  Medium                         Low         Very Low


       Not               Low                   Standard                  High             Extremely
      Critical         Criticality             Criticality             Criticality         Critical


3
         What is the per hour cost of downtime for this application?
    $C<= $3K         $3K < $C < =$7K        $7K < $C < =$12K        $12K < $C < =$20K    $C > $20K


    Very Low               Low                 Moderate                       High       Very High
      Cost                 Cost                 Cost                          Cost         Cost
                                       Copyright 2009 – Database Architechs
                                              www.dbarchitechs.com
Decision-Tree: ASP Questions 4-6
4
            How long does it take to get the application back online?
    Very Long          Long              Average                    Short        Very Short


  Marginal      Acceptable      Standard         Fast         Extreme
Recoverability Recoverability Recoverability Recoverability Recoverability


5
                 How much of the application is distributed?
     None             A Little           Medium                         A Lot       All


       Non-             Low             Moderately                 High         Extremely
    Distributed      Distribution       Distributed             Distribution    Distributed


6
                How much data inconsistency can be tolerated?
Very Little           A Little            Medium                    A Lot       Very Much


Very High               High            Moderate      Low                        Minimal
Consistency          Consistency       Consistency Consistency                  Consistency
                                 Copyright 2009 – Database Architechs
                                        www.dbarchitechs.com
Decision-Tree: ASP Questions 7-9
7
                 How often is scheduled maintenance required?
    Very Often          Often             Average                 Not Often         Rarely


    Very High            High            Reasonable                 Low             Minimal
    Downtime           Downtime          Downtime                 Downtime         Downtime

8
               How important is high performance and scalability?
     Not Very          Somewhat           Moderately              Very Much         Extremely


 Very low       Low     Reasonable      High      Extreme
Performance Performance Performance Performance Performance

9
       How important is the application connection to the end-user?
    Not Very          Somewhat           Moderately             Very Much          Extremely

                                          Connection                Connection     Connection
        Not           Establish new
                                         Re-established            Retry process    Fail-over
       Needed          Connection            easily
                                  Copyright 2009 – Database Architechs
                                         www.dbarchitechs.com
Decision-Tree: ASP Question 10
10
          What is the estimated cost of the HA Solution (budget)?
     C$ < $10K        $10K <= C$ < $100K   $100K <= C$ < $250K    $250K <= C$ < $500K   C$ >= $500K


     Very Low               Low               Moderate                   High            Extreme
       Cost                 Cost               Cost                      Cost             Cost


        1.       1e Extreme Availability goal
        2.       1e+2d Very low tolerance of downtime
        3.       1e+2d+3e $15k/hr cost of downtime (High Cost)
        4.       1e+2d+3e+4c Average recovery time
        5.       1e+2d+3e+4c+5a No distributed components or synchronization
        6.       1e+2d+3e+4c+5a+6b A little data inconsistency can be tolerated
        7.       1e+2d+3e+4c+5a+6b+7c Average amount of scheduled downtime
        8.       1e+2d+3e+4c+5a+6b+7c+8d Performance is very much important
        9.       1e+2d+3e+4c+5a+6b+7c+8d+9b Connection can be re-established
        10.      1e+2d+3e+4c+5a+6b+7c+8d+9b+10c Moderate HA Cost/Good budget

                   Best fitting HA Solution (together)


             Disk           Other        Cluster                               SQL
                                  Copyright 2009 – Database Architechs
            Methods         HW           Services
                                         www.dbarchitechs.com                Clustering
Basic “one-two” Punch approach

1                        Build the proper foundation first

      Hardware/Network           Disk Backups             Vendor            Training, QA,   Software
        Redundancy               DB Backups                SLA’s            & Standards     Upgrades



               Then, build within the appropriate HA solution
2
                       that your application requires

     Disk     Other   Cluster      Data        SQL      Database    Log    Distributed
    Methods   HW      Services   Replication Clustering Mirroring Shipping Transactions

                                           Database Snapshots




                                     Copyright 2009 – Database Architechs
                                            www.dbarchitechs.com
ASP – Scenario #1 with SQL Clustering
                                                                                                     ASPProd1
                                                                                              C:
                                                                                                      Local
                                                                                                     Binaries
                                            Windows 2003 MSCS
                                           Enterprise Edition                                        Cluster Group
                                                                                                      Resources
    JRUN/WebServices/IIS



                                      SQL Server 2005 (physical)
                                                                                                                Master DB
                                                                                               E:
                           Network




                                                                                                                TempDB
                                      SQL Server 2005                                  SCSI    F:
                                     (Virtual SQL Server)
                                           ASQLASPSERV1                                                        HOE DB
                                                                                               G:
                                                                                                                 MS DTC
                                                                                          Q: Quorum
                                      SQL Server 2005 (physical)                                                SQL Agent
                                                                                                   Disk
                                           Windows 2003
                                          Enterprise Edition MSCS                             C:
                                                                                                      ASPProd2
Active/Passive                                  Copyright 2009 – Database Architechs                  Local
                                                                                                     Binaries
Configuration                                          www.dbarchitechs.com
Log Shipping
                                        “Source”
                                      SQL Server 2000                                             “Destination”
                                                                                                   SQL Server 2000
                                                                   TxnLog
                                  Primary     CallOne DB           backups                        Secondary
                                   Server                                                           Server
                                               translog
                                                                                                   CallOne DB
                                    BackupCallOne_tlog_200405141120.TRN
Last log shipped
                   Delay Answer




                                                 LogShareCallOne_tlog_200405141120.TRN                   TxnLog
                                  TxnLog
                                   Copies                                                                  Restores
                                                                          “Monitor”
                                                                        SQL Server 2000                  Delay between
                                                                                                          logs loaded
                                                                                                          Delay Answer
                                                                  Monitor
                                                                                       MSDB DB
                                                                  Server

                                                           Copyright 2009 – Database Architechs
                                                                  www.dbarchitechs.com
North America
                                                        (Reporting & “warm/hot” spare)
                                                                         SQL Server 2000
Headquarters (Santa Clara)                                               Subscription
        SQL Server 2000                                                    Server
      Live REPL                                                            MktgDB
   Publication
        solution
     Server     MktgDB
                                                                     Europe (Reporting)
                                                                         SQL Server 2000
                                                                         Subscription
  Distribution                                                             Server
     Server    distribution                                                MktgDB


        SQL Server 2000
                                                                     Far East (Reporting)
                                                                         SQL Server 2000
 Central Publisher/                                                      Subscription
 Remote Distributor                                                        Server
 Replication model                                                         MktgDB
                              Copyright 2009 – Database Architechs
                                     www.dbarchitechs.com
SQL Server 2000
                     Central Publisher                       SQL Server 2000
Subscription          (default option)                      Subscription
  Server                                                      Server
  Northwind               SQL Server 2000                      Northwind


                  Publication
                     Server            Northwind




                  Distribution
                     Server    distribution




    Oracle                                                   SQL Server 7.0
Subscription                                                Subscription
  Server                                                      Server
  Northwind                                                   Northwind
                     Copyright 2009 – Database Architechs
                            www.dbarchitechs.com
Central Publisher
SQL Server 2000                                              SQL Server 2000
Subscription      Remote Distributor                        Subscription
  Server                                                      Server
  Northwind               SQL Server 2000                      Northwind


                  Publication
                     Server            Northwind




                  Distribution
                     Server    distribution


                             SQL Server 2000

    Oracle                                                   SQL Server 7.0
Subscription                                                Subscription
  Server                                                      Server
  Northwind                                                   Northwind
                     Copyright 2009 – Database Architechs
                            www.dbarchitechs.com
Data Access     Latency   Autonomy
                                  Distributing Data
                                        Sites
                                     (locations)
                                                 Frequency   Network   Machines Owner              Other         REPLICATION


Read Only                                                                                     Each site only     Central Publisher
                 short     high       many         high       fast/        1       1 OLTP needs regional         Transactional repl
Reporting                                                     stable   server/site
                  Database Mirroring                                                 site data                   filter by region



Read Only                                                                                     Each site only     Central Publisher
                                                              fast/        1                                     Snapshot repl
Reporting        long      high       many         low                             1 OLTP needs regional
                                                              stable   server/site
                  Database Mirroring                                                 site data                   filter by region


Read Mostly                                                                                   Regional updates   Central Publisher
                                                              fast/        1                                     Transactional repl
A few updates    short     high       < 10       medium                            1 OLTP on one table
                                                              stable   server/site   site                        Updating Subs


Read Mostly                                                                                   Regional update    Central Publisher
                                                             slow/        1           All                        Merge repl
A few updates medium       high       < 10       medium
                                                             unreliab server/site    update
                                                                                            all tables


 Read equal                                                                                   Regional update     Peer-to-Peer
                                                             fast/         1          All                         Transactional
Equal updates short        high       < 10       medium                                     all tables
                                                             stable    server/site   update                           repl



  Inserts                                                                              1      Each site only     Central Subscriber
                 short     high       many         high       fast/        1                                     Transactional repl
(new orders)                                                                         report   needs regional
                                                              stable   server/site            data
                                                                                      site


                                                                                                                 Central Publisher
Hot/Warm         Very                                         fast/        1                   Fail-over         Remote Distributor
                           high       <2           high                            1 OLTP
   Spare         short                                        stable   server/site                               Transactional repl
                                                                                     site
                   Database Mirroring
Foundation, Foundation, Foundation
                   Piecing it together
Hardware/Network   Disk Backups             Vendor            Training, QA,   Software
  Redundancy       DB Backups                SLA’s            & Standards     Upgrades




    Network
       Application
         Middleware
            Database
                                                                 HARDWARE
                Operating                                     Network Components
                 System                                             Servers
                                                                 Disk Systems
                          ck                                       Memory
                      Sta
              ystem
             S         Copyright 2009 – Database Architechs
                              www.dbarchitechs.com
ROI
Calculati
   on




            Copyright 2009 – Database Architechs
                   www.dbarchitechs.com
Database Mirroring

Transparent Client Redirect
                                                  Network

                                     A

                 SQL Server 2008                                                  SQL Server 2008

                                                                                Mirror Server
              Principal       Applx DB    D
                                                                                  Applx DB     D
               Server                                        B
                              translog                                             translog

                                                                    C

 “Copy-on-Write” technology
                                                SQL Server 2008


                                         Witness
                                                              MSDB DB
                                         Server
                                         Copyright 2009 – Database Architechs
                                                www.dbarchitechs.com
20FIG30

SQL Server 2005 Database Mirroring
20FIG31
SQL Server 2008 Database Mirroring
16




                                     43
Copyright 2009 all rights reserved
Database Mirroring with
                 DB Snapshot
  SQL Server 2005                                                   SQL Server 2005

                                                                  Mirror Server
Principal   Applx DB
                                                                    Applx DB
 Server
             translog                                                translog
                                                                          Database Snapshot




                           SQL Server 2005




                                                                                                  rk
                                                                                                 rk


                                                                                                  s
                                                                                               oo
                        Witness




                                                                                               er
                                                                                              tw
                                                                                             tw


                                                                                            Us
                                         MSDB DB




                                                                                            Ne
                        Server




                                                                                          Ne

                                                                                         ng
                                                                                     rti
                                                                                  po
                                                                               Re
                           Copyright 2009 – Database Architechs
                                  www.dbarchitechs.com
Snapshot
                            Source Data                  Users
                               Pages
                                                   SELECT …..data…….
                                                   FROM AdventureWorks
                                                          SNAPSHOT
         04
     SQL Server 2008


          SQL
         Server
                                                             Snapshot
           AdventureWorks                                  AdventureWorks
                 DB                                             DB




 System Catalog                           Sparse
of changed pages                           File
                                          Pages
Instance: SQL2008xyz                    PH Topology With Snapshots
                                   Endpoint Name: “endpoint4mirroring”
                                    Role: PARTNER                                                             Critical
                                                                                                              Report




                                                                            Network
                                                                           Network
                                                                                                              Users
                                                    SQL Server 2008


                                                          Principal                   Instance: SQL2008zzz
                                                                                      Endpoint Name: “endpoint4mirroring”
                                                           Server
                                                                                      Role: PARTNER
                                                                                                SQL Server 2008
OLTP Application




                                              Active                                        Mirror Server
                                  Clustered
                   Replication




                                                               Adventure                       Adventure
                                                               Works DB                        Works DB

                                                                translog                         translog
                                                                                                                  Database
                                              Passive                                                             Snapshot

                                 PH Topology                                                                       Network
                                                                                                                  Network
                                                         Principal
                                                          Server

                                                        SQL Server 2008
                                                                                                              Less Critical
                                                                                                             Reporting Users
Publisher                                     The Combo Pack
SQL Server 2008   SQL Server 2008



  Principal           Mirror                                               SQL Server 2008

   Server             Server
                                                                            Subscriber


                                      Distributor
                         SQL Server 2008                 SQL Server 2008



                           Principal                          Mirror
                            Server                            Server
SQL Server 2008


                                                                           SQL Server 2008
  Witness
  Server
                                                                            Subscriber

                           Copyright 2009 – Database Architechs
                                  www.dbarchitechs.com
Restart
                                 Stage




                                 Rolled Forward
                        time
                                  Transactions
                                                                       SQL Server
 SQL Server 2000                                                        2005/2008



      SQL                                                                SQL
     Server                                                             Server




                                 Transactions
                                 Rolled Back
                                                                SQL Server 2005/2008
                                                                 database is available
SQL Server 2000
database is available
                                 complete
                                 Restart




                                                                DB Availability
                                                                Improvement !
                         Copyright 2009 – Database Architechs
                                www.dbarchitechs.com
Performance and Tuning
     counts in HA
SQL SHOT – MS SQL Server
Questions

Is there any time left????




    Copyright 2009 – Database Architechs
           www.dbarchitechs.com
SQL Server Resources




                                           Stop!
    Copyright 2009 – Database Architechs
           www.dbarchitechs.com
Fail-Over via Move Group




    ANSWER to question #1
       Copyright 2009 – Database Architechs
              www.dbarchitechs.com
Distributed Transactions

                                                     “Primary Location”
                                                                SQL Server 2000

                Try primary first
Reads                                                            Northwind 1

         If
              no
                ta
                  va
                    ila
                       ble
                          ,   try                  “Secondary Location”
                  MS DTC




                                    sec                      SQL Server 2000
                                        on
Updates                                    da
                                             ry
                                                                 Northwind 2
           Must succeed
           together, or be
          both rolled back
        (two-phase commit)
                              Copyright 2009 – Database Architechs
                                     www.dbarchitechs.com

Weitere ähnliche Inhalte

Was ist angesagt?

Bertrand Delsart Java R T S
Bertrand Delsart Java R T SBertrand Delsart Java R T S
Bertrand Delsart Java R T Sdeimos
 
Ari Zilka Cluster Architecture Patterns
Ari Zilka Cluster Architecture PatternsAri Zilka Cluster Architecture Patterns
Ari Zilka Cluster Architecture Patternsdeimos
 
Oracle10g new features
Oracle10g  new featuresOracle10g  new features
Oracle10g new featuresTanvi_Agrawal
 
State of the art of MySQL replication and clustering
State of the art of MySQL replication and clusteringState of the art of MySQL replication and clustering
State of the art of MySQL replication and clusteringGiuseppe Maxia
 
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - d...
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - d...SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - d...
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - d...dbi services
 
SANKAR_PRASAD_SAHU_SQL_DBA
SANKAR_PRASAD_SAHU_SQL_DBASANKAR_PRASAD_SAHU_SQL_DBA
SANKAR_PRASAD_SAHU_SQL_DBASankar Sahu
 
Real-Time Loading to Sybase IQ
Real-Time Loading to Sybase IQReal-Time Loading to Sybase IQ
Real-Time Loading to Sybase IQSybase Türkiye
 
21st Century Service Oriented Architecture
21st Century Service Oriented Architecture21st Century Service Oriented Architecture
21st Century Service Oriented ArchitectureBob Rhubart
 
Dave Carroll Application Services Salesforce
Dave Carroll Application Services SalesforceDave Carroll Application Services Salesforce
Dave Carroll Application Services Salesforcedeimos
 
The Very Very Latest in Database Development - Oracle Open World 2012
The Very Very Latest in Database Development - Oracle Open World 2012The Very Very Latest in Database Development - Oracle Open World 2012
The Very Very Latest in Database Development - Oracle Open World 2012Lucas Jellema
 
Jfokus 2012: PaaSing a Java EE Application
Jfokus 2012: PaaSing a Java EE ApplicationJfokus 2012: PaaSing a Java EE Application
Jfokus 2012: PaaSing a Java EE ApplicationArun Gupta
 
Engineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the FutureEngineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the FutureBob Rhubart
 
Implementing the Future of PostgreSQL Clustering with Tungsten
Implementing the Future of PostgreSQL Clustering with TungstenImplementing the Future of PostgreSQL Clustering with Tungsten
Implementing the Future of PostgreSQL Clustering with TungstenCommand Prompt., Inc
 
The Java EE 7 Platform: Developing for the Cloud
The Java EE 7 Platform: Developing for the CloudThe Java EE 7 Platform: Developing for the Cloud
The Java EE 7 Platform: Developing for the CloudArun Gupta
 
2011 04-dsi-javaee-in-the-cloud-andreadis
2011 04-dsi-javaee-in-the-cloud-andreadis2011 04-dsi-javaee-in-the-cloud-andreadis
2011 04-dsi-javaee-in-the-cloud-andreadisdandre
 
Oracle Enterprise Manager
Oracle Enterprise ManagerOracle Enterprise Manager
Oracle Enterprise ManagerBob Rhubart
 
Liquidity Risk Management powered by SAP HANA
Liquidity Risk Management powered by SAP HANALiquidity Risk Management powered by SAP HANA
Liquidity Risk Management powered by SAP HANASAP Technology
 

Was ist angesagt? (20)

Bertrand Delsart Java R T S
Bertrand Delsart Java R T SBertrand Delsart Java R T S
Bertrand Delsart Java R T S
 
Ari Zilka Cluster Architecture Patterns
Ari Zilka Cluster Architecture PatternsAri Zilka Cluster Architecture Patterns
Ari Zilka Cluster Architecture Patterns
 
Oracle10g new features
Oracle10g  new featuresOracle10g  new features
Oracle10g new features
 
State of the art of MySQL replication and clustering
State of the art of MySQL replication and clusteringState of the art of MySQL replication and clustering
State of the art of MySQL replication and clustering
 
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - d...
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - d...SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - d...
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - d...
 
Ronald van Luttikhuizen - Effective fault handling in SOA Suite and OSB 11g
Ronald van Luttikhuizen - Effective fault handling in SOA Suite and OSB 11gRonald van Luttikhuizen - Effective fault handling in SOA Suite and OSB 11g
Ronald van Luttikhuizen - Effective fault handling in SOA Suite and OSB 11g
 
SANKAR_PRASAD_SAHU_SQL_DBA
SANKAR_PRASAD_SAHU_SQL_DBASANKAR_PRASAD_SAHU_SQL_DBA
SANKAR_PRASAD_SAHU_SQL_DBA
 
Real-Time Loading to Sybase IQ
Real-Time Loading to Sybase IQReal-Time Loading to Sybase IQ
Real-Time Loading to Sybase IQ
 
21st Century Service Oriented Architecture
21st Century Service Oriented Architecture21st Century Service Oriented Architecture
21st Century Service Oriented Architecture
 
Dave Carroll Application Services Salesforce
Dave Carroll Application Services SalesforceDave Carroll Application Services Salesforce
Dave Carroll Application Services Salesforce
 
The Very Very Latest in Database Development - Oracle Open World 2012
The Very Very Latest in Database Development - Oracle Open World 2012The Very Very Latest in Database Development - Oracle Open World 2012
The Very Very Latest in Database Development - Oracle Open World 2012
 
Jfokus 2012: PaaSing a Java EE Application
Jfokus 2012: PaaSing a Java EE ApplicationJfokus 2012: PaaSing a Java EE Application
Jfokus 2012: PaaSing a Java EE Application
 
Xs sho niboshi
Xs sho niboshiXs sho niboshi
Xs sho niboshi
 
Engineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the FutureEngineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the Future
 
Implementing the Future of PostgreSQL Clustering with Tungsten
Implementing the Future of PostgreSQL Clustering with TungstenImplementing the Future of PostgreSQL Clustering with Tungsten
Implementing the Future of PostgreSQL Clustering with Tungsten
 
Profile narendraredy
Profile narendraredyProfile narendraredy
Profile narendraredy
 
The Java EE 7 Platform: Developing for the Cloud
The Java EE 7 Platform: Developing for the CloudThe Java EE 7 Platform: Developing for the Cloud
The Java EE 7 Platform: Developing for the Cloud
 
2011 04-dsi-javaee-in-the-cloud-andreadis
2011 04-dsi-javaee-in-the-cloud-andreadis2011 04-dsi-javaee-in-the-cloud-andreadis
2011 04-dsi-javaee-in-the-cloud-andreadis
 
Oracle Enterprise Manager
Oracle Enterprise ManagerOracle Enterprise Manager
Oracle Enterprise Manager
 
Liquidity Risk Management powered by SAP HANA
Liquidity Risk Management powered by SAP HANALiquidity Risk Management powered by SAP HANA
Liquidity Risk Management powered by SAP HANA
 

Andere mochten auch

High Availability Linux Clusters
High Availability Linux ClustersHigh Availability Linux Clusters
High Availability Linux Clustersdavisable
 
1. Komunikasi 101 oleh Antonius Setiawan
1. Komunikasi 101 oleh Antonius Setiawan1. Komunikasi 101 oleh Antonius Setiawan
1. Komunikasi 101 oleh Antonius Setiawanjohnoei
 
11 komunikasi-broadband
11 komunikasi-broadband11 komunikasi-broadband
11 komunikasi-broadbandChoiruddin Doy
 
Administering Database - Pengenalan DBA dan Konfigurasi SQL Server 2005
Administering Database - Pengenalan DBA dan Konfigurasi SQL Server 2005Administering Database - Pengenalan DBA dan Konfigurasi SQL Server 2005
Administering Database - Pengenalan DBA dan Konfigurasi SQL Server 2005Dudy Ali
 
Modul pelatihan-web-joomla
Modul pelatihan-web-joomlaModul pelatihan-web-joomla
Modul pelatihan-web-joomlaomenk gokile
 
16406239 digital-culture-periode-pengembangan-2006-2007
16406239 digital-culture-periode-pengembangan-2006-200716406239 digital-culture-periode-pengembangan-2006-2007
16406239 digital-culture-periode-pengembangan-2006-2007Lina Ernita
 
Ses pemrograman-web-database-dg-php-dan-my sql
Ses pemrograman-web-database-dg-php-dan-my sqlSes pemrograman-web-database-dg-php-dan-my sql
Ses pemrograman-web-database-dg-php-dan-my sqlomenk gokile
 
15011 10-915861063479
15011 10-91586106347915011 10-915861063479
15011 10-915861063479Lina Ernita
 
Teknologi bluetooth dan implikasinya
Teknologi bluetooth dan implikasinyaTeknologi bluetooth dan implikasinya
Teknologi bluetooth dan implikasinyaMateri Kuliah Online
 
16067356 teknologi-jaringan-bawah-air
16067356 teknologi-jaringan-bawah-air16067356 teknologi-jaringan-bawah-air
16067356 teknologi-jaringan-bawah-airLina Ernita
 
Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...
Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...
Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...ITCamp
 
Sql server performance tuning
Sql server performance tuningSql server performance tuning
Sql server performance tuningngupt28
 
SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)Hamid J. Fard
 
BizTalk Server with SQL Server AlwaysOn
BizTalk Server with SQL Server AlwaysOnBizTalk Server with SQL Server AlwaysOn
BizTalk Server with SQL Server AlwaysOnBizTalk360
 
AWS Webcast - Implementing Windows and SQL Server for High Availability on AWS
AWS Webcast - Implementing Windows and SQL Server for High Availability on AWS AWS Webcast - Implementing Windows and SQL Server for High Availability on AWS
AWS Webcast - Implementing Windows and SQL Server for High Availability on AWS Amazon Web Services
 
SQL Server Clustering and High Availability
SQL Server Clustering and High AvailabilitySQL Server Clustering and High Availability
SQL Server Clustering and High Availability► Supreme Mandal ◄
 
SQL Server Performance Tuning Baseline
SQL Server Performance Tuning BaselineSQL Server Performance Tuning Baseline
SQL Server Performance Tuning Baseline► Supreme Mandal ◄
 
Sql Server Performance Tuning
Sql Server Performance TuningSql Server Performance Tuning
Sql Server Performance TuningBala Subra
 
SQL Server - Using Tools to Analyze Query Performance
SQL Server - Using Tools to Analyze Query PerformanceSQL Server - Using Tools to Analyze Query Performance
SQL Server - Using Tools to Analyze Query PerformanceMarek Maśko
 

Andere mochten auch (20)

High Availability Linux Clusters
High Availability Linux ClustersHigh Availability Linux Clusters
High Availability Linux Clusters
 
1. Komunikasi 101 oleh Antonius Setiawan
1. Komunikasi 101 oleh Antonius Setiawan1. Komunikasi 101 oleh Antonius Setiawan
1. Komunikasi 101 oleh Antonius Setiawan
 
Multimedia Networks
Multimedia NetworksMultimedia Networks
Multimedia Networks
 
11 komunikasi-broadband
11 komunikasi-broadband11 komunikasi-broadband
11 komunikasi-broadband
 
Administering Database - Pengenalan DBA dan Konfigurasi SQL Server 2005
Administering Database - Pengenalan DBA dan Konfigurasi SQL Server 2005Administering Database - Pengenalan DBA dan Konfigurasi SQL Server 2005
Administering Database - Pengenalan DBA dan Konfigurasi SQL Server 2005
 
Modul pelatihan-web-joomla
Modul pelatihan-web-joomlaModul pelatihan-web-joomla
Modul pelatihan-web-joomla
 
16406239 digital-culture-periode-pengembangan-2006-2007
16406239 digital-culture-periode-pengembangan-2006-200716406239 digital-culture-periode-pengembangan-2006-2007
16406239 digital-culture-periode-pengembangan-2006-2007
 
Ses pemrograman-web-database-dg-php-dan-my sql
Ses pemrograman-web-database-dg-php-dan-my sqlSes pemrograman-web-database-dg-php-dan-my sql
Ses pemrograman-web-database-dg-php-dan-my sql
 
15011 10-915861063479
15011 10-91586106347915011 10-915861063479
15011 10-915861063479
 
Teknologi bluetooth dan implikasinya
Teknologi bluetooth dan implikasinyaTeknologi bluetooth dan implikasinya
Teknologi bluetooth dan implikasinya
 
16067356 teknologi-jaringan-bawah-air
16067356 teknologi-jaringan-bawah-air16067356 teknologi-jaringan-bawah-air
16067356 teknologi-jaringan-bawah-air
 
Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...
Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...
Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...
 
Sql server performance tuning
Sql server performance tuningSql server performance tuning
Sql server performance tuning
 
SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)
 
BizTalk Server with SQL Server AlwaysOn
BizTalk Server with SQL Server AlwaysOnBizTalk Server with SQL Server AlwaysOn
BizTalk Server with SQL Server AlwaysOn
 
AWS Webcast - Implementing Windows and SQL Server for High Availability on AWS
AWS Webcast - Implementing Windows and SQL Server for High Availability on AWS AWS Webcast - Implementing Windows and SQL Server for High Availability on AWS
AWS Webcast - Implementing Windows and SQL Server for High Availability on AWS
 
SQL Server Clustering and High Availability
SQL Server Clustering and High AvailabilitySQL Server Clustering and High Availability
SQL Server Clustering and High Availability
 
SQL Server Performance Tuning Baseline
SQL Server Performance Tuning BaselineSQL Server Performance Tuning Baseline
SQL Server Performance Tuning Baseline
 
Sql Server Performance Tuning
Sql Server Performance TuningSql Server Performance Tuning
Sql Server Performance Tuning
 
SQL Server - Using Tools to Analyze Query Performance
SQL Server - Using Tools to Analyze Query PerformanceSQL Server - Using Tools to Analyze Query Performance
SQL Server - Using Tools to Analyze Query Performance
 

Ähnlich wie SQL Server High Availability

The DevOps PaaS Infusion - May meetup
The DevOps PaaS Infusion - May meetupThe DevOps PaaS Infusion - May meetup
The DevOps PaaS Infusion - May meetupNorm Leitman
 
AppDynamics- A sneak peak into the product that is disrupting the Application...
AppDynamics- A sneak peak into the product that is disrupting the Application...AppDynamics- A sneak peak into the product that is disrupting the Application...
AppDynamics- A sneak peak into the product that is disrupting the Application...Codemotion
 
Next Generation Datacenter Oracle - Alan Hartwell
Next Generation Datacenter Oracle - Alan HartwellNext Generation Datacenter Oracle - Alan Hartwell
Next Generation Datacenter Oracle - Alan HartwellHPDutchWorld
 
Oracle - Next Generation Datacenter - Alan Hartwell
Oracle - Next Generation Datacenter - Alan HartwellOracle - Next Generation Datacenter - Alan Hartwell
Oracle - Next Generation Datacenter - Alan HartwellHPDutchWorld
 
The Cloud: A game changer to test, at scale and in production, SOA based web...
The Cloud: A game changer to test, at scale and in production,  SOA based web...The Cloud: A game changer to test, at scale and in production,  SOA based web...
The Cloud: A game changer to test, at scale and in production, SOA based web...Fred Beringer
 
Tim Jones – CTO, Trader Media
Tim Jones – CTO, Trader MediaTim Jones – CTO, Trader Media
Tim Jones – CTO, Trader MediaRightScale
 
EMC: Business Continuity a Disaster Recovery pre virtuálne prostredia
EMC: Business Continuity a Disaster Recovery pre virtuálne prostrediaEMC: Business Continuity a Disaster Recovery pre virtuálne prostredia
EMC: Business Continuity a Disaster Recovery pre virtuálne prostrediaASBIS SK
 
Scaling Systems: Architectures that Grow
Scaling Systems: Architectures that GrowScaling Systems: Architectures that Grow
Scaling Systems: Architectures that GrowGibraltar Software
 
Web Performance Acceleration with Strangeloop AS1000
Web Performance Acceleration with Strangeloop AS1000Web Performance Acceleration with Strangeloop AS1000
Web Performance Acceleration with Strangeloop AS1000Thomas Stensitzki
 
[.Net Juniors Academy] Introdução ao Cloud Computing e Windows Azure Platform
[.Net Juniors Academy] Introdução ao Cloud Computing e Windows Azure Platform[.Net Juniors Academy] Introdução ao Cloud Computing e Windows Azure Platform
[.Net Juniors Academy] Introdução ao Cloud Computing e Windows Azure PlatformVitor Tomaz
 
Cloud computing bringing the dark side of enterprise apps into the light by...
Cloud computing   bringing the dark side of enterprise apps into the light by...Cloud computing   bringing the dark side of enterprise apps into the light by...
Cloud computing bringing the dark side of enterprise apps into the light by...Khazret Sapenov
 
Drupal in the Cloud with Windows Azure
Drupal in the Cloud with Windows AzureDrupal in the Cloud with Windows Azure
Drupal in the Cloud with Windows AzureFord AntiTrust
 
Real User Experience Insight
Real User Experience InsightReal User Experience Insight
Real User Experience Insightruiruitang
 
Real User Experience Insight
Real User Experience InsightReal User Experience Insight
Real User Experience Insightruiruitang
 
Real User Experience Insight
Real User Experience InsightReal User Experience Insight
Real User Experience Insightruiruitang
 
Oracle Application Management Suite
Oracle Application Management SuiteOracle Application Management Suite
Oracle Application Management SuiteOracleVolutionSeries
 
Windows Azure Platform
Windows Azure PlatformWindows Azure Platform
Windows Azure PlatformAsmTrash
 
Azug - successfully breeding rabits
Azug - successfully breeding rabitsAzug - successfully breeding rabits
Azug - successfully breeding rabitsYves Goeleven
 
Migrating Oracle to Aurora PostgreSQL Utilizing AWS Database Migration Servic...
Migrating Oracle to Aurora PostgreSQL Utilizing AWS Database Migration Servic...Migrating Oracle to Aurora PostgreSQL Utilizing AWS Database Migration Servic...
Migrating Oracle to Aurora PostgreSQL Utilizing AWS Database Migration Servic...Amazon Web Services
 

Ähnlich wie SQL Server High Availability (20)

The DevOps PaaS Infusion - May meetup
The DevOps PaaS Infusion - May meetupThe DevOps PaaS Infusion - May meetup
The DevOps PaaS Infusion - May meetup
 
AppDynamics- A sneak peak into the product that is disrupting the Application...
AppDynamics- A sneak peak into the product that is disrupting the Application...AppDynamics- A sneak peak into the product that is disrupting the Application...
AppDynamics- A sneak peak into the product that is disrupting the Application...
 
Next Generation Datacenter Oracle - Alan Hartwell
Next Generation Datacenter Oracle - Alan HartwellNext Generation Datacenter Oracle - Alan Hartwell
Next Generation Datacenter Oracle - Alan Hartwell
 
Oracle - Next Generation Datacenter - Alan Hartwell
Oracle - Next Generation Datacenter - Alan HartwellOracle - Next Generation Datacenter - Alan Hartwell
Oracle - Next Generation Datacenter - Alan Hartwell
 
The Cloud: A game changer to test, at scale and in production, SOA based web...
The Cloud: A game changer to test, at scale and in production,  SOA based web...The Cloud: A game changer to test, at scale and in production,  SOA based web...
The Cloud: A game changer to test, at scale and in production, SOA based web...
 
Tim Jones – CTO, Trader Media
Tim Jones – CTO, Trader MediaTim Jones – CTO, Trader Media
Tim Jones – CTO, Trader Media
 
EMC: Business Continuity a Disaster Recovery pre virtuálne prostredia
EMC: Business Continuity a Disaster Recovery pre virtuálne prostrediaEMC: Business Continuity a Disaster Recovery pre virtuálne prostredia
EMC: Business Continuity a Disaster Recovery pre virtuálne prostredia
 
Scaling Systems: Architectures that Grow
Scaling Systems: Architectures that GrowScaling Systems: Architectures that Grow
Scaling Systems: Architectures that Grow
 
Web Performance Acceleration with Strangeloop AS1000
Web Performance Acceleration with Strangeloop AS1000Web Performance Acceleration with Strangeloop AS1000
Web Performance Acceleration with Strangeloop AS1000
 
[.Net Juniors Academy] Introdução ao Cloud Computing e Windows Azure Platform
[.Net Juniors Academy] Introdução ao Cloud Computing e Windows Azure Platform[.Net Juniors Academy] Introdução ao Cloud Computing e Windows Azure Platform
[.Net Juniors Academy] Introdução ao Cloud Computing e Windows Azure Platform
 
Cloud computing bringing the dark side of enterprise apps into the light by...
Cloud computing   bringing the dark side of enterprise apps into the light by...Cloud computing   bringing the dark side of enterprise apps into the light by...
Cloud computing bringing the dark side of enterprise apps into the light by...
 
Drupal in the Cloud with Windows Azure
Drupal in the Cloud with Windows AzureDrupal in the Cloud with Windows Azure
Drupal in the Cloud with Windows Azure
 
Cantine de Nantes
Cantine de NantesCantine de Nantes
Cantine de Nantes
 
Real User Experience Insight
Real User Experience InsightReal User Experience Insight
Real User Experience Insight
 
Real User Experience Insight
Real User Experience InsightReal User Experience Insight
Real User Experience Insight
 
Real User Experience Insight
Real User Experience InsightReal User Experience Insight
Real User Experience Insight
 
Oracle Application Management Suite
Oracle Application Management SuiteOracle Application Management Suite
Oracle Application Management Suite
 
Windows Azure Platform
Windows Azure PlatformWindows Azure Platform
Windows Azure Platform
 
Azug - successfully breeding rabits
Azug - successfully breeding rabitsAzug - successfully breeding rabits
Azug - successfully breeding rabits
 
Migrating Oracle to Aurora PostgreSQL Utilizing AWS Database Migration Servic...
Migrating Oracle to Aurora PostgreSQL Utilizing AWS Database Migration Servic...Migrating Oracle to Aurora PostgreSQL Utilizing AWS Database Migration Servic...
Migrating Oracle to Aurora PostgreSQL Utilizing AWS Database Migration Servic...
 

Mehr von Database Architechs

2010/10 - Database Architechs - Perf. & Tuning Tools
2010/10 - Database Architechs - Perf. & Tuning Tools2010/10 - Database Architechs - Perf. & Tuning Tools
2010/10 - Database Architechs - Perf. & Tuning ToolsDatabase Architechs
 
2010/09 - Database Architechs - Performance & Tuning Tool
2010/09 - Database Architechs - Performance & Tuning Tool2010/09 - Database Architechs - Performance & Tuning Tool
2010/09 - Database Architechs - Performance & Tuning ToolDatabase Architechs
 
2010/10 - Database Architechs presentation
2010/10 - Database Architechs presentation2010/10 - Database Architechs presentation
2010/10 - Database Architechs presentationDatabase Architechs
 
2010/08 - Database Architechs - Presentation
2010/08 - Database Architechs - Presentation2010/08 - Database Architechs - Presentation
2010/08 - Database Architechs - PresentationDatabase Architechs
 
2009/12 - Database Architechs - Presentation
2009/12 - Database Architechs - Presentation2009/12 - Database Architechs - Presentation
2009/12 - Database Architechs - PresentationDatabase Architechs
 
Paraccel/Database Architechs Press Release
Paraccel/Database Architechs Press ReleaseParaccel/Database Architechs Press Release
Paraccel/Database Architechs Press ReleaseDatabase Architechs
 
2009/11 Database Architechs Presentation
2009/11   Database Architechs Presentation2009/11   Database Architechs Presentation
2009/11 Database Architechs PresentationDatabase Architechs
 
ASG - Power Alignment Facilitation
ASG - Power Alignment FacilitationASG - Power Alignment Facilitation
ASG - Power Alignment FacilitationDatabase Architechs
 
Informatica World 2006 - MDM Data Quality
Informatica World 2006 - MDM Data QualityInformatica World 2006 - MDM Data Quality
Informatica World 2006 - MDM Data QualityDatabase Architechs
 
2010/10 - Database Architechs Consulting Services Summary
2010/10 - Database Architechs Consulting Services Summary2010/10 - Database Architechs Consulting Services Summary
2010/10 - Database Architechs Consulting Services SummaryDatabase Architechs
 
2010/10 - Database Architechs - Data Services Summary
2010/10 - Database Architechs - Data Services Summary2010/10 - Database Architechs - Data Services Summary
2010/10 - Database Architechs - Data Services SummaryDatabase Architechs
 
Master Data Management methodology
Master Data Management methodologyMaster Data Management methodology
Master Data Management methodologyDatabase Architechs
 
SQL Server 2008 Migration Workshop 04/29/2009
SQL Server 2008 Migration Workshop 04/29/2009SQL Server 2008 Migration Workshop 04/29/2009
SQL Server 2008 Migration Workshop 04/29/2009Database Architechs
 

Mehr von Database Architechs (14)

2010/10 - Database Architechs - Perf. & Tuning Tools
2010/10 - Database Architechs - Perf. & Tuning Tools2010/10 - Database Architechs - Perf. & Tuning Tools
2010/10 - Database Architechs - Perf. & Tuning Tools
 
2010/09 - Database Architechs - Performance & Tuning Tool
2010/09 - Database Architechs - Performance & Tuning Tool2010/09 - Database Architechs - Performance & Tuning Tool
2010/09 - Database Architechs - Performance & Tuning Tool
 
2010/10 - Database Architechs presentation
2010/10 - Database Architechs presentation2010/10 - Database Architechs presentation
2010/10 - Database Architechs presentation
 
2010/08 - Database Architechs - Presentation
2010/08 - Database Architechs - Presentation2010/08 - Database Architechs - Presentation
2010/08 - Database Architechs - Presentation
 
2009/12 - Database Architechs - Presentation
2009/12 - Database Architechs - Presentation2009/12 - Database Architechs - Presentation
2009/12 - Database Architechs - Presentation
 
Paraccel/Database Architechs Press Release
Paraccel/Database Architechs Press ReleaseParaccel/Database Architechs Press Release
Paraccel/Database Architechs Press Release
 
2009/11 Database Architechs Presentation
2009/11   Database Architechs Presentation2009/11   Database Architechs Presentation
2009/11 Database Architechs Presentation
 
ASG - Power Alignment Facilitation
ASG - Power Alignment FacilitationASG - Power Alignment Facilitation
ASG - Power Alignment Facilitation
 
Informatica World 2006 - MDM Data Quality
Informatica World 2006 - MDM Data QualityInformatica World 2006 - MDM Data Quality
Informatica World 2006 - MDM Data Quality
 
2010/10 - Database Architechs Consulting Services Summary
2010/10 - Database Architechs Consulting Services Summary2010/10 - Database Architechs Consulting Services Summary
2010/10 - Database Architechs Consulting Services Summary
 
2010/10 - Database Architechs - Data Services Summary
2010/10 - Database Architechs - Data Services Summary2010/10 - Database Architechs - Data Services Summary
2010/10 - Database Architechs - Data Services Summary
 
Master Data Management methodology
Master Data Management methodologyMaster Data Management methodology
Master Data Management methodology
 
SQL Shot 4.2.10 User Manual
SQL Shot 4.2.10 User ManualSQL Shot 4.2.10 User Manual
SQL Shot 4.2.10 User Manual
 
SQL Server 2008 Migration Workshop 04/29/2009
SQL Server 2008 Migration Workshop 04/29/2009SQL Server 2008 Migration Workshop 04/29/2009
SQL Server 2008 Migration Workshop 04/29/2009
 

Kürzlich hochgeladen

Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 

Kürzlich hochgeladen (20)

Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 

SQL Server High Availability

  • 1. SQL Saturday 2009 – Portland, Oregon HA cover Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 2. Paul Bertucci • Founder Database Architechs – www.dbarchitechs.com – Specializing in HA, Database Design, Data Architecture, Data Replication, and P&T for SQL Server, Sybase, DB2 and Oracle – Over 28+ years experience in Data Base industry • Co-Author of SQL Server 2000 Unleashed! (SAMS) • Co-Author of SQL Server 2005 Unleashed! (SAMS) • Co-Author of SQL Server 2008 Unleashed! (SAMS) – Summer 2009 ! • Co-Author of ADO.NET in 24 hours (SAMS) • Author MS SQL Server High Availability (SAMS) • Author Sybase Performance & Tuning • Author Sybase Physical DB Design • Veritas SQL Server Performance Series • Former Chief Data Architect Symantec Corporation • Current Chief Architect Autodesk Corporation pbertucci@dbarchitechs.com Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 3. Agenda What is High Availability? How do you assess your HA Requirements? What are the MS SQL Server related options for HA? How each option delivers HA… Performance and Tuning is critical too – SQL Shot! Q&A Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 4. Test 1. What is the quickest way to test if your SQL Server Clustering configuration is failing over properly? 2. What is the SQL Server feature in SQL Server 2005/2008 that replaces Log Shipping? Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 5. What is Availability? Application Availability Failure causes: Planned Unplanned - Human Uptime - Hardware Downtime Downtime - Software Recoverable Disaster Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 6. The cost of Un-Availability Airline Reservation Systems - $67K to $112K per hour ATM Service Fees - $12K to $17K per hour Brokerage (Retail) - $5.6M to $7.3M per hour What is your cost of downtime? Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 7. Across all layers of your systems Network Application Middleware Database HARDWARE Operating System Network Components Servers Disk Systems Memory Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 8. Availability across planned operation 100% Availability Goals 90% Availability (%) Feb 14-28 Mar 1 – Apr 15 Apr 16 – 20 Starting Date Date of Failure Days Hours Minutes MBU (minutes) TU Avail % Period 1 2/14/2008 2/28/2008 15.00 24.00 60.00 21600.00 38.00 99.82407 Period 2 3/1/2008 4/15/2008 46.00 24.00 60.00 66240.00 68.00 99.89734 Period 3 4/16/2008 4/20/2008 5.00 24.00 60.00 7200.00 442.00 93.86111 Overall 2/14/2008 4/20/2008 66.00 24.00 60.00 95040.00 548.00 99.4234 Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 9. Availability Continuum Characteristic Availability Range Extreme Availability Near zero downtime! (99.5% - 100%) High Availability Minimal downtime (95% - 99.4%) Standard Availability With some downtime (83% - 94%) tolerance Acceptable Availability Non-critical Applications (70%-82%) Marginal Availability Non-production Applications (up to 69%) Availability Range describes the percentage of time relative to the “planned” hours of operations 8,760 hours/year | 168 hours/week | 24 hours/day 525,600 minutes/year | 7,200 minutes/week | 1,440 minutes/day Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 10. Applications and Availability Extreme Availability High Availability ATM Zero Standard Availability Planned eCommerce 911 Downtime email Acceptable Availability Inventory Accounting Mgmt Marginal Availability HR Marketing Mailers Zero Unplanned Downtime Five 9’s (99.999%) ~ 6 minutes/year downtime Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 11. What do you need? It’s as simple as 1, 2, 3 + Step One – Launch of a brief “Phase 0” HA Assessment Step Two – Complete an HA Primary Variables gauge Step Three – Match your need to the optimal HA solution Step + (optional) – Determine the ROI of the HA solution Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 12. Assessing HA with Primary Variables 0% 100% Uptime Requirement Long Short Time to Recover High Low Tolerance of Recovery Time Low High Data Resiliency Low High Application Resiliency Low High Degree of Distributed Access/Synchronization Often Never Scheduled Maintenance Frequency Low High Performance/Scalability Low High Cost of Downtime ($$ lost/hr) Low High Cost of the High Availability Solution ($$) Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 13. Development Methodology “With High Availability built in” Assessment Assessment (scope) (scope) 3. Code & Test - Code Development/Unit Testing - Fully integrate the HA solution with the application 0. Assessment Requirements Requirements 4. System Test & Acceptance - Project Planning - Full system Test/User Acceptance - Project Sizing - Full HA Test/Validation/Acceptance - Deliverables Identified (SOW) - Schedules/milestones Design Design 5. Implementation - Production Build/Implementation - High-Level Requirements (scope) - Production HA build/monitoring begins - Estimate HA Primary Variables (gauges) 1. Requirements Code & Test Code & Test - Detail Requirements (process/data/technology) - Early Prototyping (optional) - Detailed HA Primary Variables System Test & System Test & - Detailed Service Level Agreements/Rqmts Acceptance - Detailed Disaster Recovery requirements Acceptance 2. Design Implementation Implementation - Detail Design (data/process/technology) - Choose and design the matching HA solution for the application Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 14. Spiral/Rapid Methodology Iterative approach 0. Initial assessment - Project Planning 7. Implementation - Project Sizing - Production Build/Implementation - Deliverables Identified (SOW) - Production HA build/monitoring begins - Schedules/milestones - High-Level Functions (scope) Transition Inception -Estimate HA Primary Variables (gauges) 3. Requirements 6. System Test & Acceptance - Detail Requirements - Full system Test/User (process/data/technology) Acceptance - Detail HA Primary Variables -Full HA Test/Validation - Detailed SLA/Rqmts /Acceptance - Detailed Disaster Recovery requirements 5. Code & Test 1. High-level Rqmts/Prototyping - Code Development/Unit Testing - High-level requirements -Fully integrate the HA solution (process/data/technology) with the application - High-level HA Primary Variables Construction Elaboration/Prototype 2. Early Code & Test 4. Design - Early code and testing of apps/DI - Detail Designs (process/data/technology) (process/data/technology) Copyright 2009 – Database Architechs - Choose and design the matching HA solution - Prototyping of HA options www.dbarchitechs.com for the application (verified via prototypes)
  • 15. Valid High Availability Options Disk Other Cluster Data SQL DB Log Methods HW Services Replication Clustering Mirroring Shipping Disk Methods Other HW Cluster Services Data Replication SQL Clustering DB Mirroring Log Shipping Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 16. MSCS Cluster Services C: Local Binaries Windows 2003 Node A Enterprise Edition Cluster Group Resources D: Shared SCSI Disk Q: Quorum Windows 2003 Node B Enterprise Edition C: Copyright 2009 – Database Architechs Local www.dbarchitechs.com Binaries
  • 17. SQL SQL Clustering Connections COLTST1 C: Local Binaries Windows 2003 Enterprise Edition Cluster Group Resources SQL Server 2008 (physical) E: MS DTC Master DB SQL Server 2008 SCSI TempDB (Virtual SQL Server) Appl 1 DB VSQLDBARCHVSQLSRV1 Q: Quorum Disk SQL Server 2008 (physical) SQL Agent Windows 2003 COLTST2 Enterprise Edition C: Copyright 2009 – Database Architechs Local www.dbarchitechs.com Binaries
  • 18. Data Replication Can be used as a Warm Standby and/or for Reporting needs “Primary” SQL Server 2008 “Replicate” SQL Server 2008 Publication Subscription Adventure Server Server Works AdventureWorks Distribution Server distribution “Replicate” SQL Server 2008 SQL Server 2008 Subscription Server Central Publisher/ AdventureWorks Remote Distributor Replication model Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 19. Database Mirroring Client Client Client Client Network A SQL Server 2008 SQL Server 2008 Database Mirror Server MirroringAdventure Principal Works DB D Adventure D Server B Works DB translog translog C SQL Server 2008 Witness MSDB DB Server
  • 20. Database Mirroring with DB Snapshots SQL Server 2008 SQL Server 2008 Mirror Server 20FIG34 AdventureWorks AdventureWorks Principal DB DB Server translog translog Database Snapshot SQL Server 2008 rk rk s oo Witness er tw tw Us MSDB DB Ne Server Ne ng rti po Re
  • 21. Log Shipping “Source” SQL Server 2008 “Destination” SQL Server 2008 TxnLog Primary CallOne DB backups Secondary Server Server translog CallOne DB BackupCallOne_tlog_200405141120.TRN Last log shipped Delay Answer LogShareCallOne_tlog_200405141120.TRN TxnLog TxnLog Copies Restores “Monitor” SQL Server 2008 Delay between logs loaded Delay Answer Monitor MSDB DB Server Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 22. RAID Disk I/O Summary RAID Level Fault Tolerance Logical Physical I/Os Logical Physical Reads per Writes I/Os per Write Read RAID 0 None 1 1 1 1 RAID 1 or 10 Best 1 1 1 2 writes (Optimal for OLTP) RAID 5 Moderate 1 1 1 2 reads + 2 writes (Optimal for mostly (that’s 4 per write!) READ ONLY systems) NOTE: Several RAID vendors are now showing RAID 5 and RAID 10 performance almost equivalent now via Cache/Buffer advancements on their RAID controllers Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 23. Fault Tolerance and SQL DB Files Description Fault Tolerance Quorum Drive The quorum drive used with MSCS should be RAID 1 or isolated to a drive by itself (very often mirrored RAID 10 as well for maximum availability) SQL Server For OLTP (online transaction processing) systems, RAID 10 Database the database data/index files should be placed files (OLTP) on a RAID 10 disk system. SQL Server For DSS (Decision Support Systems) systems that RAID 5 Database are primarily READ ONLY, the database files (DSS) data/index files should be placed on a RAID 5 disk system. Temp DB Highly volatile disk I/O (when not able to do all it’s RAID 10 work in cache) SQL Server The SQL transaction log files should be on their own RAID 10 Transaction mirrored volume for both performance and Or Log files database protection. (for DSS systems, this RAID 1 could be RAID 5 also). Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 24. Example DB data files configuration E: RAID 5 Master DB log DSS - DB F: (read only) TempDB RAID 10 log G: OLTP X - DB log OLTP Y - DB H: RAID 1 or RAID 10 Q: Quorum Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 25. Decision Tree approach Condition/Question Case A Case B Case C Case D . . . Case n Action Action Action Action . . . Action V W X Y Z Disk Other Cluster Data SQL Database Log Distributed Methods HW Services Replication Clustering Mirroring Shipping Transactions Copyright 2009 – Database Architechs www.dbarchitechs.com Database Snapshots
  • 26. Decision-Tree Path Traversal SQL Clustering Database Cluster Snapshots Services 1a2c3 1a2d3 1a2e3 1a2b3 Database b c d Mirroring a 1a2 e 1a2a3 HA a b 1b2 1e2 e 1 c Not Needed d 1c2 Log 1d2 Shipping HW/Disk Redundancy Data Distributed Replication Transactions Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 27. Decision-Tree: ASP Questions 1-3 1 What % of availability must your application have? A% <= 70% 70% < A% < =83% 83 < A% < =95% 95% < A% < =99.5% A%> 99.5% Marginal Acceptable Standard High Extreme Availability Availability Availability Availability Availability 2 How much tolerance of downtime by end-users? Very High High Medium Low Very Low Not Low Standard High Extremely Critical Criticality Criticality Criticality Critical 3 What is the per hour cost of downtime for this application? $C<= $3K $3K < $C < =$7K $7K < $C < =$12K $12K < $C < =$20K $C > $20K Very Low Low Moderate High Very High Cost Cost Cost Cost Cost Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 28. Decision-Tree: ASP Questions 4-6 4 How long does it take to get the application back online? Very Long Long Average Short Very Short Marginal Acceptable Standard Fast Extreme Recoverability Recoverability Recoverability Recoverability Recoverability 5 How much of the application is distributed? None A Little Medium A Lot All Non- Low Moderately High Extremely Distributed Distribution Distributed Distribution Distributed 6 How much data inconsistency can be tolerated? Very Little A Little Medium A Lot Very Much Very High High Moderate Low Minimal Consistency Consistency Consistency Consistency Consistency Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 29. Decision-Tree: ASP Questions 7-9 7 How often is scheduled maintenance required? Very Often Often Average Not Often Rarely Very High High Reasonable Low Minimal Downtime Downtime Downtime Downtime Downtime 8 How important is high performance and scalability? Not Very Somewhat Moderately Very Much Extremely Very low Low Reasonable High Extreme Performance Performance Performance Performance Performance 9 How important is the application connection to the end-user? Not Very Somewhat Moderately Very Much Extremely Connection Connection Connection Not Establish new Re-established Retry process Fail-over Needed Connection easily Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 30. Decision-Tree: ASP Question 10 10 What is the estimated cost of the HA Solution (budget)? C$ < $10K $10K <= C$ < $100K $100K <= C$ < $250K $250K <= C$ < $500K C$ >= $500K Very Low Low Moderate High Extreme Cost Cost Cost Cost Cost 1. 1e Extreme Availability goal 2. 1e+2d Very low tolerance of downtime 3. 1e+2d+3e $15k/hr cost of downtime (High Cost) 4. 1e+2d+3e+4c Average recovery time 5. 1e+2d+3e+4c+5a No distributed components or synchronization 6. 1e+2d+3e+4c+5a+6b A little data inconsistency can be tolerated 7. 1e+2d+3e+4c+5a+6b+7c Average amount of scheduled downtime 8. 1e+2d+3e+4c+5a+6b+7c+8d Performance is very much important 9. 1e+2d+3e+4c+5a+6b+7c+8d+9b Connection can be re-established 10. 1e+2d+3e+4c+5a+6b+7c+8d+9b+10c Moderate HA Cost/Good budget Best fitting HA Solution (together) Disk Other Cluster SQL Copyright 2009 – Database Architechs Methods HW Services www.dbarchitechs.com Clustering
  • 31. Basic “one-two” Punch approach 1 Build the proper foundation first Hardware/Network Disk Backups Vendor Training, QA, Software Redundancy DB Backups SLA’s & Standards Upgrades Then, build within the appropriate HA solution 2 that your application requires Disk Other Cluster Data SQL Database Log Distributed Methods HW Services Replication Clustering Mirroring Shipping Transactions Database Snapshots Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 32. ASP – Scenario #1 with SQL Clustering ASPProd1 C: Local Binaries Windows 2003 MSCS Enterprise Edition Cluster Group Resources JRUN/WebServices/IIS SQL Server 2005 (physical) Master DB E: Network TempDB SQL Server 2005 SCSI F: (Virtual SQL Server) ASQLASPSERV1 HOE DB G: MS DTC Q: Quorum SQL Server 2005 (physical) SQL Agent Disk Windows 2003 Enterprise Edition MSCS C: ASPProd2 Active/Passive Copyright 2009 – Database Architechs Local Binaries Configuration www.dbarchitechs.com
  • 33. Log Shipping “Source” SQL Server 2000 “Destination” SQL Server 2000 TxnLog Primary CallOne DB backups Secondary Server Server translog CallOne DB BackupCallOne_tlog_200405141120.TRN Last log shipped Delay Answer LogShareCallOne_tlog_200405141120.TRN TxnLog TxnLog Copies Restores “Monitor” SQL Server 2000 Delay between logs loaded Delay Answer Monitor MSDB DB Server Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 34. North America (Reporting & “warm/hot” spare) SQL Server 2000 Headquarters (Santa Clara) Subscription SQL Server 2000 Server Live REPL MktgDB Publication solution Server MktgDB Europe (Reporting) SQL Server 2000 Subscription Distribution Server Server distribution MktgDB SQL Server 2000 Far East (Reporting) SQL Server 2000 Central Publisher/ Subscription Remote Distributor Server Replication model MktgDB Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 35. SQL Server 2000 Central Publisher SQL Server 2000 Subscription (default option) Subscription Server Server Northwind SQL Server 2000 Northwind Publication Server Northwind Distribution Server distribution Oracle SQL Server 7.0 Subscription Subscription Server Server Northwind Northwind Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 36. Central Publisher SQL Server 2000 SQL Server 2000 Subscription Remote Distributor Subscription Server Server Northwind SQL Server 2000 Northwind Publication Server Northwind Distribution Server distribution SQL Server 2000 Oracle SQL Server 7.0 Subscription Subscription Server Server Northwind Northwind Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 37. Data Access Latency Autonomy Distributing Data Sites (locations) Frequency Network Machines Owner Other REPLICATION Read Only Each site only Central Publisher short high many high fast/ 1 1 OLTP needs regional Transactional repl Reporting stable server/site Database Mirroring site data filter by region Read Only Each site only Central Publisher fast/ 1 Snapshot repl Reporting long high many low 1 OLTP needs regional stable server/site Database Mirroring site data filter by region Read Mostly Regional updates Central Publisher fast/ 1 Transactional repl A few updates short high < 10 medium 1 OLTP on one table stable server/site site Updating Subs Read Mostly Regional update Central Publisher slow/ 1 All Merge repl A few updates medium high < 10 medium unreliab server/site update all tables Read equal Regional update Peer-to-Peer fast/ 1 All Transactional Equal updates short high < 10 medium all tables stable server/site update repl Inserts 1 Each site only Central Subscriber short high many high fast/ 1 Transactional repl (new orders) report needs regional stable server/site data site Central Publisher Hot/Warm Very fast/ 1 Fail-over Remote Distributor high <2 high 1 OLTP Spare short stable server/site Transactional repl site Database Mirroring
  • 38. Foundation, Foundation, Foundation Piecing it together Hardware/Network Disk Backups Vendor Training, QA, Software Redundancy DB Backups SLA’s & Standards Upgrades Network Application Middleware Database HARDWARE Operating Network Components System Servers Disk Systems ck Memory Sta ystem S Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 39. ROI Calculati on Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 40. Database Mirroring Transparent Client Redirect Network A SQL Server 2008 SQL Server 2008 Mirror Server Principal Applx DB D Applx DB D Server B translog translog C “Copy-on-Write” technology SQL Server 2008 Witness MSDB DB Server Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 41. 20FIG30 SQL Server 2005 Database Mirroring
  • 42. 20FIG31 SQL Server 2008 Database Mirroring
  • 43. 16 43 Copyright 2009 all rights reserved
  • 44. Database Mirroring with DB Snapshot SQL Server 2005 SQL Server 2005 Mirror Server Principal Applx DB Applx DB Server translog translog Database Snapshot SQL Server 2005 rk rk s oo Witness er tw tw Us MSDB DB Ne Server Ne ng rti po Re Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 45. Snapshot Source Data Users Pages SELECT …..data……. FROM AdventureWorks SNAPSHOT 04 SQL Server 2008 SQL Server Snapshot AdventureWorks AdventureWorks DB DB System Catalog Sparse of changed pages File Pages
  • 46. Instance: SQL2008xyz PH Topology With Snapshots Endpoint Name: “endpoint4mirroring” Role: PARTNER Critical Report Network Network Users SQL Server 2008 Principal Instance: SQL2008zzz Endpoint Name: “endpoint4mirroring” Server Role: PARTNER SQL Server 2008 OLTP Application Active Mirror Server Clustered Replication Adventure Adventure Works DB Works DB translog translog Database Passive Snapshot PH Topology Network Network Principal Server SQL Server 2008 Less Critical Reporting Users
  • 47. Publisher The Combo Pack SQL Server 2008 SQL Server 2008 Principal Mirror SQL Server 2008 Server Server Subscriber Distributor SQL Server 2008 SQL Server 2008 Principal Mirror Server Server SQL Server 2008 SQL Server 2008 Witness Server Subscriber Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 48. Restart Stage Rolled Forward time Transactions SQL Server SQL Server 2000 2005/2008 SQL SQL Server Server Transactions Rolled Back SQL Server 2005/2008 database is available SQL Server 2000 database is available complete Restart DB Availability Improvement ! Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 49. Performance and Tuning counts in HA SQL SHOT – MS SQL Server
  • 50. Questions Is there any time left???? Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 51. SQL Server Resources Stop! Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 52. Fail-Over via Move Group ANSWER to question #1 Copyright 2009 – Database Architechs www.dbarchitechs.com
  • 53. Distributed Transactions “Primary Location” SQL Server 2000 Try primary first Reads Northwind 1 If no ta va ila ble , try “Secondary Location” MS DTC sec SQL Server 2000 on Updates da ry Northwind 2 Must succeed together, or be both rolled back (two-phase commit) Copyright 2009 – Database Architechs www.dbarchitechs.com