Your SlideShare is downloading. ×
SQL Server AlwaysOn for Dummies SQL Santa Edition
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

SQL Server AlwaysOn for Dummies SQL Santa Edition

2,119
views

Published on

Welcome to Microsoft's world of the buzzword. Yes, they've done it again and created another ambiguous term that no one really understands. In this presentation, we will delve into their murky world …

Welcome to Microsoft's world of the buzzword. Yes, they've done it again and created another ambiguous term that no one really understands. In this presentation, we will delve into their murky world and reveal the technology behind the buzz.

Published in: Technology

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,119
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
104
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. SQL Server AlwaysOn for Dummies Mark Broadbent SQLCloud SQLCLOUD.CO.UK
  • 2. Agenda 2 Windows Server Failover Clustering 3 AlwaysOn Failover Clustered Instances Introduction to AlwaysOn1 4 AlwaysOn Availability Groups
  • 3. AboutMark Broadbent“30 billion times more intelligent than a live mattress”• Email: mark.broadbent@sqlcambs.org.uk• Twitter: retracement• Blog: http://tenbulls.co.uk• Event Lead to the UK’s first ever SQLSaturday (Cambridge) http://www.sqlsaturday.com/events.aspx• Cambridgeshire PASS Chapter UG Leader http://sqlcambs.org.uk
  • 4. Introduction to AlwaysOn
  • 5. AlwaysOn Technologies*1 Replication Scalable Shared Database Database Mirroring AlwaysOn Failover Clustered Instances AlwaysOnAvailability Groups *1 According to my interpretation!
  • 6. AlwaysOn is…
  • 7. AlwaysOn Clustered Instances Provide…• Abstraction of SQL instance• High availability of Instance name• Instance and related services failover as a unit• Instance components such as jobs and logins not a considerationBUT• Shared data with single point of failure per instance.• Complex to administrate
  • 8. Availability Groups Provide…• Abstraction at the databases level• Failover as a single Unit• High availability of “Instance” (listener) name• All the benefits of DB Mirroring ….and less of the problems (FS is supported)BUT• Connected replicas are potentially single point of failure (i.e user error – deletion of records)• Complex (arguably less than FCI) to administrate• Instance level components not failed over –contained dbs partially come to the rescue
  • 9. Dr. EvilSenior MicrosoftWindows ClusteringProgram Manager
  • 10. Don’t let the terms confuse you! Active/Passive Private Network Interconnect Single Instance Internal Network Multi Instance N+n Cluster Public Network... LAN Client Network Cluster Node Cluster Server Node Resources (take your pick) Server Disk SAN Cluster Group Role Cluster Storage Virtual ServerClustered Instance Shared Storage Service or Application Failover Cluster SQL Server Votes Server Quorum Majority
  • 11. Windows ServerFailover Clustering
  • 12. “The Magic” of Clustering Cluster Nodes failover Clustered “Application”
  • 13. “The Magic” of Clustering Cluster Nodes failover Clustered “Application”
  • 14. “The Magic” of Clustering Cluster Nodes Clustered “Application”
  • 15. Quorum A Basic Windows Cluster The Cluster Group Cluster ServiceCluster Node Public Internal (or Client) Network Network Storage Shared Network (or Asymmetric) Storage
  • 16. Understanding Quorum I’m Alive!
  • 17. Quorum Models No majority (disk witness only) Node majority (no witness) +Node weighting Dynamic weighting -new to Windows 2012Node majority with witness (disk or file share)
  • 18. Taking a look at our ClusterDEMO
  • 19. AlwaysOn FailoverClustered Instances
  • 20. Installation
  • 21. Clustered InstancesNode A failover Node B Network Name Role (formerly known as Cluster Group) SQL Server Instance A
  • 22. Clustered InstancesNode A Node B Network Name Role (formerly known as Cluster Group) SQL Server Instance A
  • 23. AlwaysOnAvailability Groups
  • 24. Availability Group consists of… Replica/s Listener Availability Group Databases Availability Group Resource Instance Components Cluster Resources
  • 25. Availability Groups Listener SQL Server Instance A SQL Server Instance B Availability Group Secondary Replica Redo Transaction Logs Transaction Logs Sync/ Async
  • 26. Readible Secondaries• 5 replicas• 2 synchronous, others aysnchronous• 1 Read/ Write• 4 either Readonly, Read-Intent or No Access
  • 27. ReadOnly Routing• Set connection string property ApplicationIntent=ReadOnly• Must connect to a listener.• Modify Secondary Replica Roles with read only routing url.• Modify Primary Replica Roles with read only routing list.
  • 28. Using AlwaysOnDEMO
  • 29. Installing to Server Core
  • 30. [Session Code]
  • 31. In Summary…• It is not all Butterflys and Unicorns so choose the HA solution appropriate to your requirements.• Failover Clustering is a very mature technology but requires specialist skill and understanding. It does not provide scalability.• Availability Groups partially rely on Windows Clustering but are slightly easier to setup and manage. They also provide reporting query scalability.