Top Banner
Webinar Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes
44

Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

Aug 06, 2015

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

Webinar

Critical SQL Server Databases:

Provide HA with SQL Server Failover

Clustering and Cluster Shared Volumes

Page 2: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

Edwin Sarmiento

http://[email protected]@EdwinMSarmientohttp://ca.linkedin.com/in/EdwinMSarmiento

Microsoft MVP/Microsoft Certified Master: SQL Server

Page 3: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes
Page 4: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

high

availability

Page 5: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

high

availability

characteristic of a system that is

fu l l y operat ional

for a long period of time

Page 6: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

high

availability

is NOT the same as

UPTIME

Page 7: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

Just because

something is

UPdoesn’t mean it’s

available

UP

available

Page 8: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

Recovery Time Objective

(RTO)

high

availability

When is my application coming back?

Page 9: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

downt imehigh ZERO

Page 10: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

(one “nine”)

% availability

90

36.5 daysper year

72 hoursper month

16.8 hoursper week

dow

ntim

e

Page 11: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

(two “nines”)

% availability

99

3.65 daysper year

7.2 hoursper month

1.68 hoursper week

dow

ntim

e

Page 12: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

(three “nines”)

% availability

99.9

8.76 hoursper year

43.8 minutesper month

10.1 minutesper week

dow

ntim

e

Page 13: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

(four “nines”)

% availability

99.99

52.56 minutesper year

4.32 minutesper month

1.01 minutesper week

dow

ntim

e

Page 14: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

(five “nines”)

% availability

99.999

5.26 minutesper year

25.9 secondsper month

6.05 secondsper week

dow

ntim

e

Page 15: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

(five “nines”)

% availability

99.999

5.26 minutesper year

25.9 secondsper month

6.05 secondsper week

dow

ntim

e

How long does it take to restart

SQL Server

Page 16: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

0

10000

20000

30000

40000

50000

60000

70000

1 2 3 4 5 6 7 8 9 10 11

Co

st

Time

Availability/RTO versus Total Cost of Ownership

Page 17: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

downt imehigh ZERO

Page 18: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

features

high

availability

Page 19: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

https://msdn.microsoft.com/en-us/library/cc645993.aspx#High_availability

Page 20: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

ALWAYSON AVAILABILITY

GROUPS

Page 21: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

introduced in SQL Server 2012

ALWAYSON AVAILABILITY

GROUPS

*DATABASE (group) protection

Page 22: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

can either be an HA and/or DR solution

ALWAYSON AVAILABILITY

GROUPS

*DATABASE (group) protection

Page 23: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

combination of

DATABASE MIRRORING &

FAILOVER CLUSTERING

ALWAYSON AVAILABILITY

GROUPS

Page 24: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

SQL Server

log data

SQL Server

log data

Secondary ReplicaPrimary Replica

SQL Server

log data

Secondary Replica

*maximum of EIGHT replicas

Windows Server Failover Cluster

Database Mirroring

Page 25: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

challenge

Availability Group

SQL Server

Enterprise Edition

requires

Page 26: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

FAILOVER CLUSTERING

Page 27: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

*INSTANCE protection

FAILOVER CLUSTERING

can either be an HA and/or DR solution

Page 28: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

log data

failover clustering

how it works

Windows Server Failover Cluster

SQL Server

2-node clustert r a d i t i o na l

Page 29: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

failover clustering

how it works

Windows Server Failover Cluster

SQL Server

Application

2-node clustert r a d i t i o na l

log data

Page 30: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

Windows Server Failover Cluster

shared disks containing an NTFS

or ReFS volume that is made

accessible for read and write

operations by all nodes of WSFC

cluster shared

volumes *

we will only focus on Windows Server 2012 +

SQL Server

Page 31: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

Windows Server Failover Cluster

failoverlet’s look at

in the context of the

storage

SQL Server

Page 32: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

Windows Server Failover Cluster

the storage is owned by

I/O workload only goes thru that single path to the

storage

only one cluster node

at a time

SQL Server

Page 33: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

Windows Server Failover Cluster

SQL Server

AD/DNS

during failover, the storage gets

“logically” dismounted from the

failed node and remounted on the

new active/primary node

Page 34: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

Windows Server Failover Cluster

SQL Server

AD/DNS

the amount of time it takes to

bring the storage online

depends on how long it takes to

mount the storage to the new

active/primary node

Page 35: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

SQL Server

Windows Server Failover Cluster

SQL Server with CSV, there are now

multiple paths to the storage

I/O workload can be routed thru different paths to the

storage

Page 36: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

Windows Server Failover Cluster

SQL Server with CSV, no need to remount

storage on new active/primary

node after failover this reduces downtime, increases resiliency and

reliability

SQL Server

Page 37: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

Windows Server Failover Cluster

with CSV, no more

23 drive letter limitations

this means you no longer have to memorize the

alphabet in terms of failover cluster drives

SQL ServerSQL Server

Page 38: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

Windows Server Failover Cluster

with CSV, the concept of

*this means that SQL Server failover clustered

instances

no longer has a direct dependencyon the shared drive to come online

exclusive ownership

of storageis redefined

SQL ServerSQL Server

Page 39: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

failover clustering

how it works

Windows Server Failover Cluster

2-node clustert r a d i t i o na l

Application

*can be implemented with

SQL Server

Standard Edition

log data

SQL Server

Page 40: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

failover clustering

how it works

Windows Server Failover Cluster

2-node clustert r a d i t i o na l

Application

*can be implemented with

SQL Server

Standard Edition

log data log data

HA

SQL Server

Page 41: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

What does StarWind Virtual SAN change?

StarWind Virtual SAN turns local storage into fault tolerant CSV for the local SQL cluster

Page 42: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

•Deployment price is reduced ~3 times

•Maximized performance because of short IO path

•Disk, RAM, and Flash FT without Enterprise SQL licensing

Benefits compared to native clustering

Page 43: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

demo

Configure SQL Server 2014

Failover Clustered Instances to

use Cluster Shared Volumes

Page 44: Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering and Cluster Shared Volumes

Edwin Sarmiento

http://[email protected]@EdwinMSarmientohttp://ca.linkedin.com/in/EdwinMSarmiento

Microsoft MVP/Microsoft Certified Master: SQL Server