SlideShare a Scribd company logo
1 of 67
Download to read offline
Database Mirroring
Database Snapshots
  SQL Server 2008

                                                 USA & France


        Migrating to 2008
    Benchmarks 2005 vs 2008
   Benchmarking 2008 on SSD                                     1
            Copyright 2009 all rights reserved
Agenda
Database Mirroring – SQL Server 2008
Database Mirroring 2005 vs 2008 benchmark
Database Mirroring 2008 SSD benchmark
Database Snapshots 2008 (we might get to it)
SQL Performance & Tuning Tool (SQL Shot)
Database Architechs
Principals

               Paul Bertucci
                   Founder Database Architechs
                   Former Chief Data Architect – Veritas & Symantec
                   Currently Chief Architect - Autodesk
                   Author of SQL Server 2000, 2005 & 2008 Unleashed!
                   Co-Author of ADO.NET in 24 hours
                   Author MS SQL Server High Availability
                   Author Sybase Performance & Tuning
                   Author Sybase Physical DB Design
                   Veritas SQL Server Performance Series
                         pbertucci@dbarchitechs.com



    Thierry Gerardin
    • Managing Principal - Database Architechs
        - Management, Research and Development, DB Design and P&T for
          MS SQL Server, Sybase and Oracle
    • European focus until recently/company growth leader – multiple years
    • Expanding DB ARCH consulting practices to USA and Asia
    • Sybase P&T and DBA Certified Professional
    • Contributor to SQL Server 2005 Unleashed!
              tgerardin@dbarchitechs.com                                     3
                                Copyright 2009 all rights reserved
Database Architechs
                Primary Services
                            Data Analysis
                             & Modeling

                                                              Database Design
  Business Intelligence &
      Data Delivery
        Platforms


                                                                   Data Architecture
Distributed Data &
 Data Replication

                                                                  Performance &
                                                                      Tuning
          Master Data
          Management
                                      High Availability
                                                                          Database Education
                                                                              & Training
                                                                                               4
                             Copyright 2009 all rights reserved
Past and Current
Customers


            Intel               Applied Materials
            Cisco               Apple Computers
            Charles Schwab      PG&E
            Aplia               Thomson Learning
            AGIS                Sybase
            Veritas             Symantec Corporation
            Honda Motors        Nissan Motors
            Toshiba Computers   Breg International
            Juniper Networks    CSAA
            Safeway Stores      Federal Express
            Wells Fargo         Bank of America
            Robert Half         Merrill Lynch
            Metalinc            many others….
Database Mirroring?


                                                           =
                                Adventure                         Adventure
                                Works DB                          Works DB



A “complete” copy of a database that is created and
maintained with as up to the second completeness
that is possible  a mirror image.




               What’s new or improved?
                Compression in log transactions across topology
                Various other performance enhancements
                3 years of production execution success!
                                                                              6
                             Copyright 2009 all rights reserved
Log Shipping
                                       “Source”
                                                                                          “Destination”
                                      SQL Server 2008

                                                                                           SQL Server 2008
                                                               TxnLog
                                  Primary    CallOne DB                                   Secondary
                                                               backups
                                  Server                                                    Server
                                               translog
                                                                                            CallOne DB
                                    BackupCallOne_tlog_200405141120.TRN
Last log shipped
                   Delay Answer




                                                LogShareCallOne_tlog_200405141120.TRN             TxnLog
                                  TxnLog
                                                                                                    Restores
                                  Copies
                                                                    “Monitor”

                                                                   SQL Server 2008                Delay between
                                                                                                   logs loaded
                                                                                                    Delay Answer
                                                               Monitor
                                                                             MSDB DB
                                                               Server

                                                                                                                   7
                                             Don’t buildCopyright 2009 all rights reserved deprecated !
                                                         on this, it is being
Client           Client            Client             Client


                                   Network

                      A
                                                                 SQL Server 2008
    SQL Server 2008
   DB                                                          Mirror Server

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


                                 SQL Server xyz


                          Witness
                                             MSDB DB
                          Server
                                                                                   8
                          Copyright 2009 all rights reserved
Copy-on-write Technology
The new “copy-on-write” technology that Microsoft has created, is at the core of
the database mirroring capability. A transaction from a client connection to the
principal server (arrow label A) is written to the adventure works database
(label D). Once the transaction is written to the principal servers transaction log,
it is immediately copied (arrow label B) and written to the Mirror Server (also
labeled D). When this physical log record is written to the mirror server, it sends
back an acknowledgement (arrow label C) to the principal of its write success.
This is the “copy-on-write” technology. The end result is that the mirror server
is in the exact same state as the principal server (when the physical log record
has been successfully written on the mirror side).




                                                                                       9
                              Copyright 2009 all rights reserved
DB Mirroring Terms
The Principal database server - is the source of the mirroring. You can mirror one
or more databases on a single SQL Server instance to another SQL Server instance.
You cannot mirror a database on one SQL Server instance to itself (the same SQL
Server instance).
The Mirror database server - will be the recipient of the mirroring from the principal
database server. This mirrored database will be kept in a hot standby mode and
cannot be used directly in any way. In fact, once you have configured database
mirroring, this database will show its status as in continuous “restore mode”.

The Witness database server - is used when you want to be continuously checking
to see if any failures have occurred to the primary database server and to help make
the decision to failover to the mirror database server. It is optional, but a sound way
to configure database mirroring. If you do not identify a witness server, the principal
and mirror are left on their own to decide to fail-over or not.




                                                                                         10
                                  Copyright 2009 all rights reserved
DB Mirroring Modes
 High-availability mode, High-protection mode, and High-performance mode.
             [you must sacrifice levels of protection for performance]

Synchronous operation - a committed transaction will be committed (written) on
both partners of the database mirroring pair. This obviously adds some latency cost
to a complete transaction (it is across two servers). High-availability mode and
High-protection mode use synchronous operations (termed High safety)

Asynchronous operation - transactions commit without waiting for the mirror server
to write the log to disk. This can speed up performance significantly.
High-performance mode uses asynchronous operations.

   Whether the operations are asynchronous or synchronous depends on the
   “transaction safety” setting. This is controlled by the SAFETY option when
   configuring with Transact-SQL commands (Set to FULL for synchronous
   operations, set to OFF for asynchronous operations).



                                                                                      11
                                Copyright 2009 all rights reserved
Fail-over methods
Automatic failover - is enabled with a three-server configuration; a principal, a
mirror, and a witness server. Synchronous operations are required and the mirror
database must already be synchronized (in sync with the transactions as they are
being written to the principal). Role switching is done automatically. This is for high-
availability mode.

Manual failover - is needed when there is no witness server and is also doing
synchronous operations. The principal and the mirror are connected to each other
and the mirror database must already be synchronized. Role switching is done
manually. This is for high-protection mode.

Forced Service - in the case where there is a mirror server available, but it might
not be synchronized. It can be forced to take over when the principal server has
failed. This will possibly have data loss, since the transactions were not
synchronized. This is for either high-protection or high-performance mode.



                                                                                       12
                                  Copyright 2009 all rights reserved
Rule-of-Thumb
 You should use database mirroring:
 • If you need to increase the availability of the database layer
 • If you need to have automatic data protection (redundant storage of data)
 • If you need to decrease the downtime that would normally be required to
   do upgrades



And very often:
• If you need to off load reporting (periodic data snapshots) without impacting
the transactional system use database mirroring with database snapshots.
• Combo Needs: If you need data distribution, high availability and high data
resiliency - use data replication with database mirroring.




                                                                                  13
                               Copyright 2009 all rights reserved
Cannot be used with:
Database Mirroring cannot be used for any of SQL Server’s internal
databases    TempDB, Master DB, MSDB, or Model DB.

Database Mirroring is NOT supported in SQL Server Workgroup
Edition or Express Edition. However, these server editions could be
used as Witness servers.

You cannot have database mirroring for databases enabled with
FILESTREAM storage.




                                                                      14
                         Copyright 2009 all rights reserved
Instance: SQL08DE01                                          Instance: SQL08DE02
Endpoint name: “EndPoint4DBMirroring1430”                     Endpoint name: “EndPoint4DBMirroring1440”
Role: PARTNER                                                 Role: PARTNER

 Example 2008                                                             SQL Server 2008
     SQL Server
                                                                        Mirror Server
