Partition and Compose: Parallel Complex Event Processing
Martin Hirzel, IBM Research Tuesday, 17 July 2012 DEBS
1
Partition and Compose: Parallel Complex Event Processing Martin - - PowerPoint PPT Presentation
Partition and Compose: Parallel Complex Event Processing Martin Hirzel, IBM Research Tuesday, 17 July 2012 DEBS 1 ? CEP = Stream Processing? Event (Stream) Processing Aggregate Complex Event Processing Enrich Filter Use pattern over
1
2
3 ¡
4
5
Composite events Simple events Regular expression Aggregation Key
6
7
8
9
MatchRegex
instance Upstream
instance C
p
i t e e v e n t s S i m p l e e v e n t s At compile-time At runtime param,
Automaton MatchRegex
invocation MatchRegex
generator Downstream
instance
4 rise 2 5 1 3 drop drop deep . rise deep rise rise drop drop 6
10
. rise+ drop+ rise+ drop* deep
Create new partial match Report completed match and flush Update and filter partial match
11
:PartitionMap 0..* :SimpleEvent ts symbol price size seqNum key
4 rise 2 5 1 3 drop drop deep rise deep rise rise drop drop 6 .
:PartialMatch state aggr
12
4 rise 2 5 1 3 drop drop deep rise deep rise rise drop drop 6 .
13 ¡
…
key :SimpleEvent symbol …
MatchRegex
PartitionMap
Up-stream
Down-stream
Simple events Composite events Parallelize MatchRegex (replica 2)
PartitionMap
…
key for partition map :SimpleEvent symbol …
MatchRegex (replica 1)
PartitionMap
MatchRegex (replica 0)
PartitionMap
Up-stream
Down-stream
Simple events Composite events
key for hash-split
14
15
16
17 ¡
[Woods,Teubner VLDB]
18
2000 today
19
20
21 ¡
ParseTweet (replica 2) ParseTweet (replica 1) ParseTweet (replica 0) Source Down-stream
Raw tweets as XML documents MatchRegex (replica 2) MatchRegex (replica 1) MatchRegex (replica 0) Tweets as simple events Composite events