SQL Server AlwaysOn Deep Dive for SharePoint Administrators SharePoint Saturday Montréal Edwin Sarmiento 23 mai 2015
SQL Server AlwaysOn Deep Dive for SharePoint Administrators
Edwin Sarmiento Microsoft MVP/Microsoft Certified Master: SQL Server http://www.edwinmsarmiento.com edwin@edwinmsarmiento.com @EdwinMSarmiento http://ca.linkedin.com/in/edwinmsarmiento
just when you think it s an EMERGENCY
high availability
high availability characteristic of a system that is f u l l y o p e r a t i o n a l for a long period of time local data center
high availability is N O T the same as UPTIME
Just because something is UP doesn t mean it s available
ZERO downtime & data loss
high availability Recovery Time Objective ( R T O ) When is my application coming back?
downtime 90 (one nine ) 36.5 days per year 72 hours per month % availability 16.8 hours per week
downtime 99 (two nines ) 3.65 days per year 7.2 hours per month % availability 1.68 hours per week
downtime 99.9 (three nines ) 8.76 hours per year 43.8 minutes per month % availability 10.1 minutes per week
downtime 99.99 (four nines ) 52.56 minutes per year 4.32 minutes per month % availability 1.01 minutes per week
downtime 99.999 (five nines ) 5.26 minutes per year 25.9 seconds per month % availability 6.05 seconds per week
RTO 4 hours September 11, 2001 10:00AM Maximum outage: +4 hours
downtime 99.999 (five nines ) How long does it take to restart S Q L S e r v e r 5.26 minutes per year 25.9 seconds per month % availability 6.05 seconds per week
high availability is NOT THE SAME as disaster recovery
characteristic of a system that is o p e r a t i o n a l l y a c c e p t a b l e after a disaster remote data center disaster recovery
Recovery Point Objective ( R P O ) How much data can I afford to lose? disaster recovery
RPO 4 hours September 11, 2001 10:00AM Maximum outage: -4 hours
Cost RPO/RTO versus Total Cost of Ownership 70000 60000 50000 40000 30000 20000 10000 0 1 2 3 4 5 6 7 8 9 10 11 Time
ZERO downtime & data loss
architecture diagrams
Single-Server Deployment http://portal.testdomain.com* Web, Application and Database Server recommended only for DEVELOPMENT ENVIRONMENT which usually ends up being so popular that it has now become a MISSION-CRITICAL PRODUCTION SERVER *alternate access mappings (AAM) configured
Basic 2-Tier Architecture http://portal.testdomain.com* Web and Application Server Database Server *alternate access mappings (AAM) configured
3-Tier Architecture http://portal.testdomain.com* Web Server Application Server Scalability & High Availability Database Server *alternate access mappings (AAM) configured
3-Tier Architecture http://portal.testdomain.com* hardware load balancer Web Server Application Server Scalability & High Availability Database Server *alternate access mappings (AAM) configured
3-Tier Architecture http://portal.testdomain.com* hardware load balancer Web Server Application Server Scalability & High Availability Web & Application Server Local High Availability Database Server Disaster Recovery Failover Clustered Instances Availability Groups *alternate access mappings (AAM) configured
FAILOVER CLUSTERING
FAILOVER CLUSTERING can either be an HA and/or DR solution *INSTANCE protection
failover clustering how it works SQL Server traditional 2-node log data cluster Windows Server Failover Cluster
failover clustering Application how it works SQL Server traditional 2-node log data cluster Windows Server Failover Cluster
failover clustering Application how it works SQL Server traditional 2-node log data cluster Windows Server Failover Cluster
AVAILABILITY GROUPS
AVAILABILITY GROUPS introduced in SQL Server 2012 *DATABASE (group) protection
AVAILABILITY GROUPS can either be an HA and/or DR solution *DATABASE (group) protection
AVAILABILITY GROUPS combination of DATABASE MIRRORING & FAILOVER CLUSTERING
*maximum of EIGHT replicas Windows Server Failover Cluster Primary Replica Secondary Replica Secondary Replica SQL Server SQL Server SQL Server log data log data log data
3-Tier Architecture http://portal.testdomain.com* hardware load balancer Web Server Application Server Scalability & High Availability Web & Application Server Local High Availability Database Server Disaster Recovery Failover Clustered Instances Availability Groups *alternate access mappings (AAM) configured
SQL Server COMMON Availability DESIGN Groups PATTERNS
SQL Server COMMON Availability DESIGN Groups PATTERNS What will be your QUORUM model?
SQL Server COMMON Availability DESIGN Groups PATTERNS What will be your REPLICATION MODE?
SQL Server COMMON Availability DESIGN Groups PATTERNS What will be your NETWORK CONFIGURATION?
SQL Server COMMON Availability DESIGN Groups PATTERNS What will be your LICENSING MODE?
2 Replicas, Stand-alone instances (HA only) PRODUCTION Primary Replica Secondary Replica SQL Server SQL Server log data log data Windows Server Failover Cluster
*You need to discuss this with your network team 3 Replicas, Stand-alone instances (HA + DR) PRODUCTION DR Primary Replica Secondary Replica * LowerQuorumPriorityNodeID 2012 R2 Secondary Replica * NO VOTE 2008/2012 SQL Server SQL Server SQL Server log data log data log data Windows Server Failover Cluster
*You lose the ability to do automatic failover 2 Replicas, FCI + Stand-alone instance (HA + DR) PRODUCTION DR * LowerQuorumPriorityNodeID Primary Replica 2012 R2 Secondary Replica * NO VOTE 2008/2012 SQL Server SQL Server log data log data Windows Server Failover Cluster
*You lose the ability to do automatic failover 3 Replicas, FCI + Stand-alone instance (HA + DR + ) PRODUCTION Primary Replica DR * LowerQuorumPriorityNodeID 2012 R2 Secondary Replica * NO VOTE 2008/2012 Additional Data Center * LowerQuorumPriorityNodeID 2012 R2 Secondary Replica * NO VOTE 2008/2012 SQL Server SQL Server SQL Server log data log data log data Windows Server Failover Cluster
*You lose the ability to do automatic failover 2 Replicas, FCI (HA + DR) PRODUCTION Primary Replica DR * NO VOTE * LowerQuorumPriorityNodeID 2008/2012 2012 R2 Secondary Replica SQL Server SQL Server log data log data Windows Server Failover Cluster
Questions
Edwin Sarmiento Microsoft MVP/Microsoft Certified Master: SQL Server http://www.edwinmsarmiento.com edwin@edwinmsarmiento.com @EdwinMSarmiento http://ca.linkedin.com/in/edwinmsarmiento
Bronze Web Or Argent Merci à nos commanditaires!
SharePint! Ce soir à 18h Le Trèfle, 3971 Rue Ontario E