SlideShare ist ein Scribd-Unternehmen logo
1 von 11
BakosTech

Analysis, Collaboration and support

High Availability Solutions
Presented by
Viktoria Bakos
Linkedin

http://www.linkedin.com/pub/viktoria-bakos/4/830/363
High availability solutions, architecture and comparison
SQL Server 2012

High level summary
Database Mirroring
Fail over clustering
Transactional Replication
Log Shipping
Always on
Database Mirroring

Provides redundancy using log-transfer mechanism. Log records are sent to the
mirror transaction log as soon as the log buffer is written to the disk on the
principal db. Can be configured either high safety or high performance. Things
to understand for performance reasons: log-generation rate, 3 of concurrent
connections, size of transactions, network bandwidth. You want high
bandwidth, low-latency network for reliability.
Fail over clustering

Cluster includes two or more physical servers (nodes) with identical configuration.
It improves physical server hardware availability excuding shared storage. It
can also improve maintenance downtime. (failover seconds to few minutes).
Shared storage is a single point of failover. Not solution for load balancing.
Clustering requires Enterprise or data center versions of OS and SQL Server
Standard, Enterprise or BI editions. Form SQL Server 2008R2 it can be
geoclusters.(storage - synchronize disk arrays across geodistances). With SQl
Server 2012 you now have multi-site clustering across subnets. Client
application should have reconnect logic to be cluster aware.
Transactional Replication

load balancing option.
Log Shipping
Business continuity option where the database transaction log from one sql server
is backed up and restored onto a secondary SQL Server and deployed for
high-availability such as warm standby, reporting or disaster recovery
purposes. The two SQL Servers have to share connectivity that enables the
secondary to copy the transaction log and restore it. It uses the transaction log
backup, operating system copy file and transaction log restore. You need to
redirect users to a standby server vs clustering. Log shipping does not require
a shared disk system vs clustering. Log shipping requires separate systems
and no shared disk. Log shipping fail over is always a manual process
although you can automate it. Log shipping is done per database.
Always on

