SQL Server 2016: Always On
SQL Server 2016: Always On
Always On
Concepts Windows Server Failover Cluster
Asynchronous Commit
Hybrid Cloud
Virtual Computer Object
Windows Server 2016
Listener
Secondary Backups
Availability Replicas
Readable Secondaries
SQL Server High Availability and Disaster Recovery
SQL
Instance
Node A Node B
Separate
Each single
clustered
clustered
instances
instance has
have
the same
different
name
names
Cluster Resource
Service name is
Dependencies SQL Server
Service
dependent on Instance
Name and Disk
Instance Name is
dependent on IP
10.1.0.6
Address
Recent SQL Failover Clustering Enhancements
Availability Group
Washington Chicago
Listener Name (AD VCO)
Windows Cluster
Availability Group Listener
Virtual IP Address that Directs connections to
Virtual Computer Object
automates connection to primary replica
in Active Directory
Availability Group automatically
SQL Instance
1 SQL
Instance 2
On-premises
Node 1 Node 2
Node 3
ILB Listener
VPN Azure
Appliance Gateway
On-Premises
The Benefits of Hybrid Disaster Recovery
additional
• Connect reporting/BI apps
• Migrate apps and run against local secondaries
benefits:
• Offload Backups to Azure
• A solution for policy compliance
requires:
• Needs an Active Directory Domain Controller
SQL Server 2016
What’s New in Availability
Groups
SQL 2016 Availability Group New Features
Database Level Failover Trigger
DTC Support
Better Automatic Failover Support
Log Transport Performance
Load Balanced Readable Secondaries
gMSA Support
Standard Edition Support
Encryption Support
Database-Level Failover Trigger
AG Health (2012, 2014) • Database can go corrupt
monitored at instance
level and AG will not failover
Optional setting in
2016 to allow a • Offline database will
database failure to
trigger AG failover
change AG health
Distributed Transaction Coordinator (DTC) Support
Distributed Transactions involving an AG database are not
supported in SQL Server 2014
• Many enterprise apps require cross database transactions
Target Max
Parallel Transaction
Throughput is 400-500
Log Apply
MB/s
Load Balancing in Readable Secondaries
In 2014, reads went to first Client Client Client Client Client
available secondary 1 2 3 4 5
Supported in
Introduced in Now in 2016
SQL 2014
Windows 2012 for AGs
(Standalone)
Group Managed Service Accounts
Distributed Availability Groups
Two Windows Server Failover
Clusters
Add
SEEDING_MODE=AUTOMATIC
keyword
Basic Availability Groups
Two Nodes Only
No Readable Secondaries
No Backup on Secondaries
DB Snapshots Available
Requires
Password
and Master
Key
Node1.Contoso.com Node2.Fabrikam.com
Rolling Cluster OS Upgrades
Only Microsoft delivers
On-premises & cloud
Consistent experience is everything
Single-vendor support