






































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!







































10/16/^
Data Streams: Lecture 7
10/16/^
Data Streams: Lecture 7
Operator Scheduling in a Data StreamManager, Carney, et al.
10/16/^
Data Streams: Lecture 7
., VLDB02]
...
...
...
... ...
... ... ^ Each application provides:^ ^ A query over input data streams^ ^ Quality-of-Service (QoS) specifications
App^
QoS App^
QoS App^
QoS
DataStreams
From: U. ÇetintemelMDM
10/16/^
Data Streams: Lecture 7
App^
QoS ... ...
... ... App^
QoS App^
QoS
σ^ σ σ^ σ σσ
MapMap Map Map
σσ σ σ AggregateAggregate μ^
App^
QoS
σ^ σ σσ Data Streams •BoxesBoxes^ •
→^ operators/user-→operators/user
-defined functionsdefined functions
•ArcsArcs^ •
→^ tuple queues→tuple queues• data can be made persistentdata can be made persistent - •
-^ snapshot (ad hoc) queries^ • snapshot (ad hoc) queries
From: U.From: U.^ ÇÇetintemeletintemelMDM04 MDM
10/16/^
Data Streams: Lecture 7
10/16/^
Data Streams: Lecture 7
10/16/^
Data Streams: Lecture 7
Scheduler
ExecutionThreads Run-time StatsMonitor
. .. Buffer Storage Manager^ Persistent Store
… q^1
… q^2
… q i
… q^1
…
. .. q n … q^2
σ σ^ μ^.^. .. ..^ ∪^ ∪
inputs^ outputs^ Router Embedded DB Catalog
External^ DBs
Loadshedder
Meta-data^ Data From: U. ÇetintemelMDM
10/16/^
Data Streams: Lecture 7
10/16/^
Data Streams: Lecture 7
Average Latency: 12.5p + 6o
10/16/^
Data Streams: Lecture 7
10/16/^
Data Streams: Lecture 7
(1 output tuple for every input tuple)
o_sel(b) =
∏^ sel(k) output_cost(b) =
Σ^ cost(k)/o_sel(k) As selectivity increases, cost increases.Selects boxes that have low cost and high probability of producingresults
b4 b5 b
b^
b b k in D(b) k in D(b)
What if selectivity of b6 is 10%?output_cost(b6) = cost(b6)/(sel(b6)*sel(b1)) + cost(b1)/sel(b1) = p/0.1+p/1 = 11p
- 10/16/ - Data Streams: Lecture