New to SQL Server 2012. Maximize availability for one to many databases as a
group by configuring availability groups. It uses Windows Fail over cluster and
SQL server name/ip address. Availability replicas posses a non shared copy of
each of the databases in the availability group where data can be maintained
asynchronously or synchronously. Primary replicas are available for users for
read-write access. Secondary replicas maintain fai lover copy of each
database and can also be read-only access.
Difference between Mirroring and
clustering
Mirroring provides protecting at the database level clustering provides protection
at the instance level
Database mirroring does not require shared storage hardware and does not have
a single failure point with shared storage.
In database mirroring the principal and mirror servers are separate SQL Server
instances with distinct names vs clustering one virtual service name and ip
address remains the same no matter which node the cluster is hosted on.
cluster fail over is longer than the timeout value on database mirroring - so a
mirroring session will reach to a cluster failover as a failure of the principal
server if mirroring is configured on is configured within a cluster. (increase the
database timeout value to mitigate this)
Difference between Mirroring and
transactional replication
database mirroring and transactional replication are both reading the transaction
log on the originating server but synchronization mechanism is different
Database mirroring directly initiates IO to the transaction log file to transfer log
records.
Transactional replication can be used with more than one subscriber and
database mirroring is a one-db-to-one db solution
You cannot read data on the mirrored database (unless you create a database
snapshot- but that's static point in time)) but you can do near real time reads
on the subscriber db
Mirroring vs log shipping
-Both rely on moving the transaction log and restoring it.
-In database mirroring, the mirror db is always in recovery state hence you cannot
query it but in log shipping the database is in standby mode so you can query
the database (if log is not being restored)
-Database mirroring supports only full database recovery while log shipping
supports bulk logged recovery model
-if application relies on several databases then log shipping might be better option
-Mirroring and log shipping can be used together
Database mirroring vs Availability
groups
-Both rely on moving the transaction log records and restoring it
Always on has additional availabilities to database mirroring:
-Always on relies on Windows fail over clustering for virtual IP/name (for client
connection) but unlike clustering only uses non shared disks like database
mirroring
-Always on implements availability groups that contain one-many databases to be
failed over as a single group while db mirroring is single database
-Always on supports up to five fail over partners (synchronous/asynchronous
modes) and db mirroring supports only two partners
-Always on supports read-only replica databases kept in sync that can be used for
reporting or database backup while database mirroring only accessible via
database snapshot

Weitere ähnliche Inhalte

Was ist angesagt?

Altoros using no sql databases for interactive_applications
Altoros using no sql databases for interactive_applicationsAltoros using no sql databases for interactive_applications
Altoros using no sql databases for interactive_applications
Jeff Harris
 
Sql server 2012 dba online training
Sql server 2012 dba online trainingSql server 2012 dba online training
Sql server 2012 dba online training
sqlmasters
 
Semantic Search Engines
Semantic Search EnginesSemantic Search Engines
Semantic Search Engines
Atul Shridhar
 

Was ist angesagt? (19)

Geek Sync | SQL Security Principals and Permissions 101
Geek Sync | SQL Security Principals and Permissions 101Geek Sync | SQL Security Principals and Permissions 101
Geek Sync | SQL Security Principals and Permissions 101
 
Liquid: A Scalable Deduplication File System for Virtual Machine Images
Liquid: A Scalable Deduplication File System for Virtual Machine Images Liquid: A Scalable Deduplication File System for Virtual Machine Images
Liquid: A Scalable Deduplication File System for Virtual Machine Images
 
liquid a scalable deduplication file system for virtual machine images
liquid a scalable deduplication file system for virtual machine imagesliquid a scalable deduplication file system for virtual machine images
liquid a scalable deduplication file system for virtual machine images
 
NoSQL Databases: An Introduction and Comparison between Dynamo, MongoDB and C...
NoSQL Databases: An Introduction and Comparison between Dynamo, MongoDB and C...NoSQL Databases: An Introduction and Comparison between Dynamo, MongoDB and C...
NoSQL Databases: An Introduction and Comparison between Dynamo, MongoDB and C...
 
Mule hdfs connector
Mule hdfs connectorMule hdfs connector
Mule hdfs connector
 
Csql Cache
Csql CacheCsql Cache
Csql Cache
 
Datastores
DatastoresDatastores
Datastores
 
Alwayson AG enhancements
Alwayson AG enhancementsAlwayson AG enhancements
Alwayson AG enhancements
 
Altoros using no sql databases for interactive_applications
Altoros using no sql databases for interactive_applicationsAltoros using no sql databases for interactive_applications
Altoros using no sql databases for interactive_applications
 
Oracle golden gate comparison
Oracle golden gate comparisonOracle golden gate comparison
Oracle golden gate comparison
 
Sql server 2012 dba online training
Sql server 2012 dba online trainingSql server 2012 dba online training
Sql server 2012 dba online training
 
Semantic Search Engines
Semantic Search EnginesSemantic Search Engines
Semantic Search Engines
 
HTTP Session Replication with Oracle Coherence, GlassFish, WebLogic
HTTP Session Replication with Oracle Coherence, GlassFish, WebLogicHTTP Session Replication with Oracle Coherence, GlassFish, WebLogic
HTTP Session Replication with Oracle Coherence, GlassFish, WebLogic
 
11g architecture
11g architecture11g architecture
11g architecture
 
Lect 07 data replication
Lect 07 data replicationLect 07 data replication
Lect 07 data replication
 
Apache ActiveMQ
Apache ActiveMQApache ActiveMQ
Apache ActiveMQ
 
Database Configuration for Maximum SharePoint 2010 Performance
Database Configuration for Maximum SharePoint 2010 PerformanceDatabase Configuration for Maximum SharePoint 2010 Performance
Database Configuration for Maximum SharePoint 2010 Performance
 
How to think like the engine
How to think like the engineHow to think like the engine
How to think like the engine
 
Failover cluster
Failover clusterFailover cluster
Failover cluster
 

Andere mochten auch

DB2 V 10 HADR Multiple Standby
DB2 V 10 HADR Multiple StandbyDB2 V 10 HADR Multiple Standby
DB2 V 10 HADR Multiple Standby
Dale McInnis
 
High Availability and Disaster Recovery
High Availability and Disaster RecoveryHigh Availability and Disaster Recovery
High Availability and Disaster Recovery
Akelios
 

Andere mochten auch (20)

Design patterns and plan for developing high available azure applications
Design patterns and plan for developing high available azure applicationsDesign patterns and plan for developing high available azure applications
Design patterns and plan for developing high available azure applications
 
Oracle database high availability solutions
Oracle database high availability solutionsOracle database high availability solutions
Oracle database high availability solutions
 
High Availability (HA) Explained
High Availability (HA) ExplainedHigh Availability (HA) Explained
High Availability (HA) Explained
 
Architecting for High Availability
Architecting for High AvailabilityArchitecting for High Availability
Architecting for High Availability
 
Top 10 DB2 Support Nightmares #9
Top 10 DB2 Support Nightmares  #9Top 10 DB2 Support Nightmares  #9
Top 10 DB2 Support Nightmares #9
 
Linux Disaster Recovery Solutions
Linux Disaster Recovery SolutionsLinux Disaster Recovery Solutions
Linux Disaster Recovery Solutions
 
A05
A05A05
A05
 
DB2 High Availability für IBM Connections, Sametime oder Traveler
DB2 High Availability für IBM Connections, Sametime oder TravelerDB2 High Availability für IBM Connections, Sametime oder Traveler
DB2 High Availability für IBM Connections, Sametime oder Traveler
 
Oracle Maximum Availability Architecture
Oracle Maximum Availability ArchitectureOracle Maximum Availability Architecture
Oracle Maximum Availability Architecture
 
High Availability Options for Modern Oracle Infrastructures
High Availability Options for Modern Oracle InfrastructuresHigh Availability Options for Modern Oracle Infrastructures
High Availability Options for Modern Oracle Infrastructures
 
SQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability Groups
SQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability GroupsSQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability Groups
SQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability Groups
 
D02 Evolution of the HADR tool
D02 Evolution of the HADR toolD02 Evolution of the HADR tool
D02 Evolution of the HADR tool
 
HA & DR System Design - Concepts and Solution
HA & DR System Design - Concepts and SolutionHA & DR System Design - Concepts and Solution
HA & DR System Design - Concepts and Solution
 
DB2 V 10 HADR Multiple Standby
DB2 V 10 HADR Multiple StandbyDB2 V 10 HADR Multiple Standby
DB2 V 10 HADR Multiple Standby
 
High Availability and Disaster Recovery
High Availability and Disaster RecoveryHigh Availability and Disaster Recovery
High Availability and Disaster Recovery
 
Linux Disaster Recovery Best Practices with rear
Linux Disaster Recovery Best Practices with rearLinux Disaster Recovery Best Practices with rear
Linux Disaster Recovery Best Practices with rear
 
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
 
High Availability Asterisk and FreePBX on Microsoft Azure
High Availability Asterisk and FreePBX on Microsoft AzureHigh Availability Asterisk and FreePBX on Microsoft Azure
High Availability Asterisk and FreePBX on Microsoft Azure
 
SharePoint Backup And Disaster Recovery with Joel Oleson
SharePoint Backup And Disaster Recovery with Joel OlesonSharePoint Backup And Disaster Recovery with Joel Oleson
SharePoint Backup And Disaster Recovery with Joel Oleson
 
Best Practices in Disaster Recovery Planning and Testing
Best Practices in Disaster Recovery Planning and TestingBest Practices in Disaster Recovery Planning and Testing
Best Practices in Disaster Recovery Planning and Testing
 

Ähnlich wie High availability solutions bakostech

Sql 2012 always on
Sql 2012 always onSql 2012 always on
Sql 2012 always on
dilip nayak
 
Sql server’s high availability technologies
Sql server’s high availability technologiesSql server’s high availability technologies
Sql server’s high availability technologies
venkatchs
 
EOUG95 - Client Server Very Large Databases - Paper
EOUG95 - Client Server Very Large Databases - PaperEOUG95 - Client Server Very Large Databases - Paper
EOUG95 - Client Server Very Large Databases - Paper
David Walker
 
Effective Usage of SQL Server 2005 Database Mirroring
Effective Usage of SQL Server 2005 Database MirroringEffective Usage of SQL Server 2005 Database Mirroring
Effective Usage of SQL Server 2005 Database Mirroring
webhostingguy
 
Using replication, you can distribute data to different locations an.pdf
Using replication, you can distribute data to different locations an.pdfUsing replication, you can distribute data to different locations an.pdf
Using replication, you can distribute data to different locations an.pdf
mcmillenfawbushrom13
 
WINDOWS SERVER JALAN INSTALASINYA DAN IMPLEMENTASINYA
WINDOWS SERVER JALAN INSTALASINYA DAN IMPLEMENTASINYAWINDOWS SERVER JALAN INSTALASINYA DAN IMPLEMENTASINYA
WINDOWS SERVER JALAN INSTALASINYA DAN IMPLEMENTASINYA
AditiaHamid1
 
NZSPC 2013 - Ultimate SharePoint Infrastructure Best Practices Session
NZSPC 2013 - Ultimate SharePoint Infrastructure Best Practices SessionNZSPC 2013 - Ultimate SharePoint Infrastructure Best Practices Session
NZSPC 2013 - Ultimate SharePoint Infrastructure Best Practices Session
Michael Noel
 
Why to upgrade to SQLServer 2012?
Why to upgrade to SQLServer 2012?Why to upgrade to SQLServer 2012?
Why to upgrade to SQLServer 2012?
Sarabpreet Anand
 
High Availbilty In Sql Server
High Availbilty In Sql ServerHigh Availbilty In Sql Server
High Availbilty In Sql Server
Rishikesh Tiwari
 
Data management in cloud study of existing systems and future opportunities
Data management in cloud study of existing systems and future opportunitiesData management in cloud study of existing systems and future opportunities
Data management in cloud study of existing systems and future opportunities
Editor Jacotech
 

Ähnlich wie High availability solutions bakostech (20)

Sql 2012 always on
Sql 2012 always onSql 2012 always on
Sql 2012 always on
 
SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)
 
