Professional Documents
Culture Documents
Cluster Top 10
Cluster Top 10
Cluster Top 10
Allan Hirt
Microsoft High Availability MVP
Managing Partner, SQLHA LLC
Twitter: @SQLHA
E-mail: allan@sqlha.com
Web/blog: http://www.sqlha.com
I’m Coming to Australia
http://www.wardyit.com/product/allan-hirt-mission-critical-deep-dive/
10. DO Understand Your Solution and the Stack
Clustered Applications
WSFC
• “Who’s on first?”
SQL Server does not obfuscate the fact it’s using a WSFC for FCIs or AGs
• Who is responsible for administration of the clustered configuration?
DBAs?
Windows admins?
Storage admins?
Others?
• Need to understand nuances when there is overlap and be very clear
Example: not failing over an AG using the WSFC when standalone instances are
involved
7. DON’T Assume Things Are Shared and/or Isolated
• Non-DBAs
“Don’t worry about in guest availability; we’ve got Live Mirgation/vMotion/DRS/etc.”
• Reality: some mission critical VMs will still need in-guest HA and D/R
FCIs still viable (shared storage the biggest issue)
AGs a natural fit
• Planning similar to a physical implementation
In guest is the same
Hypervisor another layer to take into account
• Use Anti-Affinity on VM nodes
5. DON’T Implement Clusters on Bad Networks
• No quorum = no WSFC
• Must monitor status
• Understand thresholds … and don’t be stupid
• Quorum != disk
DO NOT USE THE OLD DISK ONLY QUORUM MODEL … EVER
• Split brain matters, but is a man-made problem
• Use W2012 or higher – quorum greatly improved
Dynamic quorum (W2012+), dynamic witness (W2012 R2+)
• Multi-site can be tricky
Witness resource?
• File share in third location?
• Asymmetric disk or file share?
• Cloud witness? (W2016+)
Cloud Witness 1
Cloud Witness 2
3. DON’T Make Assumptions When It Comes to Storage
• Traditional “shared” disks for an FCI are LUNs presented to each node
Only used by ONE FCI
All user databases, backups on shared drives – NOTHING LOCAL
• AGs require NO shared storage unless FCI is in the mix
• Newer options:
SMB 3.0 (SQL Server 2012+)
Local TempDB (SQL Server 2012+)
Clustered Shared Volume (SQL Server 2014)+
• SMB, CSV shared
Folder structure now matters
2. DO Have a Process for AD Objects
• WSFC requires AD through Windows Server 2012 R2/SQL Server 2014 for all
clustered AG and FCI configurations
Each node of a WSFC joined to same domain regardless of location
Each name resource gets an object in AD
• Cluster Name Object (CNO) = WSFC
• Virtual Computer Object (VCO) = FCI Network Name, Listener Network Name
• Each name must be unique in the domain
Domain-based account required for creation and administration
• Non-AD connected WSFCs
2012 R2 allowed DNS only WSFCs, but SQL Server requires domain accounts
Windows Server 2016/SQL Server 2016 support domain agnostic WSFCs for very
specific AG configurations only
1. DON’T Use Active/Passive, Active/Active, or AlwaysOn
– Improper Terminology Makes Kittens Sad
Source: http://mysterywallpaper.blogspot.com/2013/06/crying-kitten.html
Proper Terminology for Windows and AGs
• MSCS has not been valid for well over 10 years; the Windows portion is a
Windows Server Failover Cluster (WSFC)
Saying only “cluster” is too generic
• AlwaysOn
AlwaysOn IS NOT the AG feature
Umbrella term that encompasses two major features (with or without space)
• AlwaysOn Availability Groups (AGs – it’s not AOAG or AAG, either)
• AlwaysOn Failover Cluster Instances (FCI) – same as existing feature
No space between Always and On (well …)
Not the same as the old Always On (with space) storage program for SQL Server (or
how it was used in 2008)
• AGs had a few different names before RTM (HADRON/HADR/AlwaysOn)
Proper Terminology for FCIs
• My AG FAQ http://www.sqlha.com/allans-alwayson-availability-groups-faq/
• Supportability for virtualized configurations
MS support policy for virtualized SQL Server implementations (all hypervisors)
https://support.microsoft.com/en-us/kb/956893
VMware supported cluster configurations
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displ
ayKC&externalId=1037959
• Proper Terminology
http://sqlha.com/2012/01/09/once-more-with-feeling-stop-using-activepassive-and-
activeactive/
http://sqlha.com/2013/04/29/alwayson-is-the-new-activepassive-and-activeactive/
http://sqlha.com/2015/12/16/dear-microsoft-i-love-you-but-youre-driving-me-batty/