From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp36.i.mail.ru (smtp36.i.mail.ru [94.100.177.96]) (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 DFD9B469719 for ; Mon, 28 Sep 2020 10:09:32 +0300 (MSK) References: From: Serge Petrenko Message-ID: <31234cb7-cd07-d3c9-2a23-e6aed56ab669@tarantool.org> Date: Mon, 28 Sep 2020 10:09:31 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit Content-Language: en-GB Subject: Re: [Tarantool-patches] [PATCH 0/3] Raft follow-ups List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladislav Shpilevoy , tarantool-patches@dev.tarantool.org 26.09.2020 00:29, Vladislav Shpilevoy пишет: > 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(-) Hi! Thanks for the fixes! The patchset LGTM. > -- Serge Petrenko