Docsity

TelegraphCQ: Continuous Query Processing with Extreme Adaptivity - Prof. Alan L. Sussman, Study notes of Computer Science

Toggle sidebar
bg1
1
1
TelegraphCQ: Continuous
Dataflow Processing for an
Uncertain World
University of California, Berkekey
Presented by: Tai Hu
2
Outline
๎š„Introduction
๎š„Adaptive building blocks
๎š„Initial CQ Approaches
๎š„TelegraphCQ
๎š„Open issues
๎š„Conclusion
3
Introduction
๎š„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
Introduction - Continue
๎š„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
5
Data Movement Implies
Adaptivity
๎š„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
6
Data Movement Implies
Adaptivity - Continue
๎š„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
pf3
pf4
pf5

Partial preview of the text

Download TelegraphCQ: Continuous Query Processing with Extreme Adaptivity - Prof. Alan L. Sussman and more Study notes Computer Science in PDF only on Docsity!

1

TelegraphCQ: Continuous

Dataflow Processing for an

Uncertain World

University of California, Berkekey

Presented by: Tai Hu

2

Outline

ย„ Introduction ย„ Adaptive building blocks ย„ Initial CQ Approaches ย„ TelegraphCQ ย„ Open issues ย„ Conclusion

3

Introduction

ย„ 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

Introduction - Continue

ย„ 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

Data Movement Implies

Adaptivity

ย„ 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

Data Movement Implies

Adaptivity - Continue

ย„ 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

Telegraph - an Ancestor of

TelegraphCQ

ย„ Designed to provide adaptivity to individual dataflow graphs

ย„ Two new prototypes to extend Telegraph to support shared processing over streams ย„ CACQ ย„ PSoup

8

Limitation on Telegraph

ย„ 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

Adaptive Building Blocks

10

Ingress and Caching

ย„ 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

Query Processing

ย„ Routing tuples through query modules

ย„ Pipelined, non-blocking operators

ย„ A special type of module known as a State Module (SteM)

Adaptive Routing

ย„ 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

Initial CQ Approaches -

Continue

20

TelegraphCQ

ย„ 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

Window Semantics In

TelegraphCQ

ย„ 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

Examples for Window

Sementics

Examples for Window

Sementics - Continue

Landmark Query

25

Sliding Query

26

Effect of Window Semantics

on System Design

ย„ Logical time vs. physical time ย„ Window type ย„ โ€œHopโ€ size

27

TelegraphCQ Design Overview

28

TelegraphCQ Design Overview

- Continue

ย„ Chief Challenge in using PostgreSQL is supporting the TelegraphCQ features it was not designed for: ย„ Streaming data ย„ Continuous queries ย„ Shared processing ย„ Adaptivity

TelegraphCQ Architecture

ย„ Font end ย„ Listener ย„ Catalog ย„ Parser ย„ optimizer ย„ Ingress Operator ย„ Pull source ย„ Push source ย„ The TelegraphCQ Excutor ย„ Actual query processing

TelegraphCQ Architecture -

Continue