






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







12/27/ 04 1
12/27/ 04 2
12/27/ 04 3
12/27/ 04 5
12/27/ 04 6
2
12/27/ 04 7
TP System Infrastructure … D efines System and A pplication Structure
Presentation M anager
W orkflow C ontrol (routes requests and supervises theirexecution)
D atabase System
Front-End (C lient)
Back-End (Server)
End-U ser
Transaction Program
requests
12/27/ 04 8
System Characteristics
12/27/ 04 9
A vailability
D ow ntim e A vailability 1 hour/day 95.8% 1 hour/w eek 99.41% 1 hour/m onth 99.86% 1 hour/year 99.9886% 1 hour/20years 99.99942%
12/27/ 04 10
A pplication Servers
12/27/ 04 11
A pplication Servers (cont’d)
12/27/ 04 12
Presentation Server
W orkflow C ontroller
Transaction Server Transaction Server
N etw ork
R equests
M essage Inputs
A pp ServerA rchitecture,pre-W eb
Q ueues
4
12/27/ 04 19
W orkflow System s
System Softw are V endor’s V iew
12/27/ 04 21
O utline
1.The Basics 2.A CID Properties 3.A tom icity and Tw o-Phase Com m it 4.Perform ance 5.Styles ofSystem
12/27/ 04 22
1.2 The A CID Properties
12/27/ 04 23
A tom icity
Exam ple -A TM D ispenses M oney
(a non-undoable operation)
T1: Start
... Commit Dispense Money
T1: Start
... Dispense Money Commit
System crashes
D eferred operation never gets executed
System crashes Transaction aborts M oney is dispensed
5
12/27/ 04 25
Reading U ncom m itted O utputIsn’t U ndoable T1: Start ... Display output ... If error, Abort
T2: Start Get input from display ... Commit
U serreads output … U serenters input Brain transport
12/27/ 04 26
Com pensating Transactions
12/27/ 04 27
Consistency
12/27/ 04 28
Som e N otation
12/27/ 04 29
Consistency Preservation Exam ple T 1 :Start; A = Read(x); A = A -1; W rite(y,A ); Com m it;
T 2 :Start; B = Read(x); C = Read(y); If (B > C+1)then B = B -1; W rite(x,B); Com m it;
Isolation
7
12/27/ 04 37
Tw o-Phase Com m it
Tw o-Phase Com m it System A rchitecture
Resource M anager
Transaction M anager(TM )
A pplication Program
O ther Transaction M anagers 1.Starttransaction returns a unique transaction identifier 2.Resource accesses include the transaction identifier. Foreach transaction,RM registers w ith TM 3.W hen application asks TM to com m it,the TM runs tw o-phase com m it.
Start Commit, Abort
Read, Write
12/27/ 04 39
O utline
1.The Basics 2.A CID Properties 3.A tom icity and Tw o-Phase Com m it 4.Perform ance 5.Styles ofSystem
12/27/ 04 40
1.4 Perform ance Requirem ents
12/27/ 04 41
TPC-A /B — Bank Tellers
Start Read message from terminal (100 bytes) Read+write account record (random access) Write history record (sequentialaccess) Read+write teller record (random access) Read+write branch record (random access) Write message to terminal (200 bytes) Commit
12/27/ 04 42
The TPC-C O rder-Entry Benchm ark
Table R ow s/W hse B ytes/row W arehouse 1 89 D istrict 10 95 C ustom er 30K 655 H istory 30K 46 O rder 30K 24 N ew -O rder 9K 8 O rderLine 300K 54 Stock 100K 306 Item 100K 82
8
12/27/ 04 43
TPC-C Transactions
12/27/ 04 44
Com m ents on TPC-C
12/27/ 04 45
TypicalTPC-C N um bers
TPC-W – W eb Retailer
12/27/ 04 47
Com ing Soon
12/27/ 04 48
O utline
1.The Basics 2.A CID Properties 3.A tom icity and Tw o-Phase Com m it 4.Perform ance 5.Styles ofSystem
10
12/27/ 04 55
O utline
1.The Basics 2.A CID Properties 3.A tom icity and Tw o-Phase Com m it 4.Perform ance 5.Styles ofSystem
12/27/ 04 56
W hat’s N ext?