What’s in Windows Server 2012 for SQL Server N.Raja / James Crawshaw Technology Specialists -...
-
Upload
josephine-vann -
Category
Documents
-
view
225 -
download
4
Transcript of What’s in Windows Server 2012 for SQL Server N.Raja / James Crawshaw Technology Specialists -...
What’s in Windows Server 2012 for SQL Server N.Raja / James CrawshawTechnology Specialists - Microsoft
DBI332
Agenda
SMB for SQL Microsoft SQL Server database storage Microsoft SQL Server databases on SMB file shares Windows Server 2012 SMB File Server enhancements
Scale-Out File Server for application data Hyper-V Enhancements for SQL Server Summary & QA
SQL Server HA Options
Database Mirroring
Logical RecoveryStandby
Log Shipping
Log Shipping with Restore Delay
ProductionDatabase
Replication
Clustering
Database Mirroring
Primary disaster site for databases
Log Shipping
Additional disaster sites for databases
Logical recovery
Replication
Database reporting and read scale out with redundancy
Clustering
Local server redundancy
Always On Storage Partner Solutions
Site storage HA
Highest hardware reliability
WarmStandby
HotStandby
Backup
DatabaseScale Outfor Queries
SQL Server HA OptionsAlways On
Synchronous data
movement
Asynch
ronou
s dat
a
mov
emen
t
AG
AG
AG
AG_Listener
HIGHER PRODUCTIVITYSingle solution to manage; Availability Groups for Clustering, Mirroring, Log Shipping, and Diagnostics
Wizards for easy set up; dashboards for visibility
GREATER UPTIME & H/W USEMultiple, active secondaries
Multi-database failover
Faster connections and page repair
Offload & distribute workloads to secondaries
ADDITIONAL BENEFITSScale on demand; distribute workloads across readables
Performance gains by shifting workloads off primary to secondaries, including backups
And more from Windows Server 2012 Now……
Unified HA Solution
SQL Server Database StorageCurrent OptionsDirect Attached Storage (DAS)
Storage system directly attached to SQL ServerGood performanceCreates storage islands
Storage Area Network (SAN)
Dedicated network providing access to consolidated block level storageIncrease storage capacity utilizationDedicated, non-shared virtual disks
SQL Server
SQL Server
SQL Server
Disks Disks Disks
SQL Server
SQL Server
SQL Server
Disks
Storage Area Network (FC / iSCSI)
SQL Server Database StorageNew storage option
Shared network providing access to consolidated file level remote storageHigh performanceHighly availableSimpler management
Manage SMB file shares instead of SAN storage (LUNs and zoning)Dynamic server/service relocationDatabase storage operations within one organization
Reduce SQL Server solution complexity
SMB File Shares
SQL Server
SQL Server
SQL Server
Scale Out File Server
Disks
File Access (SMB)
Block Access
Storing Databases on File Servers
Traditional use of file servers
ScenariosDocument repositories and sharingUser file storage
CharacteristicsHigh volume/IO ratioMostly full file writesNot typically IO bound
Storing Databases on file servers
ScenariosOnline Transaction ProcessingData Warehouse
CharacteristicsHigher IO/volume ratioMostly write-in-placeMore likely to be IO boundMay have areas of great activity (hotspots)
Why Would You Do This, Anyway?
Why Not?Historically, SMB file shares have been perceived as having:
Unreliable connectionsPoor performanceUnreliable storage behind the file serverLack of integrity guarantees
The world has changed
One possible reason… Simpler Database Migration
Storage Area NetworkTake database offlineFile request to remap SAN diskMeet with storage adminUnmap SAN disk from original serverMap SAN disk to new serverSAN disk discovered and mounted on new serverDatabase is attached to new serverDatabase is brought online
SMB File SharesVerify correct permissions on the share(s)Detach database (takes it offline)Attach database on new server using UNC path (brings it online)
Changes to Microsoft SQL Server
SQL Server 2008 R2Formalized support for storing user databases on SMB file shares (removed traceflag requirement)Integrated SMB scenarios into automated test infrastructure and labs
SQL Server 2012Added support for SQL Server clusters using SMB file shares
Adds flexibility to cluster configurationsRemoves the drive-letter restriction for cluster groups
Added support for System DB on SMB file sharesRoot of the installation can now be on the share
Windows fix for improved performance (253493)Significantly improves performance for OLTP workloads on Windows Server 2008 R2
Typically … Failovers are not transparent
Targeted for traditional file server use scenariosServer applications expect storage to be continuously availableIn Windows Server 2008 R2
Connection and file handles are lost on share failover, leading toApplication disruptionAdministrator intervention required to recover
File Server Cluster
Node A Node B
\\fs1\share
1
2\\fs1\share
3
SQL Server
Failover share and connections and handles lost
2
Normal operation1
Administrator intervention needed to recover
3
Hyper-VHyper-VHyper-VHyper-VHyper-VHyper-V
Hyper-V & SQL over SMB3What is it?
Store Hyper-V files in shares over the SMB 3.0 protocol(include VM configuration, VHD files, snapshots)Works with both standalone and clustered servers (file storage used as cluster shared storage)
HighlightsIncreases flexibilityEases provisioning, management and migrationLeverages converged networkReduces CapEx and OpEx
Supporting FeaturesSMB Transparent Failover - Continuous availabilitySMB Scale-Out – Active/Active file server clustersSMB Direct (SMB over RDMA) - Low latency, low CPU useSMB Multichannel – Network throughput and failoverSMB Encryption - SecurityVSS for SMB File Shares - Backup and restoreSMB PowerShell - Manageability
File Serve
r
File Serve
r
SharedStorage
Hyper-V
SQLServe
r
IIS
VDIDeskt
opHyper-V
SQLServe
r
IIS
VDIDeskt
opHyper-V
SQLServe
r
IIS
VDIDeskt
op
Hyper-V Cluster
File Server Cluster
demo
What is our demo environment?
Setting it all up
File Server Cluster
SMB Transparent Failover
Failover transparent to server application
Zero downtimeSmall IO delay during failover
Supports planned and unplanned failovers
Hardware/software maintenanceHardware/software failuresOS restartLoad balancing
Resilient for both file and directory operationsRequires:
Windows Server 2012 Failover ClusterSMB Client with SMB 3.0File shares configured with Continuously Availability property
Failure occurs - connections and handles lost,temporary stall of IO (seconds)
2
Normal operation1
Connections and handles auto-recoveredApplication IO continues with no errors3
1 3
Node A Node B
\\fs1\share
\\fs1\share2
SQL Server
SMB Multichannel
Preliminary results using four 10GbE NICs simultaneously
Linear bandwidth scaling 1 NIC – 1150 MB/sec2 NICs – 2330 MB/sec3 NICs – 3320 MB/sec4 NICs – 4300 MB/sec
Leverages NIC support for RSS (Receive Side Scaling)
Bandwidth for small IOs is bottlenecked on CPU
512
1024
4096
8192
1638
4
3276
8
6553
6
1310
72
2621
44
5242
88
1048
576
0
1000
2000
3000
4000
5000
SMB Client Interface Scaling - Throughput1 x 10GbE 2 x 10GbE 3 x 10GbE 4 x 10GbE
I/O SizeM
B/s
ec
** Preliminary Results **Windows Server “8” Developer Preview
Data goes all the way to persistent storage. White paper provides full details.
See http://go.microsoft.com/fwlink/p/?LinkId=227841
SMB Direct Performance Preliminary results based on Windows Server 2012 RC
Configuration BWMB/sec
IOPSIOs/sec
%CPUPrivileged
RDMA (SMB Direct) 10,900 83,400 8
Local Storage 11,200 85,500 5
ConfigurationBW
MB/secIOPS
IOs/sec
%CPUPrivilege
d
RDMA (SMB Direct) 4,550 555,000 55
Local Storage 4,870 595,000 29
Workload: 128KB IOs, 4 threads, 64 outstanding
Workload: 8KB IOs, 16 threads, 48 outstanding
Windows Server 2008
R2
VMware vSphere 5
Windows Server 2012
250,000 IOPs
300,000 IOPs
1,000,000+ IOPs
Industry Leading IO Performance• VM storage performance on par
with native• Performance scales linearly with
increase in virtual processors• Windows Server 2012 Hyper-V
can virtualize over 99% of the world’s SQL Server.
Hyper-V: Over 1 Million IOPs from a Single VM
Agenda
SMB for SQL Microsoft SQL Server database storage Microsoft SQL Server databases on SMB file shares Windows Server 2012 SMB File Server enhancements
Scale-Out File Server for application data Hyper-V Enhancements for SQL Server Summary & QA
Clustered File Server
SMB Scale-Out File Server
New clustered file serverTargeted for server app storageKey capabilities:
Scale-out file shares (active-active)CHKDSK with zero downtimeClustered Shared Volumes block cacheSimpler management
Requires:Windows Server 2012 Failover Cluster with Clustered Shared VolumesSMB Client with SMB 3.0File shares configured with Continuously Availability property
Application Servers
Single File System Namespace
Cluster Shared Volumes
Single Logical File Server (\\fs\share)
Data Center Network
(Ethernet, InfiniBand or combination)
SMB PerformanceFundamental gains for server applications
Windows Server 2012 at 98% of local storage transactional performance
Identical servers and storage1Gbps Ethernet v. 4Gbps FC22 x 10KRPM HDD
Network transport optimizationsTCP/IP – SMB multi-channel & NIC Teaming, TCP offloads, DC-TCPRDMA – Lowest network CPU overhead (cycles/byte)
SMB SMB + DAS0
50010001500200025003000350040004500
1175 (27%)
4270 (98%) 4315 (100%)
SQL transactions/s
SMB PerformancePerformance tuning and debug
Enabling SQL DBAs to use existing skills to tune performanceSMB Client counters track per-share load
IO size/latency/queue length etc.Separately tune/target log file vs. data file performance
SMB Server counters track per-client load
Rebalance of loadDiagnose rogue clients
SMB Client View
SMB Server View
demo
Managing SQL Server databases on SMB file shares
Distributed Network Name (DNN)
Client Access Point (CAP) for a Scale-Out File Server DNS Name on the networkSecurity
Creates and manages computer object in ADRegisters credentials with LSA on each node
DNSRegisters the CAP with DNS
Registers node IP address for all nodes Does not use virtual IP addresses
DNN updates DNS whenDNN resource comes online and every 24 hoursA node is added or removed to/from clusterA cluster network is added or removed as a client networkIP address changes
If not using dynamic DNS, you must manually add the DNS records with the node IPs for the cluster networks enabled for client access for each node
> smbsofs33Server: stb-red-dc-01.stbtest.microsoft.comAddress: 10.200.81.201
Non-authoritative answer:Name: smbsofs33.ntdev.corp.microsoft.comAddresses: 2001:4898:0:fff:0:5efe:10.217.108.49 2001:4898:0:fff:0:5efe:10.217.108.103 2001:4898:0:fff:0:5efe:10.217.108.148 10.217.108.148 10.217.108.49 10.217.108.103
IPs on same subnet. One
for each node.
Client Redirection
SMB Clients are distributed at initial connect through DNS Round RobinSMB Clients are not redistributed automaticallySMB Clients connected to a Scale-Out File Server can be redirected to use a different cluster node
Scale-Out File Server Cluster
Node A Node B
1
SQL Server
W WNode C
W
Witness communication
SMB communication
1
Get-SmbWitnessClient | FL ClientName, FileServerNodeName, WitnessNodeNameClientName : SQLServerFileServerNodeName : AWitnessNodeName : B
Move-SmbWitnessClient –ClientName SQLServer –DestinationNode C
3
In ReviewSQL databases on SMB file shares
Shared network providing access to consolidated file level remote storageHighly available storageHigh performanceReduce SQL Server solution complexityReduce acquisition costs
Leverage commodity componentsLeverage existing network investments
Reduce operational costsSimpler managementLeverage existing people investment
Agenda
SMB for SQL Microsoft SQL Server database storage Microsoft SQL Server databases on SMB file shares Windows Server 2012 SMB File Server enhancements
Scale-Out File Server for application data Hyper-V Enhancements for SQL Server Summary & QA
Microsoft Hyper-V Server 2008 R2 SP1->2012MS Hyper-V Server 2008 R2 SP1 Microsoft Hyper-V Server 2012
Release Date: August 2011 Oct-26-2012
Cost: Free Download from:www.microsoft.com/hvs
Free Download from:www.microsoft.com/hvs
Physical Processor Support: Up to 8 processors(no core limitations)
Up to 64 processors(no core limitations)
Physical Memory Support: Up to 1 TB per server Up to 4 TB per server
Virtual Processors Up to 4 per VM Up to 64 per VM
Virtual Machine Memory Support: 64 GB of memory per VM(no memory tax)
1 TB of memory per VM(no memory tax)
Live Migration/High Availability: Yes Yes
Live Storage Migration: No Yes
Shared Nothing Live Migration: No Yes
RemoteFX: Yes More monitors, more resolutions
Storage Spaces: No Yes
VMs on File Based Storage No YesCustomer Driven: More Features, Scale, Availability, Mobility in every
release.
Hyper-V ReplicaUnlimited Replication
Disaster Recovery Scenarios:
Planned, Unplanned and Test Failover
Pre-configuration for IP settings for primary/remote location
Key Features:
RPO/RTO in minutes
Seamless integration with Hyper-V and Clustering
Automatically handles all VM mobility scenarios (e.g. Live migration)
Supports heterogonous storage between primary and recovery
Integrates with Volume Shadow Services (VSS)
[SCIM329] Enabling Disaster Recovery for Hyper-V workloads using Hyper-V Replica
LEARN MORE
demo
Hyper-V Replicafor applications
Key Hyper-V Replica Takeaways
Easy to SetupVia wizardOr, via PowerShell
Works with your current hardwareAll you need is two connected servers running Windows Server 2012No Guest Dependencies
Agenda
SMB for SQL Microsoft SQL Server database storage Microsoft SQL Server databases on SMB file shares Windows Server 2012 SMB File Server enhancements
Scale-Out File Server for application data Hyper-V Enhancements for SQL Server Summary & QA
SQL Server & Windows Server – Your HA Options
Synchronous data
movement
Asynch
ronou
s dat
a
mov
emen
t
AG
AG
AG
AG_Listener
And more from Windows Server 2012 Now……
• Storage Spaces (JBOD)
• Continuously Available File Server (SMB)• SQL Database on SMB
• Transparent Failover when FS fails
• MultiChannel Throughput Advantage (& RDMA)
• Skill Set (All you need to learn is Windows)
• Hyper-V Replica (For DR & Others)
• Live Migration• Over Different Subnets without changing any config
• Shared Nothing Live Migration (across Clusters!)
Unified HA Solution
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the
part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Key Advantages over VMware vSphereCapability Resource Windows Server
2008 R2 Hyper-VWindows Server 2012 Hyper-V
VMware vSphere5.1 Ent Plus
Scalability, Performance, Density
Active Virtual Machines Per Host 384 1,024 512
Memory Per Virtual Machine 64 GB 1 TB 1 TB
Virtual Processors Per Virtual Machine 4 64 64
Maximum Nodes Per Hyper-V Cluster 16 64 32
Maximum Virtual Machines per Hyper-V Cluster 1,000 8,000 3,000
SR-IOV with Live Migration Support No Yes No
Storage
Native 4KB Disk Support No Yes No
Maximum Virtual Disk Size 2 TB 64 TB 2 TB
Encrypted Cluster Storage No Yes No
Secure Multitenancy
Open Extensible Switch No Yes Closed
Resource Metering No Yes Chargeback Req.
Flexible Infrastructure
1GB Simultaneous Live Migrations 1 Unlimited 4
10GB Simultaneous Live Migrations 1 Unlimited 8
Live Storage Migration No Yes Yes
Shared Nothing Live Migration No Yes Yes
Network Virtualization No Yes VXLAN Req.
High Availability
Virtual Machine Replication Yes Yes Yes
Guest OS Application Monitoring No Yes API Only
Guest Clustering with Live Mig & Dyn Memory Yes Yes No