From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id DC95D6EC55; Fri, 16 Jul 2021 17:30:02 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org DC95D6EC55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1626445803; bh=asBz32Za7QB/doBt6MPyRMuC4Q6NjJ4qutVtG4e0Pts=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=UPWCvlzkyOKTkNAPEFqaELykK3wVfb4T5kD/NZfyapsYG/PdNwf1ySkIt5nAm2ztU Jp2wVXCU31tinQr4jNX0RKgWHJ3Ap7395LxwxpbWPo3yFpTWFR7z9PfnIgZhDz4vDC hQGqNBNIv54TBcSQwk2YJURSVlvOW80vgh//ovKY= Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 1A8DD6EC55 for ; Fri, 16 Jul 2021 17:30:01 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 1A8DD6EC55 Received: by mail-lj1-f175.google.com with SMTP id u25so14277265ljj.11 for ; Fri, 16 Jul 2021 07:30:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=FfHT7sfrDy3CznyI5YtcvMfErmSA8VqV/DWNKLZJsTU=; b=U3xg1kjUQLeMptojjgtUHQ1kdCMpq7r4tp5trQc8I2gY0mSrTPQ5kL+P+oH/43ITUW M0T6D7ux6ddncEsuJHdUQzqZnrOCsp1h7VPi1husjSUQQaI0gKgQENXVBYFLzcLwgNY7 LT749QC8XBCphOVSPSdXjECVoJrMeNMB0kafhyEIsIGSAwUBQlkuUGY3MX1DUMXa/1cV vvZwoRKMHrtuAjFxO3nywMOkKZ+MS83VMfJSGn/Bo1M4sX2QTZofik+pIf0WTmT+Si8T vmaz88UGFEZ+3s34Lts/KwiaAsnbfSYCTdROpOlcK8sHXFKHj4cQIp91xqC5O9ONtDS6 aP4w== X-Gm-Message-State: AOAM5337YwyAZRerCzbxHfEXhY0BUIvwojUNSFAtIGLhE8Xk1LGK8J0U DrVpWnnBTlMWMrTyBwgqWEh+mvWbdw== X-Google-Smtp-Source: ABdhPJw+sOw7PrhJq5AtZL5/K6umON+lYBf+fLLHHzO/65pZF/l4IYFUtXOZr1kgTeMs81zB4RSzww== X-Received: by 2002:a2e:a58b:: with SMTP id m11mr9175707ljp.286.1626445800412; Fri, 16 Jul 2021 07:30:00 -0700 (PDT) Received: from sterling.local ([46.188.68.12]) by smtp.gmail.com with ESMTPSA id m25sm662007lfq.209.2021.07.16.07.29.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jul 2021 07:29:59 -0700 (PDT) Received: by sterling.local (Postfix, from userid 1000) id 1CE8BE61156; Fri, 16 Jul 2021 17:29:59 +0300 (MSK) Date: Fri, 16 Jul 2021 17:29:59 +0300 To: Vladislav Shpilevoy Message-ID: <20210716142959.GC146960@starling> Mail-Followup-To: Konstantin Osipov , Vladislav Shpilevoy , tarantool-patches@dev.tarantool.org, gorcunov@gmail.com, sergepetrenko@tarantool.org References: <0c92a88ff1d392f8b03de59be8cb19a162bf78f8.1626392372.git.v.shpilevoy@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0c92a88ff1d392f8b03de59be8cb19a162bf78f8.1626392372.git.v.shpilevoy@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH 1/2] replication: introduce ballot.can_be_leader X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Konstantin Osipov via Tarantool-patches Reply-To: Konstantin Osipov Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" * Vladislav Shpilevoy via Tarantool-patches [21/07/16 11:23]: > The flag tells whether the sender has election mode 'candidate' or > 'manual'. > > The new field during bootstrap will help to avoid selecting a > 'voter' as a master. Voters can't write, they are unable to boot > themselves nor register others. > > @TarantoolBot document > Title: New field - IPROTO_BALLOT_CAN_BE_LEADER > It is sent as a part of `IPROTO_BALLOT (0x29)`. The field is a > boolean flag which is true if the sender has `election_mode` in > its config `'manual'` or `'candidate'`. > > During bootstrap the nodes able to become a leader are preferred > over the nodes configured as `'voter'`. Curious why did you add this feature in the first place, I mean "eligibility"? Each voter has to be able to become a leader, otherwise raft liveness guarantees are violated. Raft has learners, but learners neither vote nor can become leaders. -- Konstantin Osipov, Moscow, Russia