CAESAR: Context-Aware Event Stream Analytics in Real time
Olga Poppe, Chuan Lei, Elke A. Rundensteiner, and Dan Dougherty
March 18, 2016
1
CAESAR: Context-Aware Event Stream Analytics in Real time Olga - - PowerPoint PPT Presentation
CAESAR: Context-Aware Event Stream Analytics in Real time Olga Poppe, Chuan Lei, Elke A. Rundensteiner, and Dan Dougherty March 18, 2016 1 Complex Event Processing CEP engine Primitive events Complex events 1 , 2 , 3 The
March 18, 2016
1
Worcester Polytechnic Institute
The same workload of independent event queries is continuously evaluated
2
Primitive events Complex events
Worcester Polytechnic Institute
Examples of application contexts:
3
Worcester Polytechnic Institute
4
U.S. traffic corridors per year [The Wall Street Journal]
in the USA's 83 largest urban areas in 2010 [USA Today]
2010 [Wikipedia]
Worcester Polytechnic Institute
5
Accident
Congestion Clear Goal is to leverage application contexts to speed up system responsiveness
Accident warning Route re-computation Toll notification Route re-computation Statistics Local services
Worcester Polytechnic Institute
β Complex conditions implying a context β Unknown and unbounded context duration β Multiple inter-dependent event queries
6
Worcester Polytechnic Institute
7
CEP Systems (Esper, StreamInsight)
CAESAR
Business Models (BPMN, UML)
Expressive event queries Application contexts Context- aware
Worcester Polytechnic Institute
8
Worcester Polytechnic Institute
9
Worcester Polytechnic Institute
10
Worcester Polytechnic Institute
11
Worcester Polytechnic Institute
12
Worcester Polytechnic Institute
13
Worcester Polytechnic Institute
14
Worcester Polytechnic Institute
15
Worcester Polytechnic Institute
16
Worcester Polytechnic Institute
17
Worcester Polytechnic Institute
18
Worcester Polytechnic Institute
c π½, π
π π½, π
19
Worcester Polytechnic Institute
20
Context bit vector π: Context types: Time stamp π. π’πππ
1 1
πa, cb, β¦ cz
Worcester Polytechnic Institute
21
DERIVE Toll(c.id, c.sec, 5) PATTERN NewCar c CONTEXT congestion DERIVE NewCar(s.id, s.xway, s.dir, s.seg, s.lane, s.pos, s.lane) PATTERN SEQ(NOT Position f, Position s) WHERE f.sec+30=s.sec AND f.id=s.id AND f.laneβ β² exitβ² CONTEXT congestion
Worcester Polytechnic Institute
22
Worcester Polytechnic Institute
23
Given a workload of context-aware event queries,
plan for this workload with minimal CPU cost.
Worcester Polytechnic Institute
24
Performance benefits:
Worcester Polytechnic Institute
25
Worcester Polytechnic Institute
26
Worcester Polytechnic Institute
27
Worcester Polytechnic Institute
28
Worcester Polytechnic Institute
29
Worcester Polytechnic Institute
30
Execution infrastructure: Java 7, 1 Linux machine with 16-core 3.4 GHz CPU and 48GB of RAM Data sets:
3 roads=1.7GB
1.6GB
[1] A.Arasu et al., Linear Road: A stream data management benchmark. VLDBβ04 [2] A.Reiss et al., Creating and benchmarking a new data set for physical activity monitoring. PETRAβ12
Worcester Polytechnic Institute
31
For 7 roads, context-aware (CA) event stream analytics is 9-fold faster than context-independent (CI) approach.
Worcester Polytechnic Institute
32
If 30 context windows of length 15 minutes process 4 event queries each and overlap by 15 minutes, workload sharing wins 6-fold.
Worcester Polytechnic Institute
33
Worcester Polytechnic Institute
34
Worcester Polytechnic Institute
35