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 9EA492AC16 for ; Tue, 23 Oct 2018 03:13:40 -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 gEoIMTOpx2rF for ; Tue, 23 Oct 2018 03:13:40 -0400 (EDT) Received: from smtp50.i.mail.ru (smtp50.i.mail.ru [94.100.177.110]) (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 5F5B62AC10 for ; Tue, 23 Oct 2018 03:13:40 -0400 (EDT) Date: Tue, 23 Oct 2018 10:13:38 +0300 From: Konstantin Osipov Subject: [tarantool-patches] Re: [PATCH] [replication] introduce anonymous replicas. Message-ID: <20181023071338.GD9849@chai> References: <20181013165449.29849-1-sergepetrenko@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181013165449.29849-1-sergepetrenko@tarantool.org> 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 Cc: georgy@tarantool.org, Serge Petrenko * Serge Petrenko [18/10/15 10:15]: > This patch makes it possible for a replica to join/subscribe > anonymously, i.e. without being added to the _cluster table. > This allows to have more than VCLOCK_MAX (currently 32) replicas in a > replicaset, with a condition that some of them must be read only. > > This is achieved by introducing a new field to JOIN/SUBSCRIBE > requests: IPROTO_REPLICA_ANON. Upon recieving a request with the option > set to true, master adds the newly connected replica to a replica hash, > but does not register it in _cluster table and does not assign an id to > it. The replica still appears in `box.info.replication` with > 'anonymous` parameter set to true. > To make replica send 'anonymous' JOIN/SUBSCRIBE requests, a new config > option is introduced: `replica_anon`. It may only be set to true > together with `read_only`. > > Closes #3186 This feature seems to be easy to do now but I would like to suspend any work on it before we implement promote(), proxy, dynamic assignment of server ids, and smart filtering of relayed rows (server id based filtering). We have been stuck with these features since the spring, they are more important than this one, and they may have dramatic impact on complexity of this feature. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov