Please use this identifier to cite or link to this item: http://bura.brunel.ac.uk/handle/2438/18461
Title: Let it recover: Multiparty protocol-induced recovery
Authors: Neykova, R
Yoshida, N
Keywords: Multiparty Session Types;Recovery;Distributed Programming;Erlang;Fault-tolerance
Issue Date: 2017
Publisher: Compiler Construction
Citation: ACM International Conference Proceeding Series, 2017, pp. 98 - 108
Abstract: Fault-tolerant communication systems rely on recovery strategies which are often error-prone (e.g. a programmer manually specifies recovery strategies) or inefficient (e.g. the whole system is restarted from the beginning). This paper proposes a static analysis based on multiparty session types that can efficiently compute a safe global state from which a system of interacting processes should be recovered. We statically analyse the communication flow of a program, given as a multiparty protocol, to extract the causal dependencies between processes and to localise failures. We formalise our recovery algorithm and prove its safety. A recovered communication system is free from deadlocks, orphan messages and reception errors. Our recovery algorithm incurs less communication cost (only affected processes are notified) and overall execution time (only required states are repeated). On top of our analysis, we design and implement a runtime framework in Erlang where failed processes and their dependencies are soundly restarted from a computed safe state. We evaluate our recovery framework on messagepassing benchmarks and a use case for crawling webpages. The experimental results indicate our framework outperforms a built-in static recovery strategy in Erlang when a part of the protocol can be safely recovered.
URI: http://bura.brunel.ac.uk/handle/2438/18461
DOI: http://dx.doi.org/10.1145/3033019.3033031
Appears in Collections:Dept of Computer Science Research Papers

Files in This Item:
File Description SizeFormat 
FullText.pdf499.47 kBAdobe PDFView/Open


Items in BURA are protected by copyright, with all rights reserved, unless otherwise indicated.