111
Aysylu Greenberg June 14, 2016 Distributed Systems in Practice, in Theory

in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Aysylu GreenbergJune 14, 2016

Distributed Systems in Practice,in Theory

Page 2: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

How I got into reading papers as a

practitioner in industry

Page 3: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Computer Science ResearchInDistributed Systems Industry

Page 4: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Operating systems research

Page 5: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Operating systems research

Page 6: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Operating systems research

Concurrency

Page 7: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Operating systems research

Concurrency

Concurrency primitives: mutex & semaphore

Page 8: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Operating systems research

Concurrency

Concurrency primitives: mutex & semaphore

Processes execute at different speeds

Page 9: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Time in distributed systems

https://www.flickr.com/photos/national_archives_of_norway/6263353228

Page 10: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Time in distributed systems

Page 11: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Time in distributed systems

Pipelining

Page 12: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

1980

Page 13: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

1980

Page 14: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Internet

1980

Page 15: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Internet

Distributed consensus

1980

Page 16: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Internet

Distributed consensus

1980

Page 17: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Internet

Distributed consensus

1980

Page 18: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Paxos

Internet

Distributed consensus

1980

Page 19: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Reconsider large systems

Page 20: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Reconsider large systems

Shared infrastructure

...

Page 21: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

CS Research is Timeless

Inform decisions

Mitigate technical risk

Page 22: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

* 22

Aysylu Greenberg

@aysylu22

Page 23: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Papers We Love NYC

Page 24: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Papers We Love SF

Page 25: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

* 25

Aysylu Greenberg

@aysylu22

Page 26: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Today

● Staged Event-Driven Architecture

Page 27: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Today

● Staged Event-Driven Architecture● Leases

Page 28: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Today

● Staged Event-Driven Architecture● Leases● Inaccurate Computations

Page 29: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Staged Event Driven

Architecture&

Deep Pipelines

2001

Page 30: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Hardware to Data Pipelines

Page 31: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Hardware to Data Pipelines

https://en.wikipedia.org/wiki/Graphics_pipeline

Page 32: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 33: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Staged Event Driven Architecture

Page 34: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Staged Event Driven Architecture

+ -

Page 35: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Single-machine pipeline

generalizes to distributed pipelines

Staged Event Driven Architecture

Page 36: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Search Indexing Pipelines

Page 37: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Search Indexing Pipelines

Page 38: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Search Indexing Pipelines

Page 39: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Search Indexing Pipelines

Page 40: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Search Indexing Pipelines

Page 41: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Search Indexing Pipelines

Page 42: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Search Indexing Pipelines

Page 43: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Search Indexing Pipelines

Page 44: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Search Indexing Pipelines

+ -

Page 45: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Leasesas Heart Beat in

Distributed Systems

1989

Page 46: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 47: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Leases

● Distributed locking

Page 48: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Leases

● Distributed locking● Lease term tradeoffs

○ short

Page 49: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Leases

● Distributed locking● Lease term tradeoffs

○ short vs long

Page 50: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Leases

● Distributed locking● Lease term tradeoffs

○ short vs long● Use of leases in modern applications

○ Leader election TTL (in etcd)

Page 51: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Leases

● Distributed locking● Lease term tradeoffs

○ short vs long● Use of leases in modern applications

○ Leader election TTL (in etcd)○ Liveness detection

Page 52: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 53: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Leases in Build System:Success Scenario

Page 54: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Build my project

Build System

Page 55: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Build my project

Build System

OK

Page 56: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Build my project

Build System

OK

Waiting for the results

Page 57: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Build my project

Build System

OK

Waiting for the results

Build is in progress

Page 58: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Build my project

Build System

OK

Waiting for the results

Build is in progress

Waiting for the results

Page 59: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Build my project

Build System

OK

Waiting for the results

Build is in progress

Waiting for the results

Build is finished

Page 60: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Leases in Build System:Failure Scenario

Page 61: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Leases in Build System

Page 62: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Leases in Build System

Page 63: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Leases in Build System

Page 64: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Leases in Build System

Page 65: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Leases in Build System

Page 66: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Leases in Build System

Page 67: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Using etcd leases for heartbeat$ curl http://server.com/v2/keys/foo -XPUT -d\

value=bar -d ttl=300

Page 68: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

{ "action": "set", "node": { "createdIndex": 2, "expiration":"2016-06-14T16:15:00", "key": "/foo", "modifiedIndex": 2, "ttl": 300, "value": "bar" }}

Page 69: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Using etcd leases for heartbeat$ curl http://server.com/v2/keys/foo -XPUT -d \

