SlideShare a Scribd company logo
Mecanismos de alta disponibilidad
con Microsoft SQL Server 2008
Por: ISC Lenin López Fernández de Lara
Temario
 Database Mirroring
 Log Shipping
 Replication
 Failover Clustering
 Demo
1.1 Database Mirroring Roles
1.2 Operating Modes
High Availability
High Safety
High
Performance
1.2.1 High Availability Operating
Mode
synchronous
Automatic failover
Writes a
transaction to
th transaction
log
The
transaction is
first committed
on the mirror
database
Performance
impact
Uses simple ping
1.2.2 High Performance Operating Mode
Asynchronou
s
No automatic
failover
1.2.3 High Safety Operating
Mode
Synchronous
Manually failover
Writes a
transaction to
th transaction
log
The
transaction is
first committed
on the mirror
database
Performance
impact
Log Shipping
¿What is?
 Provides a means to maintain a secondary server
on an automated basis using a chain of transaction
log backups
 Also allows you to configure a monitor server that
can verify the health
1.1 Log Shipping Scenarios
Offloading
Report
Activity
Initialization
for
Database
Mirroring
Upgrading
Versions or
Migrating to
a New
Platform
Primary or
Secondary
Availability
Solution
1.1.1 Offloading Report
Activity
Reporting
server
SELECT
statements
Standby
Mode
1.1.2 Initialization for Database Mirroring
backups of the
principal
principal and
mirror are
synchronized
minimizes
the time
1.1.3 Upgrading Versions or
Migrating to a New Platform
build the new
instance
a brief
outage on
the
applications
move the
databases
1.1.4 Primary or Secondary
Availability Solution
Secondary
databases
an outage
of the
primary
database
that
applications
can switch
1.2 Log Shipping Components
Replication
¿What is?
 Replication is designed as a data-distribution
mechanism.
 The core replication engine is designed for very
flexible implementation
 The core architecture can be used to provide
availability for a database because a redundant
copy of data is maintained in synchronization with
a master copy
1.1 Replication Components
• The basic building block of replication
• Can be defined against a table, view, stored
procedure, or function
Articles
• Publications are groupings of articles that
define the replication setPublications
• You can apply one or more filters to each
article that restrict the set of data that is
replicated.
• You can fi lter articles by rows or by columns
Filters
1.2 Replication Roles
• Maintains the master copy of the data within a
replication architecturepublisher
• Is the database that is receiving changes from
the replication engine defined by the publication to
which it is subscribing
subscriber
• Is the main engine within a replication architecture
• The distribution database is stored on the instance
that is configured as the distributor (An instance of
SQL).
distributor
1.3 Replication Topologies
Central
Publisher
Other
Central
Subscriber
1.3.1 Central Publisher
Topology
1.3.2 Central Subscriber
Topology
1.6 Replication Methods
Snapshot
Replication
Merge
Replication
Transactional
Replication
1.6.1 Snapshot Replication
1. Snapshot Agent
extracts the
schema and BCPs
the data
2. Distribution Agent then
picks up and applies the
snapshot to each
subscriber (tables are
dropped and re-created,
then the data is copied
using BCP)
It is not
normally
used for high
availability
full replace of
data
1.6.2 Transactional
Replication
 Begins with an initial snapshot being applied to the
subscriber to ensure that the two databases are
synchronized
 As subsequent transactions are issued against the
publisher, the replication engine applies them to the
subscriber.
2.2 Transactional Options
Merge Replication
¿What is?
 Merge replication is another alternative that can be
applied to high-availability systems.
 Merge replication was primarily designed for mobile,
disconnected users.
 By translation, the mechanisms are already built in
for changes to occur at any location and get
synchronized, as well as to be able to withstand
failures and continue processing
3.1 Change Tracking
(synchronize process)
MSmerge
_genhist
ory
MSmerge
_tombston
e
MSmerge
_genhist
ory
MSmerge
_tombston
e
Windows Clustering
¿What is?
 Windows clustering enables multiple pieces of
hardware to act as a single platform for running
applications.
1.1 Windows Cluster
Components
1.2 Types of Clusters
Standard
Windows
Cluster
Majority
Node
Set
Cluster
2.2 Failover Cluster Instance Components
The components that you need to configure for a SQL
Server failover clustered instance are the following:
 IP addresses
 Network names
 Disk drives on the shared drive array
 SQL Server services
 Service accounts
Demo
 Mirroring High Availability
¿######?

More Related Content

PDF
Sql server replication step by step
PPT
Management on Cloud 2011
DOCX
data replication
PDF
A load balancing model based on cloud partitioning
PPTX
A load balancing model based on cloud partitioning for the public cloud. ppt
PPT
XenApp Load Balancing
PPT
Load balancing
PPTX
Load balancing
Sql server replication step by step
Management on Cloud 2011
data replication
A load balancing model based on cloud partitioning
A load balancing model based on cloud partitioning for the public cloud. ppt
XenApp Load Balancing
Load balancing
Load balancing

What's hot (20)

PPTX
PPTX
Database replication
PPTX
Replication in Distributed Systems
DOCX
Load balancing in Distributed Systems
PPTX
LOAD BALANCING ALGORITHMS
PPTX
Load balancing
PPTX
Load Balancing Server
DOC
Dynamic load balancing in distributed systems in the presence of delays a re...
PPTX
Cloud datacenters
PPT
Dynamic Load balancing Linux private Cloud (DRS)
PDF
Virtual Machine Migration Techniques in Cloud Environment: A Survey
PPTX
Orbe: Scalable Causal Consistency Using Dependency Matrices and Physical Clocks
PPTX
Multi processor scheduling
PPTX
cloud computing: Vm migration
PPT
PDF
Process coordination
PPTX
The Power of Determinism in Database Systems
PPT
18 philbe replication stanford99
PDF
PROPOSED LOAD BALANCING ALGORITHM TO REDUCE RESPONSE TIME AND PROCESSING TIME...
PDF
An Overview of Distributed Debugging
Database replication
Replication in Distributed Systems
Load balancing in Distributed Systems
LOAD BALANCING ALGORITHMS
Load balancing
Load Balancing Server
Dynamic load balancing in distributed systems in the presence of delays a re...
Cloud datacenters
Dynamic Load balancing Linux private Cloud (DRS)
Virtual Machine Migration Techniques in Cloud Environment: A Survey
Orbe: Scalable Causal Consistency Using Dependency Matrices and Physical Clocks
Multi processor scheduling
cloud computing: Vm migration
Process coordination
The Power of Determinism in Database Systems
18 philbe replication stanford99
PROPOSED LOAD BALANCING ALGORITHM TO REDUCE RESPONSE TIME AND PROCESSING TIME...
An Overview of Distributed Debugging
Ad

Viewers also liked (10)

PPTX
Opeyemi owoeye
PDF
Fath ul Bari 12
PDF
CERTIFICATE_02
PDF
Lookingforwardenglish
PPTX
Convergent%20 ablation%20without%20movie
PPT
KUBA Ka
PPTX
Slidrshare
PDF
Slide dn g presentation mp 2014
PPTX
PPTX
Sewer Appurtanances
Opeyemi owoeye
Fath ul Bari 12
CERTIFICATE_02
Lookingforwardenglish
Convergent%20 ablation%20without%20movie
KUBA Ka
Slidrshare
Slide dn g presentation mp 2014
Sewer Appurtanances
Ad

Similar to Madsqlserver (20)

