From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D720725621 for ; Fri, 13 Sep 2019 04:19:02 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zqSS93vyxN8q for ; Fri, 13 Sep 2019 04:19:02 -0400 (EDT) Received: from smtp5.mail.ru (smtp5.mail.ru [94.100.179.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 92D0225620 for ; Fri, 13 Sep 2019 04:19:02 -0400 (EDT) Received: by smtp5.mail.ru with esmtpa (envelope-from ) id 1i8gnE-0006G7-O2 for tarantool-patches@freelists.org; Fri, 13 Sep 2019 11:19:00 +0300 Date: Fri, 13 Sep 2019 11:19:00 +0300 From: Kirill Yukhin Subject: [tarantool-patches] Re: [PATCH v2] relay: join new replicas off read view Message-ID: <20190913081900.hnjc2a7pyr3cu77v@tarantool.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Hello, On 27 Aug 11:33, Vladimir Davydov wrote: > Historically, we join a new replica off the last checkpoint. As a > result, we must always keep the last memtx snapshot and all vinyl data > files corresponding to it. Actually, there's no need to use the last > checkpoint for joining a replica. Instead we can use the current read > view as both memtx and vinyl support it. This should speed up the > process of joining a new replica, because we don't need to replay all > xlogs written after the last checkpoint, only those that are accumulated > while we are relaying the current read view. This should also allow us > to avoid creating a snapshot file on bootstrap, because the only reason > why we need it is allowing joining replicas. Besides, this is a step > towards decoupling the vinyl metadata log from checkpointing in > particular and from xlogs in general. > > Closes #1271 I've checked your patch into master. -- Regrads, Kirill Yukhin