vld bs conquering the giant

34
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Conquering the Giants: Very Large Databases For audio, call the phone number in your meeting invite. Audio will not come through the computer speakers.

Upload: test5767

Post on 26-Dec-2014

205 views

Category:

Technology


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Vld bs   conquering the giant

© 2008 Quest Software, Inc. ALL RIGHTS RESERVED.

Conquering the Giants:Very Large Databases

For audio, call the phone number in your meeting invite.

Audio will not come through the computer speakers.

Page 2: Vld bs   conquering the giant

• SQL Server Expertfor Quest Software

• Editor-in-Chief at SQLServerPedia.com

• Former SQL DBA• Managed data

warehouses,>80tb SAN storage for $7b company

Page 3: Vld bs   conquering the giant

Conquering the Giants: Agenda• What’s a VLDB?• Ginormous Growth• Big Backups• Tremendous Tables• Slow SQL Statements• Your Wingman: Quest• Resources

Photo Licensed with Creative Commons from http://www.flickr.com/photos/pagedooley/2172001078/

Page 4: Vld bs   conquering the giant

What Makes a VLDB?• 1 terabyte• Billion rows

• But Not:User Qty,Criticality,Transactions Per Second

4

Photo Licensed with Creative Commons from http://www.flickr.com/photos/tcmhitchhiker/1053095394

Page 5: Vld bs   conquering the giant

5

VLDB Space Challenges

Page 6: Vld bs   conquering the giant

Default File Growth Settings

6

Page 7: Vld bs   conquering the giant

Starts Out Small…

7

Page 8: Vld bs   conquering the giant

Ginormous Growths

8

Page 9: Vld bs   conquering the giant

Instant File Init in Secpol.msc

9

Page 10: Vld bs   conquering the giant

VLDBs = Big Backups• Time Problem• Nightly Load Windows• Time to Recover• Dev, QA, Test, DR

10

Page 11: Vld bs   conquering the giant

Giant Monstrous Backups

11

Page 12: Vld bs   conquering the giant

Cutting Them Down to Size

12

Page 13: Vld bs   conquering the giant

Next Weapon: SAN Snapshots

13

Page 14: Vld bs   conquering the giant

Post-Snapshot

14

Page 15: Vld bs   conquering the giant

Making the Snap Available

15

Page 16: Vld bs   conquering the giant

Weapon: Backup Compression

16

Photo Licensed with Creative Commons from http://www.flickr.com/photos/tcmhitchhiker/1053045338/

Page 17: Vld bs   conquering the giant

Or – Compress Everything!

17

Page 18: Vld bs   conquering the giant

VLDB Problem: Giant Tables

18

Page 19: Vld bs   conquering the giant

Hunt Down and Kill Unused Indexes

19

Page 20: Vld bs   conquering the giant

Breaking Giants Into Pieces

20

Page 21: Vld bs   conquering the giant

The New Way: Partitioning

21

Page 22: Vld bs   conquering the giant

Partitioning Basics• Create filegroups• Create files in the filegroups• Design partition function• Design partition scheme• Alter table’s clustered index

22

Page 23: Vld bs   conquering the giant

Sliding Window Loads• Partition by day• Create new

table similarto Sales table,on same filegroup

• Load one day’sdata into empty table

• Swap out a partition for that table

23

Page 24: Vld bs   conquering the giant

Giant Drawbacks• Not easy to change• Requires lots of

experimentation• Partition elimination

doesn’t always work• Requires familiarity

with queries, data• Storage skills help• Hardware-dependent

24

Photo Licensed with Creative Commons from http://www.flickr.com/photos/cellphonesusie/3224335140/

Page 25: Vld bs   conquering the giant

SQLCAT MAXDOP FAQ

25

Page 26: Vld bs   conquering the giant

The New-New Way: 2008 R2

26

Page 27: Vld bs   conquering the giant

Slow SQL Statements

27

Page 28: Vld bs   conquering the giant

Your Shovel: Resource Governor• Slows zombie

queries down• Throttle CPU,

memory• Can throttle jobs,

backups too• Doesn’t throttle

storage (yet)

28

Photo Licensed with Creative Commons from http://www.flickr.com/photos/archiemcphee/3612278108/

Page 29: Vld bs   conquering the giant

Implementing The Governator• Workload groups:

– ETL processes– Reports– AdHoc

• Resource pool:– ETL– Reports

• Classification function based on:– Login name– Application name

29

Photo Licensed with Creative Commons from http://www.flickr.com/photos/shaunwong/2467881648/

Page 30: Vld bs   conquering the giant

End Results in SSMS 2008

30

Page 31: Vld bs   conquering the giant

Resource Governor Caveats• Ask the network team about QoS• Get manager consensus on SLAs• Keep it absolutely transparent• Avoid false alarms about performance

problems• Teach managers how to “see” it working

31

Page 32: Vld bs   conquering the giant

Your Wingman: Quest Software• Capacity Manager v3.0

– Capacity Planning– Index Defragmentation– Partitioning GUI

• LiteSpeed v5.1– SmartDiffs– Throttled Compression

32

Page 33: Vld bs   conquering the giant

Showing the Giant Who’s Boss• Use Instant File Initialization• Consider Differential Backups• Compress Data• Drop Baggage• Partitioning FTW• Resource

Governator• Check Out Quest

Capacity Manager

Photo Licensed with Creative Commons from http://www.flickr.com/photos/keeg/1661401660/

Page 34: Vld bs   conquering the giant

VLDB Resources• Presentation Resources:

http://sqlserverpedia.com/wiki/VLDB

• Quest Software:http://www.quest.com/sql-server/

• Upcoming Webcasts:http://www.quest.com/events