Let it Recover:
Multiparty Protocol-Induced Recovery
1
Let it Recover: Multiparty Protocol-Induced Recovery 1 Fail fast - - PowerPoint PPT Presentation
Let it Recover: Multiparty Protocol-Induced Recovery 1 Fail fast and recover quickly Erlang proverb Fail fast and recover quickly and safely OPCT proverb (after this talk) 2 Part One Background 3 The Erlang programming
1
Erlang proverb
OPCT proverb (after this talk)
2
3
4
5
Supervision Strategies
6
unsound
inefficient
7
unsound inefficient
8
Slice of global protocol relevant to one role Mechanically derived from a global protocol
Execution model of I/O actions by roles
9
10
Protocol Dependency Graph Recovery Table
recovery algorithm implementation
(A:3)
Erlang Runtim
11 †
(B:1) (C:2)
Approach
12
15
16
17
5
3 3, 4 3, 4
2 1 7 6
:5, 6, 7
3 3 4 4
3 4 3, 4 done not done
18
4 3, 4 3, 4
Failure Recovery points … 3, A 3, B 4, C 4, A … … A:3, B:3, C:4 A:3, B:3, C:5 C:2, E:2 C:1, B:1, … …
19
Theorem: Transparency
Theorem:Safety
21
(recover processes)
(monitor the process behaviour)
(used to implement processes)
22
23
seconds
number of crashes
source: http://foat.me/articles/crawling-with-akka/
seconds
Map Reduce Ring Calculator
intense local computation disconnected interactions
Framework summary
Ensure processes are safe and conform to a protocol (even in cases of failures) Create supervision trees and link processes dynamically based on a protocol structure
Future work
Support for stateful processes Integration with checkpoints Replications and recovery actions
Additional Resources
27
Framework summary
Ensure processes are safe and conform to a protocol (even in cases of failures) Create supervision trees and link processes dynamically based on a protocol structure
Future work
Support for stateful processes Integration with checkpoints Replications and recovery actions
Additional Resources
28