



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!




1
University of California, Berkekey
Presented by: Tai Hu
2
ย Introduction ย Adaptive building blocks ย Initial CQ Approaches ย TelegraphCQ ย Open issues ย Conclusion
3
ย Increasingly pervasive networks are leading towards a world where data is constantly in motion ย Query processors based on adaptive dataflow is necessary ย TelegraphCQ is an extension to the Telegraph project ย Handling large streams of continuous queries over high-volume, hightly-variable data streams
4
ย Traditional data processing environment is not suitable for motion data ย All challenges stem from ย Large scale ย Deeply-networked nature ย Unpredictability of the environment ย Need for close interaction with users
ย Streaming data ย Pushing, instead of pulling ย Have to be processed on the fly ย No statically stored information about data ย Continuous Queries (CQ) ย Queries are continuously active ย In traditional database system, query initiate data access operations ย In CQ, data initiate query processing operations
ย Shared processing ย Avoid blocking or interrupt dataflow ย Processing each query individually can be slow and wasteful of resources ย Queries should have some commonalities ย Other Sources of Unpredictability ย Deeply networked environment ย User may need to adjust the query on the fly based on the previous result
7
ย Designed to provide adaptivity to individual dataflow graphs
ย Two new prototypes to extend Telegraph to support shared processing over streams ย CACQ ย PSoup
8
ย Restricted their processing to data that could fit in memory ย Did not investigate scheduling and resource management issues for queries with little or no overlap ย Did not explicitly deal with the notion of QoS for adapting to resource limitation ย Did not explore opportunities for varying the degree of adaptivity to tradeoff flexibility and overhead
9
10
ย Interface with external data sources ย HTML/XML screen scrapter (TeSS) ย Proxy for fetching data from peer-to- peer networks (TeleNap) ย Could access data either locally or remotely
ย Routing tuples through query modules
ย Pipelined, non-blocking operators
ย A special type of module known as a State Module (SteM)
ย Constructing a query plan that contains adaptive routing modules ย Optimize the plan on a continuous basis while a query is running ย Eddy and Juggle ย All these modules communicate with each other by using Fjords
19
20
ย Scheduling and resource management for groups of queries ย Support for out-of-core data ย Variable adaptivity ย Dynamic QoS support ย Parallel cluster-based processing and distribution
21
ย Lanmark โ The older end of the window is fixed, while the newer end of the window moves forward with the arrival of new tuples in the stream
ย Sliding โ Both the ends move forward in unison with the arrival of new tuples
ย Some examples
22
25
26
ย Logical time vs. physical time ย Window type ย โHopโ size
27
28
ย Chief Challenge in using PostgreSQL is supporting the TelegraphCQ features it was not designed for: ย Streaming data ย Continuous queries ย Shared processing ย Adaptivity
ย Font end ย Listener ย Catalog ย Parser ย optimizer ย Ingress Operator ย Pull source ย Push source ย The TelegraphCQ Excutor ย Actual query processing