Escolar Documentos
Profissional Documentos
Cultura Documentos
Availability
Groups
MODIFY THIS SLIDE FOR ACTUAL PRESENTER, DELETE THIS BAR
AFTER MODIFICATION
dandyw@microsoft.com ILIKESQL.COM
Dandy
Weyn @ilikesql
SQL SERVER DELIVERS
REQUIRED
GREATER
9S
Maximize uptime for mission critical
UPTIME AlwaysOn High Availability
applications Windows Server Core Support
Online Operations Enhancements
IMPROVED
Integrated Configuration Wizard
PRODUCTIVITY
Windows PowerShell Support
AlwaysOn Dashboard
Microsoft System Center Monitoring
GREATER HARDWARE
UTILIZATION Active Secondaries
Scale Read-Only Applications
Offload Backups
Fast Application Failover
GREATER UPTIME WITH HIGH
AVAILABILITY
Key technologies to deliver required 9s
ONLINE
ALWAYSON WINDOWS SERVER
OPERATIONS
CORE SUPPORT
ENHANCEMENTS
Availability Groups Reduce OS patching Maintain uptime
provide database level by as much as 50- during
protection 60% with new support maintenance
for Windows Server operations using
Multiple
Core1 enhanced online
Secondaries
operations
Reduce planned
Failover Cluster
downtime by Reindexing of large
Instances provide
reducing OS patching object data types
instance level
protection Adding non-null
columns
1
The percentage reduction in patching varies & can be less based on the server roles that are enabled & the type of patches that
are applied.
SQL SERVER 2012 HA & DR
SOLUTIONS
Shared Storage solution
Multi-site Failover Instance Level HA
1 Cluster Instance (FCI) Instance Level DR
for HA & DR Doesnt require database to be in FULL
recovery model
Non-Shared Storage solution
(Group of) Database Level HA
Availability Group (Group of) Database Level DR
2 for HA & DR DR replica can be Active Secondary
Requires database to be in FULL recovery
model
Combined Shared Storage and Non-Shared
Failover Cluster Storage
Instance Level HA
Instance for local HA &
3 Availability Group for (Group of) Database Level DR
DR replica can be Active Secondary
DR Requires database to be in FULL recovery
model
ALWAYSON AVAILABILITY
GROUPS
AlwaysOn Availability Groups is a new feature that enhances
and combines database mirroring and log shipping capabilities
Flexible Integrated Efficient
Multi-database failover Application failover Active Secondary
Multiple secondaries using virtual name Readable Secondary
Total of 4 secondaries Configuration Wizard Backup from
2 synchronous Secondary
secondaries Dashboard
Improves primary
1 automatic failover pair
System Center server performance by
Synchronous and Integration offloading work to
asynchronous data secondary
movement Rich diagnostic
infrastructure Monitoring and
Built in compression and
Troubleshooting
encryption File-stream replication
enhanced
Auto-page repair Replication publisher
Automation using
Automatic and manual failover
PowerShell
failover (new design)
Flexible failover policy
ALWAYSON AVAILABILITY GROUP
LISTENER
Availability Groups Listener allow applications to failover
seamlessly to any secondary; reconnecting through Virtual
Network Name
ServerA ServerB ServerC
2 2
2 D
DB D
B B
TechAG1
TechListener
TechListener
1
1
Primary Primary
Secondary Secondary
Application retry during failover
Database Database
Active Log Active Log
Synchronization Synchronization
Secondary
Primary Secondary
Primary
InstanceA
CRASH InstanceB
Database Log
Synchronization
Reports Reports
Primary Secondary
Log
Log
Capture
Networ Log
Capture Receive
DB1 k DB1
Acknowledge
DB1 Log DB1 Data DB1 Log DB1 Data
Commit
SOLUTION
Internally map read workload to non
blocking isolation levels (no application
changes required) PRIMARY SECONDARIE
Read Uncommitted Snapshot Isolation S
Read Committed Snapshot Isolation
Repeatable Read Snapshot Isolation
Serializable Snapshot Isolation
Ignore all locking hints
RESULT
Never choose REDO as deadlock victim
Blocking and deadlock between Reporting workload (i.e. Query) and
REDO thread is eliminated
No issues with DML (INSERT/DELETE/UPDATE) as it is not allowed
Will incur additional cost of row versioning.
CLIENT CONNECTIVITY
READ / WRITE WORKLOAD
Connecting using AG Listener
Connection using FAILOVER_PARTNER (if
connection string of existing applications
cant be changed) CLIENT
Adds capacity to
primary server by off-
loading backups to a
replica
Log backups done
on all replicas
form
a single log chain
Recovery Advisor
makes restores simple
CONSIDERATIONS FOR AVAILABILITY GROUPS
IP1: 10.168.0.10
OR IP2: 192.168.0.10
subnet 1 subnet 2
Node1 Node3
Node2 Node4
BENEFITS
Better overall performance
Cost saving SECONDARIES
PRIMARY
IMPORTANT NOTE!
Ensure that tempdb local paths
are available to SQL Service on Shared Disk
all the nodes (SAN)
ALWAYSON FAILOVER CLUSTER
INSTANCE
Flexible Failover Policy provides administrators control over the
Failover Condition Policy
conditions when an automatic failover should be initiated.
Resourc Resourc
e DLL e DLL
Select @@servername
sp_server_diagnostics
SQL
SQL Diagno
Diagno Server
Server stics
stics
SQLSERV
ERLAUNC
H
.COM