Académique Documents
Professionnel Documents
Culture Documents
White Paper
Published: February 2008 Updated: July 2008 Summary: Microsoft SQL Server 2008 i corporates the tools a d tech olo!ies that are ecessary to i"ple"e t relatio al databases# reporti ! syste"s# a d data $arehouses of e terprise scale# a d provides opti"al perfor"a ce a d respo sive ess% With SQL Server 2008# you ca ta&e adva ta!e of the latest hard$are tech olo!ies $hile scali ! up your servers to support server co solidatio % SQL Server 2008 also e ables you to scale out your lar!est data solutio s% For the latest i for"atio # see Microsoft SQL Server 2008%
Contents
' troductio %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ( )pti"i*i ! Perfor"a ce $ith SQL Server 2008%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%( +elatio al ,atabase Perfor"a ce%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%( Measurable# +eal-World Perfor"a ce%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%( .i!h Perfor"a ce Query Processi ! / !i e%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%0 Perfor"a ce )pti"i*atio 1ools%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%0 +esource 2over or%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%3 Perfor"a ce Studio%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%3 ,ata Warehousi ! a d 4 alysis Perfor"a ce%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5 +eporti ! Services Perfor"a ce%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%8 ' te!ratio Services Perfor"a ce%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%8 Scali ! Up $ith SQL Server 2008%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%6 .ard$are Support%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%6 4dva ced 7o curre cy Features%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%80 Scali ! )ut $ith SQL Server 2008%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%80 Scalable Shared ,atabases%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%80 ,ata ,epe de t +outi !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%88 Peer-to-Peer +eplicatio %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%88 Query 9otificatio s%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%88 Scalable Shared ,atabases for 4 alysis Services%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%88 7o clusio %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 82
2 2
Introduction
1oday:s or!a i*atio s eed easily accessible a d readily available busi ess data so that they ca co"pete i the !lobal "ar&etplace% ' respo se to this eed# relatio al a d a alytical databases co ti ue to !ro$ i si*e# e"bedded databases ship $ith "a y products# a d "a y co"pa ies co solidate servers to ease "a a!e"e t co cer s% 7o"pa ies "ust "ai tai opti"al perfor"a ce $hile their data e viro "e t co ti ues to !ro$ i si*e a d co"ple;ity% 1his $hite paper describes the perfor"a ce a d scalability capabilities of Microsoft< SQL Server< 2008 a d e;plai s ho$ you ca use these capabilities to:
)pti"i*e perfor"a ce for a y si*e of database $ith the tools a d features that are available for the database e !i e# a alysis services# reporti ! services# a d i te!ratio services% Scale up your servers to ta&e full adva ta!e of e$ hard$are capabilities%
Scale out your database e viro "e t to opti"i*e respo sive ess a d to "ove your data closer to your users%
ve dor to publish results for the e$er 17P-/ be ch"ar&# $hich represe ts "ore accurately the &i ds of )L1P $or&loads that are co""o i "oder or!a i*atio s% 4dditio ally# SQL Server de"o strates its perfor"a ce capabilities for lar!escale# data $arehousi ! $or&loads throu!h 1P7-. results i the (-terabyte a d 80-terabyte cate!ories% >For curre t be ch"ar& results# see the 1P7 Web site at $$$%tpc%or!%?
reor!a i*es or rebuilds i de;es# a d updates i de; a d selectivity statistics# to e sure co siste tly opti"i*ed perfor"a ce as data i serts a d "odificatio s fra!"e t the physical data pa!es of your database%
e#ource +overnor
)fte # a si !le server is used to provide "ultiple data services% ' so"e cases# "a y applicatio s a d $or&loads rely o the sa"e data source% 4s the curre t tre d for server co solidatio co ti ues# it ca be difficult to provide predictable perfor"a ce for a !ive $or&load because other $or&loads o the sa"e server co"pete for syste" resources% With "ultiple $or&loads o a si !le server# ad"i istrators "ust avoid proble"s such as a ru a$ay Auery that starves a other $or&load of syste" resources# or lo$-priority $or&loads that adversely affect hi!h-priority $or&loads% SQL Server 2008 i cludes +esource 2over or# $hich e ables ad"i istrators to defi e li"its a d assi! priorities to i dividual $or&loads that are ru i ! o a SQL Server i sta ce% Wor&loads are based o factors such as users# applicatio s# a d databases% =y defi i ! li"its o resources# ad"i istrators ca "i i"i*e the possibility of ru a$ay Aueries as $ell as li"it the resources that are available to $or&loads that "o opoli*e resources% =y setti ! priorities# ad"i istrators ca opti"i*e the perfor"a ce of a "issio -critical process $hile "ai tai i ! predictability for the other $or&loads o the server%
Performance Studio
SQL Server 2008 provides Perfor"a ce Studio# a i te!rated fra"e$or& that you ca use to collect# a aly*e# troubleshoot# a d store SQL Server dia! ostics i for"atio % Perfor"a ce Studio provides a e d-to-e d solutio for perfor"a ce "o itori ! that i cludes lo$ overhead collectio # ce trali*ed stora!e# a d a alytical reporti ! of perfor"a ce data% Bou ca use SQL Server Ma a!e"e t Studio to "a a!e collectio tas&s# such as e abli ! the data collector# starti ! a collectio set# a d vie$i ! syste" collectio set reports as a perfor"a ce dashboard% Bou ca also use syste" stored procedures a d the Perfor"a ce Studio applicatio pro!ra""i ! i terface >4P'? to build your o$ perfor"a ce "a a!e"e t utilities based o Perfor"a ce Studio% Perfor"a ce Studio provides a u ified data collectio i frastructure that co sists of a data collector i each SQL Server i sta ce you $a t to "o itor% 1he data collector is fle;ible a d provides the ability to "a a!e the scope of data collectio to fit develop"e t# test# a d productio e viro "e ts% Bou ca easily collect both perfor"a ce a d !e eral dia! ostic data $ith the data collectio fra"e$or&% 1he data collector i frastructure i troduces the follo$i ! e$ co cepts a d defi itio s:
!ata Provider% Sources of perfor"a ce or dia! ostic i for"atio that ca i clude SQL 1race# perfor"a ce cou ters# a d 1ra sact-SQL Aueries >for e;a"ple# to retrieve data fro" distributed "a a!e"e t vie$s?%
3 SQL Server 2008 Perfor"a ce a d Scale 3
,ollector *ype % 4 lo!ical $rapper that provides the "echa is" for collecti ! the data fro" the data provider% ,ollection Item% 4 i sta ce of a collector type% Whe you create a collectio ite"# you defi e the i put properties a d collectio freAue cy for the ite"% 4 collectio ite" ca ot e;ist o its o$ % ,ollection Set% 1he basic u it of data collectio % 4 collectio set is a !roup of collectio ite"s that are defi ed a d deployed o a SQL Server i sta ce% 7ollectio sets ca ru i depe de tly of each other% ,ollection $ode% 1he "a er i $hich the data i a collectio set is collected a d stored% 1he collectio "ode ca be set to cached or o -cached% 1he collectio "ode affects the type of Dobs a d schedules that e;ist for the collectio set%
1he data collector is e;te sible a d supports the additio of e$ data providers% Whe the data collector is co fi!ured# a relatio al database $ith the default a"e $!' is created as a "a a!e"e t data $arehouse i $hich to store the collected data% 1his database ca reside o the sa"e syste" as the data collector or o a separate server% )bDects i the "a a!e"e t data $arehouse are !rouped i to the follo$i ! three preco fi!ured sche"as# each of $hich has a differe t purpose:
1he ,ore sche"a i cludes tables a d stored procedures for or!a i*i ! a d ide tifyi ! the collected date% 1he Snap#hot sche"a i cludes data tables# vie$s# a d other obDects to support the data collected fro" the sta dard collector types% 1he ,u#tom-Snap#hot sche"a e ables the creatio of e$ data tables to support userdefi ed collectio sets that are created fro" sta dard a d e;te ded collector types%
Perfor"a ce Studio provides a robust set of preco fi!ured syste" collectio sets# i cludi ! Server .ctivity# Query Stati#tic## a d !i#/ 0#age# to help you to Auic&ly a aly*e your collected data% Bou usually start your "o itori ! a d troubleshooti ! $ith the Server .ctivity syste" collectio set% 4 set of reports associated $ith each syste" collectio set is published i SQL Server Ma a!e"e t Studio# a d you ca use these reports as a perfor"a ce dashboard to help you to a aly*e the perfor"a ce of your database syste"s as sho$ i the follo$i ! fi!ure%
4 alysis Services use default values# "i i"i*e the u"ber of e;pressio s that "ust be co"puted# a d li"it cell avi!atio to o ce for the e tire space# rather tha o ce for each cell# $hich si! ifica tly i"proves co"putatio perfor"a ce% 4lthou!h Multidi"e sio al )L4P >M)L4P? partitio s provide !reater Auery perfor"a ce# or!a i*atio s that reAuire $rite-bac& capabilities $ere previously reAuired to use +elatio al )L4P >+)L4P? partitio s to "ai tai the $rite-bac& tables% SQL Server 2008 adds the ability to perfor" $rite-bac& operatio s to M)L4P partitio s# $hich re"oves the perfor"a ce de!radatio that is caused by "ai tai i ! +)L4P $rite-bac& tables%
cha !e tables# $hich helps to trac& data cha !es a d e sure co siste cy i the data $arehouse $he data refreshes are scheduled%
(ardware Support
SQL Server 2008 ta&es full adva ta!e of "oder hard$are i cludi ! E0-bit# "ulti-core# a d "ulti-processor syste"s% 1o support i creased reporti !# a alytical# a d data access loads# SQL Server ca address up to E0 2= of "e"ory a d supports dy a"ic allocatio of 4W/-"apped "e"ory o (2-bit hard$are# a d ca address up to 8 terabytes of "e"ory o E0-bit hard$are% Whe a lar!e u"ber of processors are added to a server# "e"ory access ca be slo$ed do$ if processors "ust access "e"ory that is ot local to the processor% .ard$are built to the o -u ifor" "e"ory access >9UM4? architecture overco"es these "e"ory access li"itatio s by e abli ! processors to access local "e"ory% SQL Server is a$are of 9UM4 hard$are# so provides co"pa ies $ith !reater scalability a d "ore perfor"a ce optio s% Bou ca ta&e adva ta!e of 9UM4-based co"puters $ithout applicatio co fi!uratio cha !es% SQL Server 2008 supports both hard$are 9UM4 a d soft-9UM4% (ot&.dd (ardware 4lthou!h you ca easily scale up a SQL Server i sta ce by addi ! "e"ory or 7PUs# scheduli ! do$ ti"e to add hard$are to scale up your "issio critical applicatio s a d t$e ty-four-hour-a-day# seve -day-a-$ee& operatio s ca be difficult% With SQL Server 2008# you ca scale up your server by addi ! 7PUs a d "e"ory to co"patible "achi es $ithout havi ! to stop your database services% 1he follo$i ! reAuire"e ts "ust be "et to hot-add "e"ory:
SQL Server 2008 / terprise Wi do$s Server < 200( / terprise /ditio or Wi do$s Server 200( ,atace ter /ditio E0-bit SQL Server or (2-bit SQL Server $ith 4W/ support e abled .ard$are fro" your hard$are ve dor that supports "e"ory additio # or virtuali*atio soft$are SQL Server started $ith the Gh optio
80
Peer&to&Peer eplication
Peer-to-peer replicatio ca provide a effective scale-out solutio i $hich ide tical copies of a database are distributed to locatio s throu!hout the or!a i*atio # so that "odificatio s "ade to the local copy of the data are propa!ated auto"atically to the other replicated copies% SQL Server 2008 helps you to reduce the ti"e ta&e to i"ple"e t a d "a a!e a peer-to-peer replicatio solutio $ith the e$ Peer-to-Peer 1opolo!y $i*ard a d visual desi! er% =y usi ! peer-to-peer replicatio you ca e able applicatio s to read or "odify data i a y of the databases that are participati ! i replicatio % While previous versio s of SQL Server reAuired ad"i istrators to stop activity o published tables o all odes before attachi ! a e$ ode to a e;isti ! ode# SQL Server 2008 e ables e$ odes to be added a d co ected# eve duri ! replicatio activity%
Query 3otification#
Most e terprise applicatio s are based o a three-tier architecture i $hich data is retrieved fro" the database server by o e or "ore applicatio servers >ofte a Web far"?# $hich is i tur accessed by clie t co"puters% 1o i"prove perfor"a ce# "a y applicatio servers cache data to provide Auic&er respo se ti"es to users% ) e li"itatio of cached data is the eed to refresh the data# because if the data is ot refreshed freAue tly e ou!h# users ca receive stale data that is o lo !er accurate% +efreshi ! data "ore freAue tly adds overhead $hich ca ulti"ately slo$ do$ the perfor"a ce o the applicatio server% SQL Server 2008 helps applicatio s to use applicatio cache "ore efficie tly by usi ! Auery otificatio s to auto"atically otify "iddle tier applicatio s $he the cached data is outdated% 1he applicatio server ca subscribe to Auery otificatio so that it is i for"ed $he updates that affect the cached data are perfor"ed o the database% 1he applicatio server ca the dy a"ically refresh the cache $ith the updated data%
out 4 alysis Services deploy"e t i $hich a si !le# ce trali*ed read-o ly copy of the 4 alysis Services database is shared across "ultiple i sta ces a d accessed throu!h a si !le virtual 'P address as sho$ i Fi!ure 2%
,onclu#ion
SQL Server 2008 provides a rich a d po$erful e viro "e t for all of your data eeds% 't is opti"i*ed to provide the best perfor"a ce throu!h its adva ced relatio al database e !i e# 4 alysis Services# +eporti ! Services# a d ' te!ratio Services% 9e$ a d $ell-established tools a d tech iAues $or& to!ether to help co"pa ies to deploy a y si*e of data e viro "e t a d to "ai tai opti"al perfor"a ce% SQL Server 2008 supports the latest tech olo!y tre ds to !ive co"pa ies the fle;ibility to scale up i dividual servers a d co solidate $or&loads o to these servers% 't also provides co"pa ies $ith the tech olo!ies that are ecessary to scale out the lar!est databases% 1or more information: Microsoft SQL Server 2008 http:CC$$$%"icrosoft%co"CsAlserverC2008Ce CusCdefault%asp; SQL Server ,eveloper 7e ter http:CC"sd 2%"icrosoft%co"CsAlserver SQL Server 1ech7e ter http:CCtech et%"icrosoft%co"CsAlserver
82
Plea#e give u# your feed"ac/: ,id this paper help youI 1ell us o a scale of 8 >poor? to 3 >e;celle t?# ho$ $ould you rate this paper a d $hy have you !ive it this rati !I For e;a"ple:
4re you !ivi ! it a hi!h rati ! because it has !ood e;a"ples# e;celle t scree shots# clear $riti !# or a other reaso I 4re you !ivi ! it a lo$ rati ! because it has poor e;a"ples# fu**y scree shots# u clear $riti !I
1his feedbac& $ill help us i"prove the Auality of $hite papers $e release% Se d feedbac&%
1he i for"atio co tai ed i this docu"e t represe ts the curre t vie$ of Microsoft 7orporatio o the issues discussed as of the date of publicatio % =ecause Microsoft "ust respo d to cha !i ! "ar&et co ditio s# it should ot be i terpreted to be a co""it"e t o the part of Microsoft# a d Microsoft ca ot !uara tee the accuracy of a y i for"atio prese ted after the date of publicatio % 1his $hite paper is for i for"atio al purposes o ly% M'7+)S)F1 M4J/S 9) W4++491'/S# /KP+/SS )+ 'MPL'/,# '9 1.'S ,)7UM/91% 7o"plyi ! $ith all applicable copyri!ht la$s is the respo sibility of the user% Without li"iti ! the ri!hts u der copyri!ht# o part of this docu"e t "ay be reproduced# stored i # or i troduced i to a retrieval syste"# or tra s"itted i a y for" or by a y "ea s >electro ic# "echa ical# photocopyi !# recordi !# or other$ise?# or for a y purpose# $ithout the e;press $ritte per"issio of Microsoft 7orporatio % Microsoft "ay have pate ts# pate t applicatio s# trade"ar&s# copyri!hts# or other i tellectual property ri!hts coveri ! subDect "atter i this docu"e t% /;cept as e;pressly provided i a y $ritte lice se a!ree"e t fro" Microsoft# the fur ishi ! of this docu"e t does ot !ive you a y lice se to these pate ts# trade"ar&s# copyri!hts# or other i tellectual property% L 2008 Microsoft 7orporatio % 4ll ri!hts reserved% Microsoft# Po$erShell# SharePoi t# SQL Server# Fisual =asic# Fisual 7M# Fisual Studio# Wi do$s# Wi do$s Server# a d the Server 'de tity Lo!o are trade"ar&s of the Microsoft !roup of co"pa ies% 4ll other trade"ar&s are property of their respective o$ ers%