Constant-Time Approximate Sliding Window Framework with Error Control
Álvaro Villalba Former Research Engineer
05/08/2019 ISORC 2019 - València
Approximate Sliding Window Framework with Error Control lvaro - - PowerPoint PPT Presentation
Constant-Time Approximate Sliding Window Framework with Error Control lvaro Villalba Former Research Engineer 05/08/2019 ISORC 2019 - Valncia A bit about me PhD Student at UPC - BarcelonaTECH Computer Architecture Department
05/08/2019 ISORC 2019 - València
UPC - BarcelonaTECH
Department
NearbyComputing
(2012 – 2018)
by 2020
50 billion by 2020
with virtualized resources accessible to many users over the internet
? Current State
∞ …
Current State
∞
functions
Size
∞
… ? Size
∞
includes its newest element
the window
1 4 3
∞ … ∞
2 3 2 3 Window Result: 4 Operation: Max WSP: Size ≤ 5 3 1 4
∞ …
? 2 3 2 Window Result: 3
∞
properties:
Reduce phase:
aggregation
are not aggregated anymore
the Reduce with Maps, i.e.:
Mean aggregation: Map: f 𝒚 = {𝒚, 𝟐} Reduce: f 𝒚, 𝒛 = {𝒚𝟐 + 𝒛𝟐, 𝒚𝟑 + 𝒛𝟑} Map: f 𝒚 =
𝒚𝟐 𝒚𝟑
WSP
satisfy the WSP
2 1 2 1 2 1 2 1 3 3 3 + + + 6 + Window 6 3 3 3 1 2 1 2 1 2 1 2 1 2 1 2 3 4 5 6 7 KVS 3 3 1 2 1 1 3 Ø 1 2 1 1 6 Ø 2
Levels Heads Tails
5 3 6 6
Eviction Stack Result Pair
6 6 6 6 5 3 5 3
Insertion: 6 4
Result Pair
2 1 2 1 2 1 3 3 + + Window 6 6
Result Pair
1 3 + 6 + 2 1 2 1 2 1 3 3 + + Window 1 3 + 6 + 2 Eviction: 2 1 2 1 2 Ø 3 3 + + Window 5 6
Result Pair
1 3 + 6 + 2 5 3
Eviction Stack
5 3
Eviction Stack
3
Eviction Stack
have in its result
subtraction
aggregation
7 8 9
∞ … ∞
? Window Result: 8 Operation: Max 9 8 9
∞ … ∞
? Window Result: 9 Operation: Max Never used
that aggregate multiple window input values
changes from the newest update
for bucket sizes
require different criteria
1 3 2
∞ … ∞
1 1 2 3 Window Result: 10
Operation: Count WSP: Count > 10
1 3
∞ … ∞
2 2 3 Window Result: 8, Error: 2 1 3 2
∞ … ∞
2 2 3 Window Result: 11
evicted outside the bucket
Operation: Count WSP: result – candidate > 10 result – Ø = result
1 3
∞ … ∞
1 2 2 3 Window
Result: 8 Exact error: 2 Potential error: 2
1 3
∞ … ∞
1 2 2 3 Window
Result: 11 Exact error: 1 Potential error: 2
2
Operation: Count WSP: result – candidate > 10 result – Ø = 10
boundaries
ҧ 𝑦 − 𝑢∗𝑡 1 + 1 𝑜 , ҧ 𝑦 + 𝑢∗𝑡 1 + 1 𝑜
|𝑠 − 𝑁 𝑐, 𝑠 |
𝑠: predicted result, 𝑐: bucket error, 𝑁: monoid function
produce any error
extreme value
sample
aggregated in the last bucket
configuration parameters
Sum-like: Mean
Max-like: Max
Max error Footprint 10−4% 44,02% 10−3% 6,591% 10−2% 8,335 ∙ 10−1% 10−1% 9,9 ∙ 10−2% 1% 1,022 ∙ 10−2% 10% 9,854 ∙ 10−4% Block size Footprint 10 91,33% 102 91,1% 103 95,49% 104 60,97% 105 4,394% 106 19,88%
Sum-like histogram Max-like histogram
mechanisms
YourEmail@bsc.es