RT-ZooKeeper: Taming the Recovery Latency of a Coordination Service

  • Haoran Li
  • , Chenyang Lu
  • , Christopher D. Gill

Research output: Contribution to journalArticlepeer-review

Abstract

Fault-tolerant coordination services have been widely used in distributed applications in cloud environments. Recent years have witnessed the emergence of time-sensitive applications deployed in edge computing environments, which introduces both challenges and opportunities for coordination services. On one hand, coordination services must recover from failures in a timely manner. On the other hand, edge computing employs local networked platforms that can be exploited to achieve timely recovery. In this work, we first identify the limitations of the leader election and recovery protocols underlying Apache ZooKeeper, the prevailing open-source coordination service. To reduce recovery latency from leader failures, we then design RT-Zookeeper with a set of novel features including a fast-convergence election protocol, a quorum channel notification mechanism, and a distributed epoch persistence protocol. We have implemented RT-Zookeeper based on ZooKeeper version 3.5.8. Empirical evaluation shows that RT-ZooKeeper achieves 91% reduction in maximum recovery latency in comparison to ZooKeeper. Furthermore, a case study demonstrates that fast failure recovery in RT-ZooKeeper can benefit a common messaging service like Kafka in terms of message latency.

Original languageEnglish
Article number103
JournalACM Transactions on Embedded Computing Systems
Volume20
Issue number5s
DOIs
StatePublished - Oct 2021

Keywords

  • Apache ZooKeeper
  • Real-time fault tolerance
  • response time analysis

Fingerprint

Dive into the research topics of 'RT-ZooKeeper: Taming the Recovery Latency of a Coordination Service'. Together they form a unique fingerprint.

Cite this