Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladimir Davydov <vdavydov.dev@gmail.com>
To: Serge Petrenko <sergepetrenko@tarantool.org>
Cc: georgy@tarantool.org, tarantool-patches@freelists.org
Subject: Re: [tarantool-patches] [PATCH] [replication] introduce anonymous replicas.
Date: Mon, 15 Oct 2018 11:26:03 +0300	[thread overview]
Message-ID: <20181015082603.7aubqz27rzvgx2tr@esperanza> (raw)
In-Reply-To: <20181013165449.29849-1-sergepetrenko@tarantool.org>

On Sat, Oct 13, 2018 at 07:54:49PM +0300, Serge Petrenko wrote:
> 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

IMO the feature design hasn't been elaborated so it's too early to look
at the code. Pending questions:

 - What's the use case? What would one need an anonymous replica for?
   Can I turn it into a normal replica? Master? Read-write? What happens
   if I try?

 - How does the feature interact with replica-local spaces, which bypass
   box.cfg.read_only check?

 - Are anonymous replicas registered with the garbage collector on the
   master? If yes, can we unregister them? Normal replicas can be
   dropped by removing the corresponding entry from _cluster space. With
   anonymous replica it's impossible by design.

  reply	other threads:[~2018-10-15  8:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-13 16:54 Serge Petrenko
2018-10-15  8:26 ` Vladimir Davydov [this message]
2018-10-23  7:13 ` [tarantool-patches] " Konstantin Osipov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181015082603.7aubqz27rzvgx2tr@esperanza \
    --to=vdavydov.dev@gmail.com \
    --cc=georgy@tarantool.org \
    --cc=sergepetrenko@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [tarantool-patches] [PATCH] [replication] introduce anonymous replicas.' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox