Leader Election for Replicated Services Using Application Scores

TitleLeader Election for Replicated Services Using Application Scores
Publication TypeConference Proceedings
Year of Conference2011
Authorsde Brum, DB, Junqueira F, Serafini M
Conference NameACM/IFIP/USENIX 12th International Middleware Conference
Date Published12/2011
PublisherACM
Conference LocationLisbon, Portugal
Abstract

Replicated services often rely on a leader to order client requests and broadcast state updates. In this work, we present POLE, a leader election algorithm that select leaders using application-specific
scores. This flexibility given to the application enables the algorithm to tailor leader election according to metrics that are relevant in practical
settings and that have been overlooked by existing approaches. Recovery time and request latency are examples of such metrics. To evaluate POLE, we use ZooKeeper, an open-source replicated service used for coordinating Web-scale applications. Our evaluation over realistic wide-area settings shows that application scores can have a significant impact on performance, and that just optimizing the latency of consensus does not translate into lower latency for clients. An important conclusion from our results is that obtaining a general strategy that satisfies a wide
range of requirements is difficult, which implies that configurability is indispensable for practical leader election.