value=bar -d ttl=300

… 3 minutes later...

Page 70: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Using etcd leases for heartbeat$ curl http://server.com/v2/keys/foo -XPUT -d \

value=bar -d ttl=300

$ curl \

http://server.com/v2/keys/foo?prevValue=bar \

-XPUT -d ttl=300 -d refresh=true -d \

prevExist=true

Page 71: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

{ "action": "update", "node": { "createdIndex": 2, "expiration":"2016-06-14T16:18:00", "key": "/foo", "modifiedIndex": 3, "ttl": 300, "value": "bar" } "prevNode": {...}}

Page 72: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

{ "action": "update", "node": { "createdIndex": 2, "expiration":"2016-06-14T16:18:00", "key": "/foo", "modifiedIndex": 3, "ttl": 300, "value": "bar" } "prevNode": {...}}

"prevNode": { "createdIndex": 2, "expiration":"2016-06-14T16:15:00", "key": "/foo", "modifiedIndex": 2, "ttl": 120, "value": "bar"}

Page 73: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Leases for heartbeat:How long should the lease term be?

Page 74: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Inaccurate Computations&Serving Search Results

Page 75: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

From Accurate to "Good Enough"

Page 76: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

[Trade off] Inaccuracy for Performance

Page 77: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 78: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 79: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 80: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

[Trade off] Inaccuracy for Resilience

Page 81: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 82: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 83: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Reduce

Map

Input

Map

Input

Map

Input

Page 84: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Inaccuracy for Resilience

1. Task decomposition

Page 85: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 86: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Inaccuracy for Resilience

1. Task decomposition2. Baseline for correctness

Page 87: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 88: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Inaccuracy for Resilience

1. Task decomposition2. Baseline for correctness3. Criticality Testing

Page 89: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 90: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 91: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 92: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 93: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 94: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Inaccuracy for Resilience

1. Task decomposition2. Baseline for correctness3. Criticality Testing4. Distortion and timing models

Page 95: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Distortion Model

Page 96: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Timing Model

Page 97: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

[In production]Inaccuracy for Performance & Resilience

Page 98: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Jeff Dean "Building Software Systems at Google and Lessons Learned", Stanford, 2010

Page 99: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 100: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic
Page 101: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

[Designing with]Inaccuracy for Performance & Resilience

Page 102: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

[Designing with]Inaccuracy for Performance & Resilience

simplified implementation

focus on observabilityapplicable to some problem domains

Page 103: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

[Designing with]Inaccuracy for Performance & Resilience

fuzz testing

generative testing

simplified implementation

fault injection testing

focus on observabilityapplicable to some problem domains

Page 104: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

References● T. Wurthinger, C. Wimmer et al. "One VM to Rule Them

All"● M. Rinard "Probabilistic Accuracy Bounds for Fault-

Tolerant Computations that Discard Tasks"● F. Corbato, M. Daggett, R. Daley "An Experimental Time-

Sharing System"● E. Dijkstra "Cooperating Sequential Processes"● L. Lamport "Time, Clocks, and the Ordering of Events in a

Distributed System"● http://blinkdb.org/

Page 105: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

References● B. Oki, B. Liskov "Viewstamped Replication: A New Primary Copy

Method to Support Highly-Available Distributed Systems"● L. Lamport "The Part-Time Parliament"● M. Welsh, D. Culler, E. Brewer "SEDA: An Architecture for Well-

Conditioned, Scalable Internet Services"● C. Gray, D. Cheriton "Leases: An Efficient Fault-Tolerant

Mechanism for Distributed File Cache Consistency"● S. Agarwal, B. Mozafari et al. "BlinkDB: Queries with Bounded

Errors and Bounded Response Times on Very Large Data"

Page 106: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

GratitudeInes SombraDavid GreenbergKaran ParikhMatt WelshErran Berger

Page 107: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Robust & scalable pipelines

Page 108: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Robust & scalable pipelinesLeases for sharing &

heartbeat

Page 109: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Robust & scalable pipelinesLeases for sharing &

heartbeatInaccuracy for resilience &

performance

Page 110: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Robust & scalable pipelinesLeases for sharing &

heartbeatInaccuracy for resilience &

performance

CS research is timeless:use it to mitigate risk

Page 111: in Theory Distributed Systems in Practice, · Papers We Love NYC. Papers We Love SF *2 5 Aysylu Greenberg @aysylu22. Today Staged Event-Driven Architecture. ... M. Rinard "Probabilistic

Aysylu GreenbergJune 14, 2016

Distributed Systems in Practice,in Theory

@aysylu22