DOCX
Sql server 2008 replication and database mirroring white paper
PPTX
SQL Server High Availability and Disaster Recovery
PPTX
SQL Server 2008 R2 - Implementing High Availabilitty
PPTX
Sql disaster recovery
PDF
Dr and ha solutions with sql server azure
PPT
Effective Usage of SQL Server 2005 Database Mirroring
DOC
Case Study For Replication For PCMS
PPTX
Sql server’s high availability technologies
PDF
Divide & Conquer Reporting By Scaling Out with Replication
PPTX
Conquer Reporting by Scaling Out SQL Server
PPTX
Introduction to High Availability with SQL Server
PPTX
Sql Server 2012 HA and DR -- SQL Saturday Richmond
PPTX
Sql server 2012 ha and dr sql saturday tampa
PPT
arch_mtg_sqlsig_hcotter_replication.ppt
PPTX
Db spof(mssql, my sql)
PPTX
Sql server 2012 ha and dr sql saturday dc
PPTX
SQLBits 2008 - SQL Server High Availability and Disaster Recovery Overview - ...
PDF
A Tour of Azure SQL Databases (NOVA SQL UG 2020)
PPT
High Availbilty In Sql Server
PPTX
Sql server 2012 ha and dr sql saturday boston
Sql server 2008 replication and database mirroring white paper
SQL Server High Availability and Disaster Recovery
SQL Server 2008 R2 - Implementing High Availabilitty
Sql disaster recovery
Dr and ha solutions with sql server azure
Effective Usage of SQL Server 2005 Database Mirroring
Case Study For Replication For PCMS
Sql server’s high availability technologies
Divide & Conquer Reporting By Scaling Out with Replication
Conquer Reporting by Scaling Out SQL Server
Introduction to High Availability with SQL Server
Sql Server 2012 HA and DR -- SQL Saturday Richmond
Sql server 2012 ha and dr sql saturday tampa
arch_mtg_sqlsig_hcotter_replication.ppt
Db spof(mssql, my sql)
Sql server 2012 ha and dr sql saturday dc
SQLBits 2008 - SQL Server High Availability and Disaster Recovery Overview - ...
A Tour of Azure SQL Databases (NOVA SQL UG 2020)
High Availbilty In Sql Server
Sql server 2012 ha and dr sql saturday boston

More from Juan Carlos Olivares Rojas (20)

PPTX
PPTX
Ropec20neural stick
PPTX
Analítica de Datos usando Single Board Computers
PPTX
Analitica de Datos en Dispositivos de Internet de las Cosas
PPTX
A Comparative Assessment of Cryptography Algorithms for Data Analytic Applica...
PPTX
Propuesta de Flexibilidad Curricular en el Tecnológico Nacional de México
PPTX
Analítica de Datos en Simulador de Redes para Sistemas de Medición Inteligente
PPTX
Propuesta de Mercado Eléctrico Minorista Transactivo en México
PPTX
Cyber Security on Transactions in Smart Metering Systems usign Blockchain
PPTX
A Survey on Smart Metering Systems using Blockchain for E-mobility
PPTX
Detección de Movimiento usando Medidores Inteligentes
PPTX
A Survey on Smart Metering Systems using Human-Computer Interaction
PPTX
Machine Learnign Model for the Detection of Electricity Energy Fraud Using an...
PPTX
Forecasting Electricity Consumption Using Weather Data in Edge-Fog-Cloud Data...
PPTX
Aplicacion de Tecnicas de UX en el Desarrollo de un Portal de un Sistema de M...
PPTX
Internet de las Cosas en Redes Eléctricas Inteligentes
PPTX
Estrategias didacticas
PDF
Optimización de la Eficiencia Energética en los Hogares utilizando una Arquit...
PPTX
Ciber Seguridad en Redes Eléctricas Inteligentes
PPTX
Estudio de Vulnerabilidad de Protocolos y Redes de Comunicación para Medidore...
Ropec20neural stick
Analítica de Datos usando Single Board Computers
Analitica de Datos en Dispositivos de Internet de las Cosas
A Comparative Assessment of Cryptography Algorithms for Data Analytic Applica...
Propuesta de Flexibilidad Curricular en el Tecnológico Nacional de México
Analítica de Datos en Simulador de Redes para Sistemas de Medición Inteligente
Propuesta de Mercado Eléctrico Minorista Transactivo en México
Cyber Security on Transactions in Smart Metering Systems usign Blockchain
A Survey on Smart Metering Systems using Blockchain for E-mobility
Detección de Movimiento usando Medidores Inteligentes
A Survey on Smart Metering Systems using Human-Computer Interaction
Machine Learnign Model for the Detection of Electricity Energy Fraud Using an...
Forecasting Electricity Consumption Using Weather Data in Edge-Fog-Cloud Data...
Aplicacion de Tecnicas de UX en el Desarrollo de un Portal de un Sistema de M...
Internet de las Cosas en Redes Eléctricas Inteligentes
Estrategias didacticas
Optimización de la Eficiencia Energética en los Hogares utilizando una Arquit...
Ciber Seguridad en Redes Eléctricas Inteligentes
Estudio de Vulnerabilidad de Protocolos y Redes de Comunicación para Medidore...