Sql server’s high availability technologies
Sql server’s high availability technologiesSql server’s high availability technologies
Sql server’s high availability technologies
 
Why you should(n't) run your databases in the cloud
Why you should(n't) run your databases in the cloudWhy you should(n't) run your databases in the cloud
Why you should(n't) run your databases in the cloud
 
EOUG95 - Client Server Very Large Databases - Paper
EOUG95 - Client Server Very Large Databases - PaperEOUG95 - Client Server Very Large Databases - Paper
EOUG95 - Client Server Very Large Databases - Paper
 
Effective Usage of SQL Server 2005 Database Mirroring
Effective Usage of SQL Server 2005 Database MirroringEffective Usage of SQL Server 2005 Database Mirroring
Effective Usage of SQL Server 2005 Database Mirroring
 
Using replication, you can distribute data to different locations an.pdf
Using replication, you can distribute data to different locations an.pdfUsing replication, you can distribute data to different locations an.pdf
Using replication, you can distribute data to different locations an.pdf
 
Windows Server 2019.pptx
Windows Server 2019.pptxWindows Server 2019.pptx
Windows Server 2019.pptx
 
WINDOWS SERVER JALAN INSTALASINYA DAN IMPLEMENTASINYA
WINDOWS SERVER JALAN INSTALASINYA DAN IMPLEMENTASINYAWINDOWS SERVER JALAN INSTALASINYA DAN IMPLEMENTASINYA
WINDOWS SERVER JALAN INSTALASINYA DAN IMPLEMENTASINYA
 
Azure SQL - more or/and less than SQL Server
Azure SQL - more or/and less than SQL ServerAzure SQL - more or/and less than SQL Server
Azure SQL - more or/and less than SQL Server
 
SharePoint Saturday Michigan Keynote - Top 5 Infrastructure Concerns for a Sh...
SharePoint Saturday Michigan Keynote - Top 5 Infrastructure Concerns for a Sh...SharePoint Saturday Michigan Keynote - Top 5 Infrastructure Concerns for a Sh...
SharePoint Saturday Michigan Keynote - Top 5 Infrastructure Concerns for a Sh...
 
NZSPC 2013 - Ultimate SharePoint Infrastructure Best Practices Session
NZSPC 2013 - Ultimate SharePoint Infrastructure Best Practices SessionNZSPC 2013 - Ultimate SharePoint Infrastructure Best Practices Session
NZSPC 2013 - Ultimate SharePoint Infrastructure Best Practices Session
 
MongoDB
MongoDBMongoDB
MongoDB
 
GWAB 2015 - Data Plaraform
GWAB 2015 - Data PlaraformGWAB 2015 - Data Plaraform
GWAB 2015 - Data Plaraform
 
Why to upgrade to SQLServer 2012?
Why to upgrade to SQLServer 2012?Why to upgrade to SQLServer 2012?
Why to upgrade to SQLServer 2012?
 
High Availbilty In Sql Server
High Availbilty In Sql ServerHigh Availbilty In Sql Server
High Availbilty In Sql Server
 
NA14G05 - A DB2 DBAs Guide to pureScale.pdf
NA14G05 - A DB2 DBAs Guide to pureScale.pdfNA14G05 - A DB2 DBAs Guide to pureScale.pdf
NA14G05 - A DB2 DBAs Guide to pureScale.pdf
 
UNIT -III.docx
UNIT -III.docxUNIT -III.docx
UNIT -III.docx
 
J2EE Batch Processing
J2EE Batch ProcessingJ2EE Batch Processing
J2EE Batch Processing
 
Data management in cloud study of existing systems and future opportunities
Data management in cloud study of existing systems and future opportunitiesData management in cloud study of existing systems and future opportunities
Data management in cloud study of existing systems and future opportunities
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Kürzlich hochgeladen (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

High availability solutions bakostech

  • 1. BakosTech Analysis, Collaboration and support High Availability Solutions Presented by Viktoria Bakos Linkedin http://www.linkedin.com/pub/viktoria-bakos/4/830/363
  • 2. High availability solutions, architecture and comparison SQL Server 2012 High level summary Database Mirroring Fail over clustering Transactional Replication Log Shipping Always on
  • 3. Database Mirroring Provides redundancy using log-transfer mechanism. Log records are sent to the mirror transaction log as soon as the log buffer is written to the disk on the principal db. Can be configured either high safety or high performance. Things to understand for performance reasons: log-generation rate, 3 of concurrent connections, size of transactions, network bandwidth. You want high bandwidth, low-latency network for reliability.
  • 4. Fail over clustering Cluster includes two or more physical servers (nodes) with identical configuration. It improves physical server hardware availability excuding shared storage. It can also improve maintenance downtime. (failover seconds to few minutes). Shared storage is a single point of failover. Not solution for load balancing. Clustering requires Enterprise or data center versions of OS and SQL Server Standard, Enterprise or BI editions. Form SQL Server 2008R2 it can be geoclusters.(storage - synchronize disk arrays across geodistances). With SQl Server 2012 you now have multi-site clustering across subnets. Client application should have reconnect logic to be cluster aware.
  • 6. Log Shipping Business continuity option where the database transaction log from one sql server is backed up and restored onto a secondary SQL Server and deployed for high-availability such as warm standby, reporting or disaster recovery purposes. The two SQL Servers have to share connectivity that enables the secondary to copy the transaction log and restore it. It uses the transaction log backup, operating system copy file and transaction log restore. You need to redirect users to a standby server vs clustering. Log shipping does not require a shared disk system vs clustering. Log shipping requires separate systems and no shared disk. Log shipping fail over is always a manual process although you can automate it. Log shipping is done per database.
  • 7. Always on New to SQL Server 2012. Maximize availability for one to many databases as a group by configuring availability groups. It uses Windows Fail over cluster and SQL server name/ip address. Availability replicas posses a non shared copy of each of the databases in the availability group where data can be maintained asynchronously or synchronously. Primary replicas are available for users for read-write access. Secondary replicas maintain fai lover copy of each database and can also be read-only access.
  • 8. Difference between Mirroring and clustering Mirroring provides protecting at the database level clustering provides protection at the instance level Database mirroring does not require shared storage hardware and does not have a single failure point with shared storage. In database mirroring the principal and mirror servers are separate SQL Server instances with distinct names vs clustering one virtual service name and ip address remains the same no matter which node the cluster is hosted on. cluster fail over is longer than the timeout value on database mirroring - so a mirroring session will reach to a cluster failover as a failure of the principal server if mirroring is configured on is configured within a cluster. (increase the database timeout value to mitigate this)
  • 9. Difference between Mirroring and transactional replication database mirroring and transactional replication are both reading the transaction log on the originating server but synchronization mechanism is different Database mirroring directly initiates IO to the transaction log file to transfer log records. Transactional replication can be used with more than one subscriber and database mirroring is a one-db-to-one db solution You cannot read data on the mirrored database (unless you create a database snapshot- but that's static point in time)) but you can do near real time reads on the subscriber db
  • 10. Mirroring vs log shipping -Both rely on moving the transaction log and restoring it. -In database mirroring, the mirror db is always in recovery state hence you cannot query it but in log shipping the database is in standby mode so you can query the database (if log is not being restored) -Database mirroring supports only full database recovery while log shipping supports bulk logged recovery model -if application relies on several databases then log shipping might be better option -Mirroring and log shipping can be used together
  • 11. Database mirroring vs Availability groups -Both rely on moving the transaction log records and restoring it Always on has additional availabilities to database mirroring: -Always on relies on Windows fail over clustering for virtual IP/name (for client connection) but unlike clustering only uses non shared disks like database mirroring -Always on implements availability groups that contain one-many databases to be failed over as a single group while db mirroring is single database -Always on supports up to five fail over partners (synchronous/asynchronous modes) and db mirroring supports only two partners -Always on supports read-only replica databases kept in sync that can be used for reporting or database backup while database mirroring only accessible via database snapshot