Configuratio
  Principal Adventure                                                     Adventure
      n        Works DB                                                   Works DB
   Server
                    translog                                               translog

       TCP: Listener_Port: 1430                                    TCP: Listener_Port: 1440


                                    SQL Server 2008


                               Witness
                                                 MSDB DB
                               Server

                               TCP: Listener_Port: 1450

                        Instance: SQL08DE03
                        Endpoint name: “EndPoint4DBMirroring1450”
                        Role: WITNESS                                                               15
                                   Copyright 2009 all rights reserved
1




                                     16
Copyright 2009 all rights reserved
2




                                         17
Copyright 2009 all rights reserved
3




                                     18
Copyright 2009 all rights reserved
Creating Endpoints
   -- create endpoint for PRINCIPAL server --
   CREATE ENDPOINT [EndPoint4DBMirroring1430]
             STATE=STARTED
             AS TCP (LISTENER_PORT = 1430, LISTENER_IP = ALL)
             FOR DATA_MIRRORING (ROLE = PARTNER,
                             AUTHENTICATION = WINDOWS NEGOTIATE
   , ENCRYPTION = REQUIRED ALGORITHM RC4)




SQL Server Log entry
01/05/2009 13:17:23,spid55,Unknown,The Database Mirroring protocol transport is now listening for
connections.
01/05/2009 13:17:23,spid55,Unknown,Server is listening on [ 'any' <ipv4> 1430].




                                                                                                    19
                                        Copyright 2009 all rights reserved
Creating Endpoints
-- create endpoint for MIRROR server --
CREATE ENDPOINT [EndPoint4DBMirroring1440]
          STATE=STARTED
          AS TCP (LISTENER_PORT = 1440, LISTENER_IP = ALL)
          FOR DATA_MIRRORING (ROLE = PARTNER,
                         AUTHENTICATION = WINDOWS NEGOTIATE
, ENCRYPTION = REQUIRED ALGORITHM RC4)


         -- create endpoint for WITNESS server --
         CREATE ENDPOINT [EndPoint4DBMirroring1450]
                   STATE=STARTED
                   AS TCP (LISTENER_PORT = 1450, LISTENER_IP = ALL)
                   FOR DATA_MIRRORING (ROLE = WITNESS,
                                 AUTHENTICATION = WINDOWS NEGOTIATE
         , ENCRYPTION = REQUIRED ALGORITHM RC4)



                                                                 20
                        Copyright 2009 all rights reserved
Backup Principal
BACKUP DATABASE [AdventureWorks]
   TO DISK = N'C:Program FilesMicrosoft SQL
              N'C:         Files
ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4Mirror.bak'
Server MSSQL10.SQL08DE01 MSSQL Backup
   WITH FORMAT
GO
-- Processed 17672 pages for database 'AdventureWorks', file 'AdventureWorks_Data' on file 1.
                                                              'AdventureWorks_Data'
-- Processed 3 pages for database 'AdventureWorks', file 'AdventureWorks_Log' on file 1.
                                                         'AdventureWorks_Log'
-- BACKUP DATABASE successfully processed 17675 pages in 7.718 seconds (17.890 MB/sec).
                                                                      seconds

BACKUP LOG [AdventureWorks] TO
DISK = N'C:Program FilesMicrosoft SQL
        N'C:       Files
ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4MirrorLog.bak'
Server MSSQL10.SQL08DE01 MSSQL Backup
GO
-- Processed 1849 pages for database 'AdventureWorks', file 'AdventureWorks_Log' on file 1.
                                                            'AdventureWorks_Log'
