Professional Documents
Culture Documents
Agenda
SQL Server DataWarehouse Offering Overview Fast Track Offering
Motivation Balanced Architecture Approach for DW Example FastTrack Reference Architectures Optimizing Storage, Load and Maintenance Case Studies
Agenda
SQL Server DataWarehouse Offering Overview Fast Track Offering
Motivation Balanced Architecture Approach for DW Example FastTrack Reference Architectures Optimizing Storage, Load and Maintenance Case Studies
1 Minimal HW tune
4 3
PDW
up/optimization. Supports mixed workloads 2 Balanced solution for mostly scan centric workloads.
3 Max HW tune up for
2
SQL Server 2008 R2
Backup Compression
Resource Governor
Persistent Lookups
Data Profiling
Included at no charge! No Fee Based Options: Compression Partitioning Advanced Security Manageability ETL Business Intelligence
Agenda
SQL Server DataWarehouse Offering Overview Fast Track Offering
Motivation Balanced Architecture Approach for DW Example FastTrack Reference Architectures Optimizing Storage, Load and Maintenance Case Studies
1 Minimal HW tune
4 3
PDW
up/optimization. Supports mixed workloads 2 Balanced solution for mostly scan centric workloads.
3 Max HW tune up for
2
SQL Server 2008 R2
Next scale breakthrough coming with Parallel Data Warehouse this year
9
10
Layout and manage data to maximize range scan performance and minimize fragmentation
12
13
Agenda
SQL Server DataWarehouse Offering Overview Fast Track Offering
Motivation Balanced Architecture Approach for DW Example FastTrack Reference Architectures Optimizing Storage, Load and Maintenance Case Studies
14
Scan Intensive
Hash Joins
Aggregations
15
16
17
Alternative: Measure per-core data consumption for a variety of queries, and take the weighted average
A standard approach to capacity planning
18
21
22
Fiber Switch
Storage Enclosure
Storage Processor Storage Processor
Storage Enclosure
Storage Processor Storage Processor
Storage Enclosure
Storage Processor Storage Processor
Storage Enclosure
RAID-1 RAID-1
RAID-1 RAID-1
Storage Enclosure
RAID-1
Storage Enclosure
Storage Enclosure
Storage Processor Storage Processor
Server
23
HBA
Storage Enclosure
Agenda
SQL Server DataWarehouse Offering Overview Fast Track Offering
Motivation Balanced Architecture Approach for DW Example FastTrack Reference Architectures Optimizing Storage, Load and Maintenance Case Studies Conclusions
26
Agenda
SQL Server DataWarehouse Offering Overview Fast Track Offering
Motivation Balanced Architecture Approach for DW Example FastTrack Reference Architectures Optimizing Storage, Load and Maintenance Case Studies
27
01
02
03
04
09
10
LUN1 LUN2
RAID GP03
LUN3 LUN4
RAID GP04
LUN0 (Logs)
H S
Striping across storage is accomplished via SQL Server data files Observed throughput for a single RAID pair >= 130 MB/s
28
05
06
07
08
LUN5
LUN6
LUN7
LUN8
LUN16
Permanent_1.ndf
Permanent_2.ndf
Permanent_3.ndf
Permanent_16.ndf
Stage Database
Stage FG
Local Drive 1
Stage_1.ndf
Stage_2.ndf
Stage_3.ndf
Stage_16.ndf
TempDB
TempDB_03ndf (25GB)
TempDB_16.ndf (25GB)
Average request size that will be issued by read-ahead operations can be determined by looking at
avg_fragment_size_in_pages exposed by sys.dm_index_physical_stats Values >= 64 pages will mean I/Os sizes issued by read-ahead should be at or near 512K
31
Read-Ahead in Action
Clustered index: Key Order
1. Next range of pages requests is determined by looking at B-Tree for next range of key values 2. Pages for the range are sorted
3. I/O issued for each contiguous range of pages (up to 64 pages in a single request)
32
Periodic maintenance
33
34
orUse a batchsize = 0
Fine if no parallelism is needed during load
36
37
If historical partitions are loaded in parallel, consider separate filegroups for separate partitions to avoid extent fragmentation
38
39
Maintenance considerations
Use ALTER INDEX REBUILD WITH (MAXDOP = 1, SORT_IN_TEMPDB)
Single threaded -- avoids creating new extent fragmentation Can rebuild just the current partition
40
INSERT-SELECT from old to new (avoids a sort) Build secondary indexes Drop original table and rename the new All but final step can be performed online
41
Agenda
SQL Server DataWarehouse Offering Overview Fast Track Offering
Motivation Balanced Architecture Approach for DW Example FastTrack Reference Architectures Optimizing Storage, Load and Maintenance Case Studies
42
Parallel loading to staging table first Separate filegroups per-partition prevents interleaving during load
43
System Design
MSA2000 DAE Pri_A Pri_B Pri_C Pri_D Log Hot Spare Hot Spare
Spares 2 Drives
44
Results
Existing Appliance Loading Subject Area 1 Loading Subject Area 2 Query times Subject Area 1 Query times Subject Area 2 5:10:21 total time SQL Server Fast Track DW 51:31 total time Comparison R SQL Server 6x faster R SQL Server 2.5x faster R SQL Server 12x faster R SQL Server 7x faster
45
46
1. Bulk Insert
3. Switch
47
Agenda
SQL Server DataWarehouse Offering Overview Fast Track Offering
Motivation Balanced Architecture Approach for DW Example FastTrack Reference Architectures Optimizing Storage, Load and Maintenance Case Studies
48
1 Minimal HW tune
4 3
PDW
up/optimization. Supports mixed workloads 2 Balanced solution for mostly scan centric workloads.
3 Max HW tune up for
2
SQL Server 2008 R2
49
Massive Scale-Out of SQL Server through Massively Parallel Processing (MPP) system: 10s TB 100s TB PB Choice of hardware vendor - Reference Architectures from HP, Bull EMC, Dell, IBM Low cost of ownership through industry standard hardware Simplified deployment & maintenance via appliance model Integration with existing SQL Server 2008 data warehouses via Hub & Spoke Architecture Deep integration with Microsoft BI
50
Storage Nodes
Client Drivers
SQL
SQL
SQL
Management Servers
SQL
SQL
Landing Zone
ETL Load Interface
SQL
SQL
Backup Node
Corporate Backup Solution
SQL
SQL
51
Corporate Network
Private Network
Dual Infiniband
2010 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.
Resources
www.msteched.com/Australia
Sessions On-Demand & Community
www.microsoft.com/australia/learning
Microsoft Certification & Training Resources
http:// technet.microsoft.com/en-au
Resources for IT Professionals
http://msdn.microsoft.com/en-au
Resources for Developers
54