Madsqlserver

Editor's Notes

  • #4: You can confi gure an optional witness server for each session, and a single witness server can manage multiple Database Mirroring sessions.
  • #11: Informe de Actividad de descarga. Usted puede utilizar el log shiping para mantener un servidor de informes. En lugar de restaurar copias de seguridad del registro de transacciones con la opción de No Recovery Option, se puede especificar en Standby en su lugar. Las bases de datos restauradas en Standby Mode habilitar las conexiones, así como las sentencias SELECT que se publicará. Las operaciones de restauración no se les permite, mientras que las conexiones a la base de datos existe. Para reducir al mínimo el tiempo de inactividad, la base de datos secundaria debe tener una latencia muy poco con los database.These principales competidoras requisitos descartar modo de espera como una opción de alta disponibilidad.
  • #12: De inicializar la creación de reflejo de base de datos de copias de seguridad de la principal. Después de todo las copias de seguridad de las principales son restauradas, y el director y el espejo se sincronizan, iniciando la sesión de reflejo de base de datos requiere sólo uno o dos segundos. Un ejemplo muy común de la inicialización de una sesión de reflejo de base de datos es utilizar el trasvase para obtener el espejo principal y muy cerca en el tiempo de modo que sólo unos segundos son necesarios para que la base de datos en línea de reflejo sesión. Esto minimiza el tiempo requerido para iniciar el reflejo de base antes de que las aplicaciones pueden seguir para procesar transacciones.
  • #13: Un lado a lado de actualización es muy similar a la migración a una nueva plataforma. En ambos casos, se construye la nueva instancia y luego mover las bases de datos. Si usted necesita para reducir al mínimo el tiempo de inactividad de las aplicaciones, puede utilizar el trasvase de registros de aplicar una cadena de registros de transacciones a la nueva instancia. Luego, bastaría con una breve interrupción en las aplicaciones, mientras que el resto de las copias de seguridad de registro de transacciones se aplican antes de las aplicaciones se puede cambiar a la nueva instancia.
  • #14: The scope of log shipping is limited to a database SQL Server does not allow multidatabase transactions log shipping breaks this integrity in multiples databases
  • #15: Secondary Standby Mode (SELECT statements) or No Recovery. You cannot restore transaction logs when users are connected to the database, so you should not use Standby Mode for high-availability architectures. The monitor server, which is optional within a log shipping architecture, contains a set of jobs that send alerts when the log shipping session is perceived to be out of sync.
  • #20: A central publisher topology consists of a single publisher that has one or more subscribers. The central publisher contains the master copy of the data and is used to set up the replication architecture. In this topology, data changes generally occur at a single source, the publisher, and fl ow down to one or more subscribers, as shown in Figure 17-1. A central publisher is the most common topology used in replication.
  • #21: A central subscriber topology consists of a single subscriber that has more than one publisher. Changes are written to multiple publishers and then consolidated into a single subscriber, as shown in Figure 17-2. A central subscriber topology is normally used for consolidating multiple databases or as a central reporting database.
  • #27: Each time the merge engine runs, it makes one basic request of both the publisher and subscriber (manda lo que no tenga moves only the changes that do not already exist) When a change is applied, it is removed from the replication engine. The merge metadata tables are located in the same database as the articles you are publishing. Therefore, when you back up the database, you back up the merge metadata at the same time The merge engine uses the metadata to determine the changes that need to be applied. Because both publisher and subscriber maintain a full history of all changes and the metadata is stored within the same database participating in replication, backup/restore processes keep the metadata synchronized with the data being replicated. This ensures that the merge engine can recover, even from a restore operation, and incrementally resynchronize itself.
  • #29: MSCS=Microsoft Cluster Server