-- BACKUP LOG successfully processed 1849 pages in 0.862 seconds (16.757 MB/sec).
                                                                      (16.757
Restore to Mirror
RESTORE FILELISTONLY
 FROM DISK = N'C:Program FilesMicrosoft SQL
              N'C:       Files
ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4Mirror.bak'
Server MSSQL10.SQL08DE01 MSSQL Backup

RESTORE DATABASE AdventureWorks
 FROM DISK = N'C:Program FilesMicrosoft SQL
              N'C:       Files
ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4Mirror.bak'
Server MSSQL10.SQL08DE01 MSSQL Backup
 WITH NORECOVERY,
    MOVE 'AdventureWorks_Data' TO 'C:Program FilesMicrosoft SQL
                                    'C:      Files
ServerMSSQL10.SQL08DE02MSSQLDATAAdventureWorks_Data.mdf',
Server MSSQL10.SQL08DE02 MSSQL DATA
    MOVE 'AdventureWorks_Log' TO 'C:Program FilesMicrosoft SQL
                                   'C:       Files
ServerMSSQL10.SQL08DE02MSSQLDATAAdventureWorks_Log.ldf'
Server MSSQL10.SQL08DE02 MSSQL DATA
GO
-- Processed 17672 pages for database 'AdventureWorks', file 'AdventureWorks_Data' on file 1.
                                                              'AdventureWorks_Data'
-- Processed 3 pages for database 'AdventureWorks', file 'AdventureWorks_Log' on file 1.
                                                         'AdventureWorks_Log'
-- RESTORE DATABASE successfully processed 17675 pages in 6.716 seconds (20.560 MB/sec).
                                                                        seconds


RESTORE LOG AdventureWorks
 FROM DISK = N'C:Program FilesMicrosoft SQL
              N'C:       Files
ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4MirrorLog.bak'
Server MSSQL10.SQL08DE01 MSSQL Backup
 WITH FILE = 1, NORECOVERY;
GO
-- Processed 0 pages for database 'AdventureWorks', file 'AdventureWorks_Data' on file 1.
                                                         'AdventureWorks_Data'
-- Processed 1849 pages for database 'AdventureWorks', file 'AdventureWorks_Log' on file 1.
                                                             'AdventureWorks_Log'
-- RESTORE LOG successfully processed 1849 pages in 1.083 seconds (13.338 MB/sec).
7




                                     23
Copyright 2009 all rights reserved
9




                                     24
Copyright 2009 all rights reserved
11




                                     25
Copyright 2009 all rights reserved
12




                                     26
Copyright 2009 all rights reserved
13




                                     27
Copyright 2009 all rights reserved
14




                                     28
Copyright 2009 all rights reserved
SQL Server 2008
              SQL Server 2008
                                                                                Mirror Server
           10
 Principal
                       AdventureWorks
  Server                                                                         AdventureWorks
                            DB                                                        DB

                          translog                                                  translog
                                                                                             Database
        Database
                                                                                             Snapshot
        Snapshot
becomes the mirror.
 If this server node




                                           SQL Server 2008


                                        Witness




                                                                                                         rk
                                                                                                        rk


                                                                                                                    s
                                                                                                      oo


                                                                                                                 er
                                                        MSDB DB




                                                                                                     tw
                                        Server




                                                                                                    tw

                                                                                                              Us
                                                                                                  Ne
                                                                                                 Ne


                                                                                                        g
                                                                                                n
                                                                                             rti
                                                                                          po
                                                                                        Re
                                                                                                                        29
                                           Copyright 2009 all rights reserved
DB Mirroring 2005
    versus
DB Mirroring 2008
  Benchmarks
Instance: SQL08DE01                                          Instance: SQL08DE02
Endpoint name: “EndPoint4DBMirroring1430”                     Endpoint name: “EndPoint4DBMirroring1440”
Role: PARTNER                                                 Role: PARTNER

 Example 2008                                                             SQL Server 2008
     SQL Server
                                                                        Mirror Server
Configuratio
  Principal Adventure                                                     Adventure
      n        Works DB                                                   Works DB
   Server
                    translog                                               translog

       TCP: Listener_Port: 1430                                    TCP: Listener_Port: 1440


                                    SQL Server 2008


                               Witness
                                                 MSDB DB
                               Server

                               TCP: Listener_Port: 1450

                        Instance: SQL08DE03
                        Endpoint name: “EndPoint4DBMirroring1450”
                        Role: WITNESS                                                               31
                                   Copyright 2009 all rights reserved
DB Mirroring 2005 Benchmarks
Repl_rows stored procedure 9999999


                            Send Rate
DB Mirroring 2008 Benchmarks
              Send Rate




   41% More
DB Mirroring 2005 Benchmarks

            Restore Rate
DB Mirroring 2008 Benchmarks
           Restore Rate




    52% more
DB Mirroring 2005 Benchmarks
DB Mirroring 2005 Benchmarks
DB Mirroring 2008 Benchmarks
DB Mirroring 2008 Benchmarks
DB Mirroring Benchmark Summary

Overall send rate 41 % faster (2005 vs 2008)
Overall restore rate 52% faster (2005 vs 2008)

Overall availability topology inherits the restore rate ~ 50% more available

Example:
       743 ms Transaction (in 2005 mirroring configuration)
       379 ms Transaction (in 2008 mirroring configuration)

In failover, what would have been 20 seconds before mirror becomes principal
turns into roughly 8-10 seconds (or 3seconds turns into 1.5 seconds, so on).




                                                                               40
                            Copyright 2009 all rights reserved
DB Mirroring 2008
              Solid State Disks
                Benchmarks
DB Mirroring 2008 Conventional Disk configuration (SCSI/Raid10)
DB Mirroring 2008 Solid State Disk configuration (Stripping/Dynamic Volume)




      ** SSD’s courtesy of Solid Data corporation
Instance: SQL08DE01                                          Instance: SQL08DE02
Endpoint name: “EndPoint4DBMirroring1430”                     Endpoint name: “EndPoint4DBMirroring1440”
Role: PARTNER                                                 Role: PARTNER

                                                                          SQL Server 2008
         SQL Server 2008
  Benchmark                                                             Mirror Server
 Configuration
    Principal Adventure                                                   Adventure
                   Works DB                                               Works DB
       Server
                    translog                                               translog

       TCP: Listener_Port: 1430                                    TCP: Listener_Port: 1440


                                    SQL Server 2008


                               Witness
                                                 MSDB DB
                               Server

                               TCP: Listener_Port: 1450

                           Instance: SQL08DE03
                           Endpoint name: “EndPoint4DBMirroring1450”
                           Role: WITNESS                                                            42
                                   Copyright 2009 all rights reserved
DB Mirroring 2008 SSD Benchmarks
DB Mirroring 2008 Conventional Disk
Mirroring Conventional Disk
Client Execution Time               5:11:59 AM
Query Profile Statistics
 Number of transactions                100000
Network Statistics
 Number of server roundtrips                1
 TDS packets sent from client               1
 TDS packets received from server        4912
 Bytes sent from client                    92
 Bytes received from server          20117100
Time Statistics
 Client processing time                622782
 Total execution time                  622953
 Wait time on server replies              171


Conventional Disk DB Mirroring
DB Mirroring 2008 SSD
Send Rate 26% Faster




         Restore Rate 17% Faster
Mirroring Solid State Disk
Client Execution Time                    3:53:14 AM
Query Profile Statistics
 Number of transactions                     100000
Network Statistics
 Number of server roundtrips                     1
 TDS packets sent from client                    1
 TDS packets received from server             4951
 Bytes sent from client                         92
 Bytes received from server               20277550
Time Statistics
 Client processing time                     517844
 Total execution time                       517953
 Wait time on server replies                   109

For Mirroring execution SSD's TO SSD's
DB Mirroring SSD Benchmark Summary

Overall send rate 26 % faster (2008 Conventional versus SSD)
Overall restore rate 17% faster (2008 Conventional versus SSD)

Overall db mirroring topology garners ~ 20% more availability

           10 min 17 seconds to complete
               > 4:32:37am    4:43:00am (principal send’s)
               > 4:32:48 am    4:43:05am (mirror restore’s)

            8 min 38 seconds to complete
                > 3:45:19am     3:53:20am (principal send’s)
                > 3:45:20am     3:53:20am (mirror restore’s)


    100% Transparent (zero db & application changes) !

                                                                 50
                           Copyright 2009 all rights reserved
P&T Products
Database Products


              SQL SuperVision – Sybase
               SQL SuperVision – Oracle
              SQL Shot – MS SQL Server
Snapshots




                                      52
 Copyright 2009 all rights reserved
Tr
                                                          an
                                                            s
                                                         Us acti
                                                            er on
                                                              s al



 SQL Server 2008

       01   AdventureWork
Source                                CREATE DB ‘xyz’
                s DB
Server                               AS SNAPSHOT OF
                                      AdventureWorks
                translog
                                 Database
                                 Snapshot
      --- Reverting --- if needed ---
             RESTORE DB
            AdventureWorks
  FROM DATABASE_SNAPSHOT = ‘xyz’




                                                               d- U e
                                                                     y) s
                                                             ea ing tim
                                                                   nl r
                                                                 O se
                                                           (R rt in-
                                                              po nt-
                                                            Re Poi
Source Data
                        Pages

  Source

    02
SQL Server 2008


                                                Sparse
     SQL
    Server                                       File
                                                Pages       Snapshot
      AdventureWork                                        AdventureWork
          s DB                                                 s DB




                                          Empty Sparse file
                                     of a Snapshot just created
                                      (no updates to original
                                   data pages have occurred yet)
                                                                           54
                      Copyright 2009 all rights reserved
Source
                                 Data
                                Pages

       Source

         03
     SQL Server 2008


                                                        Sparse
          SQL
         Server                                          File
                                                        Pages            Snapshot
           AdventureWork                                                AdventureWork
               s DB                                                         s DB




 System Catalog                                              Copy of original
of changed pages                                            pages for snapshot
                                                       only when a page is changed
                                                              (Copy-on-write)

                                                                                        55
                           Copyright 2009 all rights reserved
Snapshot
                                                                        Users
                           Source Data
                             Pages
                                                                 SELECT …..data…….
                                                                 FROM AdventureWorks
                                                                        SNAPSHOT
         04
     SQL Server 2008


          SQL
         Server
                                                                          Snapshot
           AdventureWork                                                AdventureWork
               s DB                                                         s DB




 System Catalog                                      Sparse
of changed pages                                      File
                                                     Pages


                                                                                        56
                            Copyright 2009 all rights reserved
Transactional
            Users
                                                   Data
                                                  Pages

                                      A
                     C


                                 Update Row
                     Committed
   SQL Server 2008
           05
                                                           Sparse
        SQL
       Server                                                File
                                                          B Pages            Snapshot
             AdventureWork
                                              B                            AdventureWork
                 s DB                                                          s DB

                translog
                                          B

 System Catalog
of changed pages                                                 Copy of original
                                                             pages for snapshot use
               B
                                                           only when a page is changed
                                                                 (Copy-on-write)
Us All
                                                       er
                                                         s




 SQL Server 2008

      06                                UPDATE AWSource.tableX
         AdventureWorks
Source        DB                          set xyz = …
Server                                  FROM AWSnapshot6:00AM.tableX
            translog
                          Database
                                           6:00AM Snapshot
                          Snapshot
                            Database
                                                12:00PM Snapshot
                            Snapshot
   Restore from                Database
                                                  6:00PM Snapshot
                               Snapshot
  Any Point-in-time
                                     Database       12:00AM Snapshot
 Snapshot if needed                  Snapshot
Us
                                                          er
                           Generating                       s
                          Mass Changes


 SQL Server 2008

      07
Source                               UPDATE AWSource.tableX
         AdventureWorks                set xyz = …
Server        DB                     FROM AWSafegaurd6:00AM.tableX

                          Database
                                      SAFEGUARD Snapshot
                          Snapshot
                                     (Before the mass changes)
   Restore from snapshot
(if changes are not correct)
Te
                                                    Us stin
                                                      er g
                                                        s



      SQL Server 2008

         08
  Source
            AdventureWorks
  Server         DB


                             Database
                                        BEFORE TEST Snapshot
                             Snapshot

 Restore from the BEFORE snapshot
after testing cycle is complete and can
         continue with next test.
Tr
                                              an
                                                s
                                             Us act
                                                er ion
                                                  s al

                                                          Re Poi
                                                            po nt-i
                                                         (R rt n-
                                                           e a i n g ti m
                                                              d- U e
                                                                O se
   SQL Server 2008
                                                                  nl r s
                                                                    y)
     09  AdventureWorks
Source        DB
Server
            translog
                          Database
                                     6:00AM Reporting Snapshot
                          Snapshot
                          Database
                                     12:00PM Reporting Snapshot
                          Snapshot
                          Database
                                     6:00PM Reporting Snapshot
                          Snapshot
                          Database   12:00AM Reporting Snapshot
                          Snapshot
SQL Server 2008
              SQL Server 2008
                                                                                Mirror Server
           10
 Principal
                       AdventureWorks
  Server                                                                         AdventureWorks
                            DB                                                        DB

                          translog                                                  translog
                                                                                             Database
        Database
                                                                                             Snapshot
        Snapshot
becomes the mirror.
 If this server node




                                           SQL Server 2008


                                        Witness




                                                                                                         rk
                                                                                                        rk


                                                                                                                    s
                                                                                                      oo


                                                                                                                 er
                                                        MSDB DB




                                                                                                     tw
                                        Server




                                                                                                    tw

                                                                                                              Us
                                                                                                  Ne
                                                                                                 Ne


                                                                                                        g
                                                                                                n
                                                                                             rti
                                                                                          po
                                                                                        Re
                                                                                                                        62
                                           Copyright 2009 all rights reserved
Instance: SQL2008xyz
                                   Endpoint Name: “endpoint4mirroring”
                                    Role: PARTNER         PH Topology With Snapshots

                                                  SQL Server 2008

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




                                                                                                             SQL Server 2008
                                             Active                                                      Mirror Server
                                 Clustered
                   Replication




                                                                                                           Adventure
                                                             Adventure
                                                                                                           Works DB
                                                             Works DB
                                                                                                             translog
                                                              translog
                                                                                                                               Database
                                       Passive
                                    PH                                                                                         Snapshot

                                                                                                                                Network
                                  Topology                                                                                     Network
                                   Principal
                                               Server

                                                      SQL Server 2008
                                                                                                                                      63
                                                                                                                          Reporting Users
                                                              Copyright 2009 all rights reserved
DB Mirror and
          Publisher

                                                                      Replication
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

                                                                                                64
                               Copyright 2009 all rights reserved
Distributing Data
                                  Sites
Data Access Latency Autonomy               Frequency Network Machines Owner                Other         REPLICATION
                               (locations)

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


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

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


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

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



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


                                                                                                         Central Publisher
Hot/Warm       Very                                     fast/      1                   Fail-over         Remote Distributor
                       high     <2          high                          1 OLTP
   Spare       short                                    stable server/site site                          Transactional repl
                Database Mirroring
                                                                                                                              65
                                          Copyright 2009 all rights reserved
Questions
        Is there any time left????




Send your questions to:
     pbertucci@dbarchitechs.com
                  or
     tgerardin@dbarchitechs.com


             Copyright 2009 all rights reserved
SQL Clustering basic configuration
   SQL
                                                                               CLUSTER1
Connections
                                                                         C:
                                                                                Local
                                                                               Binaries
                      Windows 2003 EE
                                                         MSCS                  Cluster Group
                                                                                Resources
               SQL Server 2008 (physical)
                                                                                   MS DTC
                                                                          S:          SQL Agent
                                                                                         SQL Full Text
                                                                                            Search

                                                                                   Master DB
               SQL Server 2008
                                                                  SCSI
                                                                                   TempDB
              (Virtual SQL Server)
                                                                                   Appl 1 DB
                  VSQLSERVER2008
                                                                                     Quorum
                                                                     Q:
                                                                                      Disk
               SQL Server 2008 (physical)
                                                       MSCS
                       Windows 2003 EE
                                                                               CLUSTER2
                                                                         C:
                                                                                Local
                                                                                                   67
                                                                               Binaries
                             Copyright 2009 all rights reserved

More Related Content

What's hot

DB2 UDB for z/OS Version 7 - An Overview
DB2 UDB for z/OS Version 7 - An OverviewDB2 UDB for z/OS Version 7 - An Overview
DB2 UDB for z/OS Version 7 - An OverviewCraig Mullins
 
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
 
HP Microsoft SQL Server Data Management Solutions
HP Microsoft SQL Server Data Management SolutionsHP Microsoft SQL Server Data Management Solutions
HP Microsoft SQL Server Data Management SolutionsEduardo Castro
 
ITCamp 2012 - Adrian Stoian - Migrating from CFG MGR 2007 to CFG MGR 2012
ITCamp 2012 - Adrian Stoian - Migrating from CFG MGR 2007 to CFG MGR 2012ITCamp 2012 - Adrian Stoian - Migrating from CFG MGR 2007 to CFG MGR 2012
ITCamp 2012 - Adrian Stoian - Migrating from CFG MGR 2007 to CFG MGR 2012ITCamp
 
2009 Q2 WSO2 Technical Update
2009 Q2 WSO2 Technical Update2009 Q2 WSO2 Technical Update
2009 Q2 WSO2 Technical UpdateWSO2
 
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
 
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012Arun Gupta
 
Sp2010 high availlability_sql
Sp2010 high availlability_sqlSp2010 high availlability_sql
Sp2010 high availlability_sqlSamuel Zürcher
 
SQL Server 2008 Fast Track Data Warehouse
SQL Server 2008 Fast Track Data WarehouseSQL Server 2008 Fast Track Data Warehouse
SQL Server 2008 Fast Track Data WarehouseMark Ginnebaugh
 
RACKSPACE MANAGED HOSTING
RACKSPACE MANAGED HOSTINGRACKSPACE MANAGED HOSTING
RACKSPACE MANAGED HOSTINGwebhostingguy
 
Java EE Technical Keynote at JavaOne Latin America 2011
Java EE Technical Keynote at JavaOne Latin America 2011Java EE Technical Keynote at JavaOne Latin America 2011
Java EE Technical Keynote at JavaOne Latin America 2011Arun Gupta
 
Shared Personalization Service - How To Scale to 15K RPS, Patrice Pelland
Shared Personalization Service - How To Scale to 15K RPS, Patrice PellandShared Personalization Service - How To Scale to 15K RPS, Patrice Pelland
Shared Personalization Service - How To Scale to 15K RPS, Patrice PellandFuenteovejuna
 
Lync Server 2010: High Availability [I3004]
Lync Server 2010: High Availability [I3004] Lync Server 2010: High Availability [I3004]
Lync Server 2010: High Availability [I3004] Fabrizio Volpe
 
Document Imaging and the SAP Content Server 101
Document Imaging and the SAP Content Server 101Document Imaging and the SAP Content Server 101
Document Imaging and the SAP Content Server 101Verbella CMG
 
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
 
Lync 2010 High Availability
Lync 2010 High AvailabilityLync 2010 High Availability
Lync 2010 High AvailabilityHarold Wong
 

What's hot (20)

DB2 9.7 Overview
DB2 9.7 OverviewDB2 9.7 Overview
DB2 9.7 Overview
 
DBA101
DBA101DBA101
DBA101
 
DB2 UDB for z/OS Version 7 - An Overview
DB2 UDB for z/OS Version 7 - An OverviewDB2 UDB for z/OS Version 7 - An Overview
DB2 UDB for z/OS Version 7 - An Overview
 
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
 
HP Microsoft SQL Server Data Management Solutions
HP Microsoft SQL Server Data Management SolutionsHP Microsoft SQL Server Data Management Solutions
HP Microsoft SQL Server Data Management Solutions
 
ITCamp 2012 - Adrian Stoian - Migrating from CFG MGR 2007 to CFG MGR 2012
ITCamp 2012 - Adrian Stoian - Migrating from CFG MGR 2007 to CFG MGR 2012ITCamp 2012 - Adrian Stoian - Migrating from CFG MGR 2007 to CFG MGR 2012
ITCamp 2012 - Adrian Stoian - Migrating from CFG MGR 2007 to CFG MGR 2012
 
2009 Q2 WSO2 Technical Update
2009 Q2 WSO2 Technical Update2009 Q2 WSO2 Technical Update
2009 Q2 WSO2 Technical Update
 
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...
 
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
 
Sp2010 high availlability_sql
Sp2010 high availlability_sqlSp2010 high availlability_sql
Sp2010 high availlability_sql
 
SQL Server 2008 Fast Track Data Warehouse
SQL Server 2008 Fast Track Data WarehouseSQL Server 2008 Fast Track Data Warehouse
SQL Server 2008 Fast Track Data Warehouse
 
RACKSPACE MANAGED HOSTING
RACKSPACE MANAGED HOSTINGRACKSPACE MANAGED HOSTING
RACKSPACE MANAGED HOSTING
 
Java EE Technical Keynote at JavaOne Latin America 2011
Java EE Technical Keynote at JavaOne Latin America 2011Java EE Technical Keynote at JavaOne Latin America 2011
Java EE Technical Keynote at JavaOne Latin America 2011
 
Shared Personalization Service - How To Scale to 15K RPS, Patrice Pelland
Shared Personalization Service - How To Scale to 15K RPS, Patrice PellandShared Personalization Service - How To Scale to 15K RPS, Patrice Pelland
Shared Personalization Service - How To Scale to 15K RPS, Patrice Pelland
 
An Hour of DB2 Tips
An Hour of DB2 TipsAn Hour of DB2 Tips
An Hour of DB2 Tips
 
Lync Server 2010: High Availability [I3004]
Lync Server 2010: High Availability [I3004] Lync Server 2010: High Availability [I3004]
Lync Server 2010: High Availability [I3004]
 
Document Imaging and the SAP Content Server 101
Document Imaging and the SAP Content Server 101Document Imaging and the SAP Content Server 101
Document Imaging and the SAP Content Server 101
 
User Group Bi
User Group BiUser Group Bi
User Group Bi
 
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
 
Lync 2010 High Availability
Lync 2010 High AvailabilityLync 2010 High Availability
Lync 2010 High Availability
 

Similar to SQL Server 2008 Migration Workshop 04/29/2009

An overview of microsoft data mining technology
An overview of microsoft data mining technologyAn overview of microsoft data mining technology
An overview of microsoft data mining technologyMark Tabladillo
 
An overview of Microsoft data mining technology
An overview of Microsoft data mining technologyAn overview of Microsoft data mining technology
An overview of Microsoft data mining technologyMark Tabladillo
 
Migrate to share point 2013 with avepoint 2.14.13
Migrate to share point 2013 with avepoint 2.14.13Migrate to share point 2013 with avepoint 2.14.13
Migrate to share point 2013 with avepoint 2.14.13Mary Leigh Mackie
 
SQL Server Reporting Services: IT Best Practices
SQL Server Reporting Services: IT Best PracticesSQL Server Reporting Services: IT Best Practices
SQL Server Reporting Services: IT Best PracticesDenny Lee
 
Secrets of Enterprise Data Mining
Secrets of Enterprise Data Mining Secrets of Enterprise Data Mining
Secrets of Enterprise Data Mining Mark Tabladillo
 
Ms Sql Server Black Book
Ms Sql Server Black BookMs Sql Server Black Book
Ms Sql Server Black BookLiquidHub
 
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...LarryZaman
 
Overview of Microsoft Appliances: Scaling SQL Server to Hundreds of Terabytes
Overview of Microsoft Appliances: Scaling SQL Server to Hundreds of TerabytesOverview of Microsoft Appliances: Scaling SQL Server to Hundreds of Terabytes
Overview of Microsoft Appliances: Scaling SQL Server to Hundreds of TerabytesJames Serra
 
OOW09 Ebs Tuning Final
OOW09 Ebs Tuning FinalOOW09 Ebs Tuning Final
OOW09 Ebs Tuning Finaljucaab
 
SANKAR_PRASAD_SAHU_SQL_DBA
SANKAR_PRASAD_SAHU_SQL_DBASANKAR_PRASAD_SAHU_SQL_DBA
SANKAR_PRASAD_SAHU_SQL_DBASankar Sahu
 
Checking the health of your active directory enviornment
Checking the health of your active directory enviornmentChecking the health of your active directory enviornment
Checking the health of your active directory enviornmentSpiffy
 
Extreme performance - IDF UG
Extreme performance - IDF UGExtreme performance - IDF UG
Extreme performance - IDF UGsqlserver.co.il
 
Denny Lee\'s Data Camp v1.0 talk on SSRS Best Practices for IT
Denny Lee\'s Data Camp v1.0 talk on SSRS Best Practices for ITDenny Lee\'s Data Camp v1.0 talk on SSRS Best Practices for IT
Denny Lee\'s Data Camp v1.0 talk on SSRS Best Practices for ITBala Subra
 
SQL Server 2008 Migration
SQL Server 2008 MigrationSQL Server 2008 Migration
SQL Server 2008 MigrationMark Ginnebaugh
 
Moving from C#/.NET to Hadoop/MongoDB
Moving from C#/.NET to Hadoop/MongoDBMoving from C#/.NET to Hadoop/MongoDB
Moving from C#/.NET to Hadoop/MongoDBMongoDB
 
Good Data: Collaborative Analytics On Demand
Good Data: Collaborative Analytics On DemandGood Data: Collaborative Analytics On Demand
Good Data: Collaborative Analytics On Demandzsvoboda
 

Similar to SQL Server 2008 Migration Workshop 04/29/2009 (20)

An overview of microsoft data mining technology
An overview of microsoft data mining technologyAn overview of microsoft data mining technology
An overview of microsoft data mining technology
 
An overview of Microsoft data mining technology
An overview of Microsoft data mining technologyAn overview of Microsoft data mining technology
An overview of Microsoft data mining technology
 
Migrate to share point 2013 with avepoint 2.14.13
Migrate to share point 2013 with avepoint 2.14.13Migrate to share point 2013 with avepoint 2.14.13
Migrate to share point 2013 with avepoint 2.14.13
 
Confio presentation
Confio presentationConfio presentation
Confio presentation
 
MySQL高可用
MySQL高可用MySQL高可用
MySQL高可用
 
SQL Server Reporting Services: IT Best Practices
SQL Server Reporting Services: IT Best PracticesSQL Server Reporting Services: IT Best Practices
SQL Server Reporting Services: IT Best Practices
 
Secrets of Enterprise Data Mining
Secrets of Enterprise Data Mining Secrets of Enterprise Data Mining
Secrets of Enterprise Data Mining
 
Introduction to Hadoop
Introduction to HadoopIntroduction to Hadoop
Introduction to Hadoop
 
Ms Sql Server Black Book
Ms Sql Server Black BookMs Sql Server Black Book
Ms Sql Server Black Book
 
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
 
Overview of Microsoft Appliances: Scaling SQL Server to Hundreds of Terabytes
Overview of Microsoft Appliances: Scaling SQL Server to Hundreds of TerabytesOverview of Microsoft Appliances: Scaling SQL Server to Hundreds of Terabytes
Overview of Microsoft Appliances: Scaling SQL Server to Hundreds of Terabytes
 
OOW09 Ebs Tuning Final
OOW09 Ebs Tuning FinalOOW09 Ebs Tuning Final
OOW09 Ebs Tuning Final
 
SANKAR_PRASAD_SAHU_SQL_DBA
SANKAR_PRASAD_SAHU_SQL_DBASANKAR_PRASAD_SAHU_SQL_DBA
SANKAR_PRASAD_SAHU_SQL_DBA
 
Db trends final
Db trends   finalDb trends   final
Db trends final
 
Checking the health of your active directory enviornment
Checking the health of your active directory enviornmentChecking the health of your active directory enviornment
Checking the health of your active directory enviornment
 
Extreme performance - IDF UG
Extreme performance - IDF UGExtreme performance - IDF UG
Extreme performance - IDF UG
 
Denny Lee\'s Data Camp v1.0 talk on SSRS Best Practices for IT
Denny Lee\'s Data Camp v1.0 talk on SSRS Best Practices for ITDenny Lee\'s Data Camp v1.0 talk on SSRS Best Practices for IT
Denny Lee\'s Data Camp v1.0 talk on SSRS Best Practices for IT
 
SQL Server 2008 Migration
SQL Server 2008 MigrationSQL Server 2008 Migration
SQL Server 2008 Migration
 
Moving from C#/.NET to Hadoop/MongoDB
Moving from C#/.NET to Hadoop/MongoDBMoving from C#/.NET to Hadoop/MongoDB
Moving from C#/.NET to Hadoop/MongoDB
 
Good Data: Collaborative Analytics On Demand
Good Data: Collaborative Analytics On DemandGood Data: Collaborative Analytics On Demand
Good Data: Collaborative Analytics On Demand
 

More from 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
 

More from Database Architechs (13)

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
 

Recently uploaded

Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
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
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
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
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 

Recently uploaded (20)

Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
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
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
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.
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 

SQL Server 2008 Migration Workshop 04/29/2009

  • 1. Database Mirroring Database Snapshots SQL Server 2008 USA & France Migrating to 2008 Benchmarks 2005 vs 2008 Benchmarking 2008 on SSD 1 Copyright 2009 all rights reserved
  • 2. Agenda Database Mirroring – SQL Server 2008 Database Mirroring 2005 vs 2008 benchmark Database Mirroring 2008 SSD benchmark Database Snapshots 2008 (we might get to it) SQL Performance & Tuning Tool (SQL Shot)
  • 3. Database Architechs Principals Paul Bertucci Founder Database Architechs Former Chief Data Architect – Veritas & Symantec Currently Chief Architect - Autodesk Author of SQL Server 2000, 2005 & 2008 Unleashed! Co-Author of ADO.NET in 24 hours Author MS SQL Server High Availability Author Sybase Performance & Tuning Author Sybase Physical DB Design Veritas SQL Server Performance Series pbertucci@dbarchitechs.com Thierry Gerardin • Managing Principal - Database Architechs - Management, Research and Development, DB Design and P&T for MS SQL Server, Sybase and Oracle • European focus until recently/company growth leader – multiple years • Expanding DB ARCH consulting practices to USA and Asia • Sybase P&T and DBA Certified Professional • Contributor to SQL Server 2005 Unleashed! tgerardin@dbarchitechs.com 3 Copyright 2009 all rights reserved
  • 4. Database Architechs Primary Services Data Analysis & Modeling Database Design Business Intelligence & Data Delivery Platforms Data Architecture Distributed Data & Data Replication Performance & Tuning Master Data Management High Availability Database Education & Training 4 Copyright 2009 all rights reserved
  • 5. Past and Current Customers Intel Applied Materials Cisco Apple Computers Charles Schwab PG&E Aplia Thomson Learning AGIS Sybase Veritas Symantec Corporation Honda Motors Nissan Motors Toshiba Computers Breg International Juniper Networks CSAA Safeway Stores Federal Express Wells Fargo Bank of America Robert Half Merrill Lynch Metalinc many others….
  • 6. Database Mirroring? = Adventure Adventure Works DB Works DB A “complete” copy of a database that is created and maintained with as up to the second completeness that is possible a mirror image. What’s new or improved? Compression in log transactions across topology Various other performance enhancements 3 years of production execution success! 6 Copyright 2009 all rights reserved
  • 7. Log Shipping “Source” “Destination” SQL Server 2008 SQL Server 2008 TxnLog Primary CallOne DB Secondary backups Server Server translog CallOne DB BackupCallOne_tlog_200405141120.TRN Last log shipped Delay Answer LogShareCallOne_tlog_200405141120.TRN TxnLog TxnLog Restores Copies “Monitor” SQL Server 2008 Delay between logs loaded Delay Answer Monitor MSDB DB Server 7 Don’t buildCopyright 2009 all rights reserved deprecated ! on this, it is being
  • 8. Client Client Client Client Network A SQL Server 2008 SQL Server 2008 DB Mirror Server MirroringAdventure D Principal Adventure D Works DB B Works DB Server translog translog C SQL Server xyz Witness MSDB DB Server 8 Copyright 2009 all rights reserved
  • 9. Copy-on-write Technology The new “copy-on-write” technology that Microsoft has created, is at the core of the database mirroring capability. A transaction from a client connection to the principal server (arrow label A) is written to the adventure works database (label D). Once the transaction is written to the principal servers transaction log, it is immediately copied (arrow label B) and written to the Mirror Server (also labeled D). When this physical log record is written to the mirror server, it sends back an acknowledgement (arrow label C) to the principal of its write success. This is the “copy-on-write” technology. The end result is that the mirror server is in the exact same state as the principal server (when the physical log record has been successfully written on the mirror side). 9 Copyright 2009 all rights reserved
  • 10. DB Mirroring Terms The Principal database server - is the source of the mirroring. You can mirror one or more databases on a single SQL Server instance to another SQL Server instance. You cannot mirror a database on one SQL Server instance to itself (the same SQL Server instance). The Mirror database server - will be the recipient of the mirroring from the principal database server. This mirrored database will be kept in a hot standby mode and cannot be used directly in any way. In fact, once you have configured database mirroring, this database will show its status as in continuous “restore mode”. The Witness database server - is used when you want to be continuously checking to see if any failures have occurred to the primary database server and to help make the decision to failover to the mirror database server. It is optional, but a sound way to configure database mirroring. If you do not identify a witness server, the principal and mirror are left on their own to decide to fail-over or not. 10 Copyright 2009 all rights reserved
  • 11. DB Mirroring Modes High-availability mode, High-protection mode, and High-performance mode. [you must sacrifice levels of protection for performance] Synchronous operation - a committed transaction will be committed (written) on both partners of the database mirroring pair. This obviously adds some latency cost to a complete transaction (it is across two servers). High-availability mode and High-protection mode use synchronous operations (termed High safety) Asynchronous operation - transactions commit without waiting for the mirror server to write the log to disk. This can speed up performance significantly. High-performance mode uses asynchronous operations. Whether the operations are asynchronous or synchronous depends on the “transaction safety” setting. This is controlled by the SAFETY option when configuring with Transact-SQL commands (Set to FULL for synchronous operations, set to OFF for asynchronous operations). 11 Copyright 2009 all rights reserved
  • 12. Fail-over methods Automatic failover - is enabled with a three-server configuration; a principal, a mirror, and a witness server. Synchronous operations are required and the mirror database must already be synchronized (in sync with the transactions as they are being written to the principal). Role switching is done automatically. This is for high- availability mode. Manual failover - is needed when there is no witness server and is also doing synchronous operations. The principal and the mirror are connected to each other and the mirror database must already be synchronized. Role switching is done manually. This is for high-protection mode. Forced Service - in the case where there is a mirror server available, but it might not be synchronized. It can be forced to take over when the principal server has failed. This will possibly have data loss, since the transactions were not synchronized. This is for either high-protection or high-performance mode. 12 Copyright 2009 all rights reserved
  • 13. Rule-of-Thumb You should use database mirroring: • If you need to increase the availability of the database layer • If you need to have automatic data protection (redundant storage of data) • If you need to decrease the downtime that would normally be required to do upgrades And very often: • If you need to off load reporting (periodic data snapshots) without impacting the transactional system use database mirroring with database snapshots. • Combo Needs: If you need data distribution, high availability and high data resiliency - use data replication with database mirroring. 13 Copyright 2009 all rights reserved
  • 14. Cannot be used with: Database Mirroring cannot be used for any of SQL Server’s internal databases TempDB, Master DB, MSDB, or Model DB. Database Mirroring is NOT supported in SQL Server Workgroup Edition or Express Edition. However, these server editions could be used as Witness servers. You cannot have database mirroring for databases enabled with FILESTREAM storage. 14 Copyright 2009 all rights reserved
  • 15. Instance: SQL08DE01 Instance: SQL08DE02 Endpoint name: “EndPoint4DBMirroring1430” Endpoint name: “EndPoint4DBMirroring1440” Role: PARTNER Role: PARTNER Example 2008 SQL Server 2008 SQL Server Mirror Server Configuratio Principal Adventure Adventure n Works DB Works DB Server translog translog TCP: Listener_Port: 1430 TCP: Listener_Port: 1440 SQL Server 2008 Witness MSDB DB Server TCP: Listener_Port: 1450 Instance: SQL08DE03 Endpoint name: “EndPoint4DBMirroring1450” Role: WITNESS 15 Copyright 2009 all rights reserved
  • 16. 1 16 Copyright 2009 all rights reserved
  • 17. 2 17 Copyright 2009 all rights reserved
  • 18. 3 18 Copyright 2009 all rights reserved
  • 19. Creating Endpoints -- create endpoint for PRINCIPAL server -- CREATE ENDPOINT [EndPoint4DBMirroring1430] STATE=STARTED AS TCP (LISTENER_PORT = 1430, LISTENER_IP = ALL) FOR DATA_MIRRORING (ROLE = PARTNER, AUTHENTICATION = WINDOWS NEGOTIATE , ENCRYPTION = REQUIRED ALGORITHM RC4) SQL Server Log entry 01/05/2009 13:17:23,spid55,Unknown,The Database Mirroring protocol transport is now listening for connections. 01/05/2009 13:17:23,spid55,Unknown,Server is listening on [ 'any' <ipv4> 1430]. 19 Copyright 2009 all rights reserved
  • 20. Creating Endpoints -- create endpoint for MIRROR server -- CREATE ENDPOINT [EndPoint4DBMirroring1440] STATE=STARTED AS TCP (LISTENER_PORT = 1440, LISTENER_IP = ALL) FOR DATA_MIRRORING (ROLE = PARTNER, AUTHENTICATION = WINDOWS NEGOTIATE , ENCRYPTION = REQUIRED ALGORITHM RC4) -- create endpoint for WITNESS server -- CREATE ENDPOINT [EndPoint4DBMirroring1450] STATE=STARTED AS TCP (LISTENER_PORT = 1450, LISTENER_IP = ALL) FOR DATA_MIRRORING (ROLE = WITNESS, AUTHENTICATION = WINDOWS NEGOTIATE , ENCRYPTION = REQUIRED ALGORITHM RC4) 20 Copyright 2009 all rights reserved
  • 21. Backup Principal BACKUP DATABASE [AdventureWorks] TO DISK = N'C:Program FilesMicrosoft SQL N'C: Files ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4Mirror.bak' Server MSSQL10.SQL08DE01 MSSQL Backup WITH FORMAT GO -- Processed 17672 pages for database 'AdventureWorks', file 'AdventureWorks_Data' on file 1. 'AdventureWorks_Data' -- Processed 3 pages for database 'AdventureWorks', file 'AdventureWorks_Log' on file 1. 'AdventureWorks_Log' -- BACKUP DATABASE successfully processed 17675 pages in 7.718 seconds (17.890 MB/sec). seconds BACKUP LOG [AdventureWorks] TO DISK = N'C:Program FilesMicrosoft SQL N'C: Files ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4MirrorLog.bak' Server MSSQL10.SQL08DE01 MSSQL Backup GO -- Processed 1849 pages for database 'AdventureWorks', file 'AdventureWorks_Log' on file 1. 'AdventureWorks_Log' -- BACKUP LOG successfully processed 1849 pages in 0.862 seconds (16.757 MB/sec). (16.757
  • 22. Restore to Mirror RESTORE FILELISTONLY FROM DISK = N'C:Program FilesMicrosoft SQL N'C: Files ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4Mirror.bak' Server MSSQL10.SQL08DE01 MSSQL Backup RESTORE DATABASE AdventureWorks FROM DISK = N'C:Program FilesMicrosoft SQL N'C: Files ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4Mirror.bak' Server MSSQL10.SQL08DE01 MSSQL Backup WITH NORECOVERY, MOVE 'AdventureWorks_Data' TO 'C:Program FilesMicrosoft SQL 'C: Files ServerMSSQL10.SQL08DE02MSSQLDATAAdventureWorks_Data.mdf', Server MSSQL10.SQL08DE02 MSSQL DATA MOVE 'AdventureWorks_Log' TO 'C:Program FilesMicrosoft SQL 'C: Files ServerMSSQL10.SQL08DE02MSSQLDATAAdventureWorks_Log.ldf' Server MSSQL10.SQL08DE02 MSSQL DATA GO -- Processed 17672 pages for database 'AdventureWorks', file 'AdventureWorks_Data' on file 1. 'AdventureWorks_Data' -- Processed 3 pages for database 'AdventureWorks', file 'AdventureWorks_Log' on file 1. 'AdventureWorks_Log' -- RESTORE DATABASE successfully processed 17675 pages in 6.716 seconds (20.560 MB/sec). seconds RESTORE LOG AdventureWorks FROM DISK = N'C:Program FilesMicrosoft SQL N'C: Files ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4MirrorLog.bak' Server MSSQL10.SQL08DE01 MSSQL Backup WITH FILE = 1, NORECOVERY; GO -- Processed 0 pages for database 'AdventureWorks', file 'AdventureWorks_Data' on file 1. 'AdventureWorks_Data' -- Processed 1849 pages for database 'AdventureWorks', file 'AdventureWorks_Log' on file 1. 'AdventureWorks_Log' -- RESTORE LOG successfully processed 1849 pages in 1.083 seconds (13.338 MB/sec).
  • 23. 7 23 Copyright 2009 all rights reserved
  • 24. 9 24 Copyright 2009 all rights reserved
  • 25. 11 25 Copyright 2009 all rights reserved
  • 26. 12 26 Copyright 2009 all rights reserved
  • 27. 13 27 Copyright 2009 all rights reserved
  • 28. 14 28 Copyright 2009 all rights reserved
  • 29. SQL Server 2008 SQL Server 2008 Mirror Server 10 Principal AdventureWorks Server AdventureWorks DB DB translog translog Database Database Snapshot Snapshot becomes the mirror. If this server node SQL Server 2008 Witness rk rk s oo er MSDB DB tw Server tw Us Ne Ne g n rti po Re 29 Copyright 2009 all rights reserved
  • 30. DB Mirroring 2005 versus DB Mirroring 2008 Benchmarks
  • 31. Instance: SQL08DE01 Instance: SQL08DE02 Endpoint name: “EndPoint4DBMirroring1430” Endpoint name: “EndPoint4DBMirroring1440” Role: PARTNER Role: PARTNER Example 2008 SQL Server 2008 SQL Server Mirror Server Configuratio Principal Adventure Adventure n Works DB Works DB Server translog translog TCP: Listener_Port: 1430 TCP: Listener_Port: 1440 SQL Server 2008 Witness MSDB DB Server TCP: Listener_Port: 1450 Instance: SQL08DE03 Endpoint name: “EndPoint4DBMirroring1450” Role: WITNESS 31 Copyright 2009 all rights reserved
  • 32. DB Mirroring 2005 Benchmarks Repl_rows stored procedure 9999999 Send Rate
  • 33. DB Mirroring 2008 Benchmarks Send Rate 41% More
  • 34. DB Mirroring 2005 Benchmarks Restore Rate
  • 35. DB Mirroring 2008 Benchmarks Restore Rate 52% more
  • 36. DB Mirroring 2005 Benchmarks
  • 37. DB Mirroring 2005 Benchmarks
  • 38. DB Mirroring 2008 Benchmarks
  • 39. DB Mirroring 2008 Benchmarks
  • 40. DB Mirroring Benchmark Summary Overall send rate 41 % faster (2005 vs 2008) Overall restore rate 52% faster (2005 vs 2008) Overall availability topology inherits the restore rate ~ 50% more available Example: 743 ms Transaction (in 2005 mirroring configuration) 379 ms Transaction (in 2008 mirroring configuration) In failover, what would have been 20 seconds before mirror becomes principal turns into roughly 8-10 seconds (or 3seconds turns into 1.5 seconds, so on). 40 Copyright 2009 all rights reserved
  • 41. DB Mirroring 2008 Solid State Disks Benchmarks DB Mirroring 2008 Conventional Disk configuration (SCSI/Raid10) DB Mirroring 2008 Solid State Disk configuration (Stripping/Dynamic Volume) ** SSD’s courtesy of Solid Data corporation
  • 42. Instance: SQL08DE01 Instance: SQL08DE02 Endpoint name: “EndPoint4DBMirroring1430” Endpoint name: “EndPoint4DBMirroring1440” Role: PARTNER Role: PARTNER SQL Server 2008 SQL Server 2008 Benchmark Mirror Server Configuration Principal Adventure Adventure Works DB Works DB Server translog translog TCP: Listener_Port: 1430 TCP: Listener_Port: 1440 SQL Server 2008 Witness MSDB DB Server TCP: Listener_Port: 1450 Instance: SQL08DE03 Endpoint name: “EndPoint4DBMirroring1450” Role: WITNESS 42 Copyright 2009 all rights reserved
  • 43. DB Mirroring 2008 SSD Benchmarks
  • 44. DB Mirroring 2008 Conventional Disk
  • 45.
  • 46. Mirroring Conventional Disk Client Execution Time 5:11:59 AM Query Profile Statistics Number of transactions 100000 Network Statistics Number of server roundtrips 1 TDS packets sent from client 1 TDS packets received from server 4912 Bytes sent from client 92 Bytes received from server 20117100 Time Statistics Client processing time 622782 Total execution time 622953 Wait time on server replies 171 Conventional Disk DB Mirroring
  • 48. Send Rate 26% Faster Restore Rate 17% Faster
  • 49. Mirroring Solid State Disk Client Execution Time 3:53:14 AM Query Profile Statistics Number of transactions 100000 Network Statistics Number of server roundtrips 1 TDS packets sent from client 1 TDS packets received from server 4951 Bytes sent from client 92 Bytes received from server 20277550 Time Statistics Client processing time 517844 Total execution time 517953 Wait time on server replies 109 For Mirroring execution SSD's TO SSD's
  • 50. DB Mirroring SSD Benchmark Summary Overall send rate 26 % faster (2008 Conventional versus SSD) Overall restore rate 17% faster (2008 Conventional versus SSD) Overall db mirroring topology garners ~ 20% more availability 10 min 17 seconds to complete > 4:32:37am 4:43:00am (principal send’s) > 4:32:48 am 4:43:05am (mirror restore’s) 8 min 38 seconds to complete > 3:45:19am 3:53:20am (principal send’s) > 3:45:20am 3:53:20am (mirror restore’s) 100% Transparent (zero db & application changes) ! 50 Copyright 2009 all rights reserved
  • 51. P&T Products Database Products SQL SuperVision – Sybase SQL SuperVision – Oracle SQL Shot – MS SQL Server
  • 52. Snapshots 52 Copyright 2009 all rights reserved
  • 53. Tr an s Us acti er on s al SQL Server 2008 01 AdventureWork Source CREATE DB ‘xyz’ s DB Server AS SNAPSHOT OF AdventureWorks translog Database Snapshot --- Reverting --- if needed --- RESTORE DB AdventureWorks FROM DATABASE_SNAPSHOT = ‘xyz’ d- U e y) s ea ing tim nl r O se (R rt in- po nt- Re Poi
  • 54. Source Data Pages Source 02 SQL Server 2008 Sparse SQL Server File Pages Snapshot AdventureWork AdventureWork s DB s DB Empty Sparse file of a Snapshot just created (no updates to original data pages have occurred yet) 54 Copyright 2009 all rights reserved
  • 55. Source Data Pages Source 03 SQL Server 2008 Sparse SQL Server File Pages Snapshot AdventureWork AdventureWork s DB s DB System Catalog Copy of original of changed pages pages for snapshot only when a page is changed (Copy-on-write) 55 Copyright 2009 all rights reserved
  • 56. Snapshot Users Source Data Pages SELECT …..data……. FROM AdventureWorks SNAPSHOT 04 SQL Server 2008 SQL Server Snapshot AdventureWork AdventureWork s DB s DB System Catalog Sparse of changed pages File Pages 56 Copyright 2009 all rights reserved
  • 57. Transactional Users Data Pages A C Update Row Committed SQL Server 2008 05 Sparse SQL Server File B Pages Snapshot AdventureWork B AdventureWork s DB s DB translog B System Catalog of changed pages Copy of original pages for snapshot use B only when a page is changed (Copy-on-write)
  • 58. Us All er s SQL Server 2008 06 UPDATE AWSource.tableX AdventureWorks Source DB set xyz = … Server FROM AWSnapshot6:00AM.tableX translog Database 6:00AM Snapshot Snapshot Database 12:00PM Snapshot Snapshot Restore from Database 6:00PM Snapshot Snapshot Any Point-in-time Database 12:00AM Snapshot Snapshot if needed Snapshot
  • 59. Us er Generating s Mass Changes SQL Server 2008 07 Source UPDATE AWSource.tableX AdventureWorks set xyz = … Server DB FROM AWSafegaurd6:00AM.tableX Database SAFEGUARD Snapshot Snapshot (Before the mass changes) Restore from snapshot (if changes are not correct)
  • 60. Te Us stin er g s SQL Server 2008 08 Source AdventureWorks Server DB Database BEFORE TEST Snapshot Snapshot Restore from the BEFORE snapshot after testing cycle is complete and can continue with next test.
  • 61. Tr an s Us act er ion s al Re Poi po nt-i (R rt n- e a i n g ti m d- U e O se SQL Server 2008 nl r s y) 09 AdventureWorks Source DB Server translog Database 6:00AM Reporting Snapshot Snapshot Database 12:00PM Reporting Snapshot Snapshot Database 6:00PM Reporting Snapshot Snapshot Database 12:00AM Reporting Snapshot Snapshot
  • 62. SQL Server 2008 SQL Server 2008 Mirror Server 10 Principal AdventureWorks Server AdventureWorks DB DB translog translog Database Database Snapshot Snapshot becomes the mirror. If this server node SQL Server 2008 Witness rk rk s oo er MSDB DB tw Server tw Us Ne Ne g n rti po Re 62 Copyright 2009 all rights reserved
  • 63. Instance: SQL2008xyz Endpoint Name: “endpoint4mirroring” Role: PARTNER PH Topology With Snapshots SQL Server 2008 Instance: SQL2008zzz Principal Endpoint Name: “endpoint4mirroring” Server Role: PARTNER OLTP Application SQL Server 2008 Active Mirror Server Clustered Replication Adventure Adventure Works DB Works DB translog translog Database Passive PH Snapshot Network Topology Network Principal Server SQL Server 2008 63 Reporting Users Copyright 2009 all rights reserved
  • 64. DB Mirror and Publisher Replication 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 64 Copyright 2009 all rights reserved
  • 65. Distributing Data Sites Data Access Latency Autonomy Frequency Network Machines Owner Other REPLICATION (locations) Each site only Read Only Central Publisher fast/ 1 Transactional repl short high many high 1 OLTP needs regional Reporting Database Mirroring stable server/site site filter by region data Each site only Read Only Central Publisher fast/ 1 Snapshot repl long high many low 1 OLTP needs regional Reporting Database Mirroring stable server/site site filter by region data Regional updates Central Publisher Read Mostly fast/ 1 Transactional repl A few updates short high < 10 medium 1 OLTP on one table stable server/site site Updating Subs Regional update Read Mostly Central Publisher slow/ 1 All Merge repl A few updates medium high < 10 medium all tables unreliab server/site update Regional update Read equal Peer-to-Peer fast/ 1 All Transactional Equal updates short high < 10 medium all tables stable server/site update repl Each site only Inserts 1 Central Subscriber fast/ 1 Transactional repl (new orders) short high many high needs regional stable server/site report data site Central Publisher Hot/Warm Very fast/ 1 Fail-over Remote Distributor high <2 high 1 OLTP Spare short stable server/site site Transactional repl Database Mirroring 65 Copyright 2009 all rights reserved
  • 66. Questions Is there any time left???? Send your questions to: pbertucci@dbarchitechs.com or tgerardin@dbarchitechs.com Copyright 2009 all rights reserved
  • 67. SQL Clustering basic configuration SQL CLUSTER1 Connections C: Local Binaries Windows 2003 EE MSCS Cluster Group Resources SQL Server 2008 (physical) MS DTC S: SQL Agent SQL Full Text Search Master DB SQL Server 2008 SCSI TempDB (Virtual SQL Server) Appl 1 DB VSQLSERVER2008 Quorum Q: Disk SQL Server 2008 (physical) MSCS Windows 2003 EE CLUSTER2 C: Local 67 Binaries Copyright 2009 all rights reserved