68

Fundamentals of SQL Server 2012 Availability groups

Embed Size (px)

Citation preview

Page 1: Fundamentals of SQL Server 2012 Availability groups
Page 2: Fundamentals of SQL Server 2012 Availability groups
Page 3: Fundamentals of SQL Server 2012 Availability groups
Page 4: Fundamentals of SQL Server 2012 Availability groups

+

Page 5: Fundamentals of SQL Server 2012 Availability groups
Page 6: Fundamentals of SQL Server 2012 Availability groups

there’s just ONE problem

Page 7: Fundamentals of SQL Server 2012 Availability groups
Page 8: Fundamentals of SQL Server 2012 Availability groups
Page 9: Fundamentals of SQL Server 2012 Availability groups

everyone has a right to

SIMPLICITY

Page 10: Fundamentals of SQL Server 2012 Availability groups

SQL Server 2012Availability Groups

Page 11: Fundamentals of SQL Server 2012 Availability groups

SQL Server 2012Availability Groups

Page 12: Fundamentals of SQL Server 2012 Availability groups

complex

Page 13: Fundamentals of SQL Server 2012 Availability groups

I can’t blame them

I felt the same way

Page 14: Fundamentals of SQL Server 2012 Availability groups

I have to be intimidated

Page 15: Fundamentals of SQL Server 2012 Availability groups

I have to be intimidated

I actually know afew things

Page 16: Fundamentals of SQL Server 2012 Availability groups

the complex

is to start with what we

already know

the SECRET to understanding

Page 17: Fundamentals of SQL Server 2012 Availability groups

SQL Server 2012Availability Groups

is NOT a new technology

Page 18: Fundamentals of SQL Server 2012 Availability groups

SQL Server 2012Availability Groups

Failover Clustering

Database Mirroring+

Page 19: Fundamentals of SQL Server 2012 Availability groups

database mirroringhow it works

Page 20: Fundamentals of SQL Server 2012 Availability groups

MirrorPrincipal

WitnessApplication

SQL Server SQL Server

2

2

4

51

3>2 >3

Mirror is always redoing – it remains current

Commit

log data log data

database mirroringhow it works

*database snapshot

SYNCHRONOUS

Page 21: Fundamentals of SQL Server 2012 Availability groups

MirrorPrincipal

Application

SQL Server SQL Server

2

2

4

51

3>2 >3

Mirror is always redoing – it remains current

Commit

log data log data

database mirroringhow it works

*database snapshot

ASYNCHRONOUS

Page 22: Fundamentals of SQL Server 2012 Availability groups

DATABASE MIRRORING

Page 23: Fundamentals of SQL Server 2012 Availability groups

can either be an HA or DR solution

*DATABASE protection

DATABASE MIRRORING

Page 24: Fundamentals of SQL Server 2012 Availability groups

involves sending streams of active

transaction log records to and applying

them on the mirror server

DATABASE MIRRORING

Page 25: Fundamentals of SQL Server 2012 Availability groups

operates on the physical layer (transaction log)

DATABASE MIRRORING

Page 26: Fundamentals of SQL Server 2012 Availability groups

operating modes

high safety (synchronous)

DATABASE MIRRORING

Page 27: Fundamentals of SQL Server 2012 Availability groups

operating modes

high performance (asynchronous)

DATABASE MIRRORING

Page 28: Fundamentals of SQL Server 2012 Availability groups

role switching

automatic (requires a witness)

DATABASE MIRRORING

Page 29: Fundamentals of SQL Server 2012 Availability groups

role switching

manual

DATABASE MIRRORING

Page 30: Fundamentals of SQL Server 2012 Availability groups

failover clusteringhow it works

Page 31: Fundamentals of SQL Server 2012 Availability groups
Page 32: Fundamentals of SQL Server 2012 Availability groups

stop service

Page 33: Fundamentals of SQL Server 2012 Availability groups

stop service

wait service

Page 34: Fundamentals of SQL Server 2012 Availability groups

stop service

wait service

start service

Page 35: Fundamentals of SQL Server 2012 Availability groups

Public

Shared Storage

failover clusteringhow it works

Page 36: Fundamentals of SQL Server 2012 Availability groups

what commonly mentioned

Page 37: Fundamentals of SQL Server 2012 Availability groups

Public

Shared Storage

failover clusteringhow it works

AD/DNS

Page 38: Fundamentals of SQL Server 2012 Availability groups

WHYdo we even care

Page 39: Fundamentals of SQL Server 2012 Availability groups

domain and DNS administrators

we need to speak to the

Page 40: Fundamentals of SQL Server 2012 Availability groups

SQL Server 2012Availability Groups

Failover Clustering

Database Mirroring+

Page 41: Fundamentals of SQL Server 2012 Availability groups

let’s talk about Availability Groupsin the context offailover clustering

Page 42: Fundamentals of SQL Server 2012 Availability groups

Nodea server that is a member of a cluster

Page 43: Fundamentals of SQL Server 2012 Availability groups

Nodea server that is a member of a cluster

Page 44: Fundamentals of SQL Server 2012 Availability groups

Resourcea hardware, service or an entity that is hosted on a cluster

basic building block in a cluster

Page 45: Fundamentals of SQL Server 2012 Availability groups

physical resource

Resource

Page 46: Fundamentals of SQL Server 2012 Availability groups

storage

Page 47: Fundamentals of SQL Server 2012 Availability groups

http://www.flickr.com/photos/peterajohnston/709441949/sizes/o/in/photostream/

network

Page 48: Fundamentals of SQL Server 2012 Availability groups

server nodes

Page 49: Fundamentals of SQL Server 2012 Availability groups

virtual resourceResource

Page 50: Fundamentals of SQL Server 2012 Availability groups

virtual resourcevirtual server name

virtual IP address

virtual computer object

Resource

Page 51: Fundamentals of SQL Server 2012 Availability groups

virtual resourcevirtual server name

virtual IP address

virtual computer object

Resource

Page 52: Fundamentals of SQL Server 2012 Availability groups

a combination of resources that are managed as a UNIT

GroupResource

Page 53: Fundamentals of SQL Server 2012 Availability groups

http://www.flickr.com/photos/alainbachellier/53004367/sizes/l/in/photostream/

Page 54: Fundamentals of SQL Server 2012 Availability groups

GroupResource

Page 55: Fundamentals of SQL Server 2012 Availability groups

GroupResource

Page 56: Fundamentals of SQL Server 2012 Availability groups

GroupResource

Page 57: Fundamentals of SQL Server 2012 Availability groups

moving a clustered resource from one node to another

Failover

Page 58: Fundamentals of SQL Server 2012 Availability groups

reliance of a resource on another resource

Dependencies

Page 59: Fundamentals of SQL Server 2012 Availability groups

*the minimum number of members of a deliberative assembly necessary to conduct the business of that group

Quorum

Page 60: Fundamentals of SQL Server 2012 Availability groups

“majority vote wins”

Quorum

Page 61: Fundamentals of SQL Server 2012 Availability groups

Hardware Requirements

Page 62: Fundamentals of SQL Server 2012 Availability groups

Hardware Requirements

Page 63: Fundamentals of SQL Server 2012 Availability groups
Page 64: Fundamentals of SQL Server 2012 Availability groups

demo

http://www.mssqltips.com/webcast2.asp?id=105

Page 65: Fundamentals of SQL Server 2012 Availability groups
Page 66: Fundamentals of SQL Server 2012 Availability groups

Next Steps

Page 67: Fundamentals of SQL Server 2012 Availability groups

Q & AQuestions

Page 68: Fundamentals of SQL Server 2012 Availability groups