From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id AB9A9469719 for ; Sat, 26 Sep 2020 00:29:16 +0300 (MSK) From: Vladislav Shpilevoy Date: Fri, 25 Sep 2020 23:29:10 +0200 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/3] Raft follow-ups List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, sergepetrenko@tarantool.org The patchset is a couple of fixes for the existing Raft code, and also a new leader election policy - the third patch makes so an instance restart does not lead to a new election immediately anymore. See the commit message and comments why. Branch: http://github.com/tarantool/tarantool/tree/gh-1146-raft Issue: https://github.com/tarantool/tarantool/issues/1146 Vladislav Shpilevoy (3): [tosquash] raft: vote without a new term when possible [tosquash] raft: fix 99% CPU issue in raft io worker [tosquash] raft: don't start new election immediately after restart src/box/box.cc | 12 ++++++++++- src/box/raft.c | 54 +++++++++++++++++++++++++++++++++++++++++++------- src/box/raft.h | 8 ++++++++ 3 files changed, 66 insertions(+), 8 deletions(-) -- 2.21.1 (Apple Git-122.3)