Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Professional SQL Server High Availability and Disaster Recovery

You're reading from  Professional SQL Server High Availability and Disaster Recovery

Product type Book
Published in Jan 2019
Publisher Packt
ISBN-13 9781789802597
Pages 564 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Ahmad Osama Ahmad Osama
Profile icon Ahmad Osama
Toc

Table of Contents (9) Chapters close

Professional SQL Server High Availability and Disaster Recovery
Preface
1. Getting Started with SQL Server HA and DR 2. Transactional Replication 3. Monitoring Transactional Replication 4. AlwaysOn Availability Groups 5. Managing AlwaysOn Availability Groups 6. Configuring and Managing Log Shipping Appendix

AlwaysOn AG Failover


A failover can be of two types:

  • An automatic failover, triggered as a result of the primary instance being unavailable or the availability databases being unavailable (when database level health detection is enabled)

  • A manual failover to a synchronous (zero data loss) or an asynchronous (data loss) replica

Let's now look at automatic and manual failover in detail.

Automatic Failover

In a real-world scenario, an automatic failover is triggered when a primary instance is unavailable, or any of the availability databases are unavailable (when database-level health detection is enabled).

Let's simulate a primary node failure and verify the automatic failover works. However, before that, let's just verify the configuration. To do this, you can open the Failover Cluster Manager and verify that all nodes are active and DPLPR is the owner of the DPLAG role.

Note

Connect to the DPLHA VM as we will shut down the DPLPR VM to simulate failure and trigger automatic failover.

Also, make sure...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime