Tarantool development patches archive
 help / color / mirror / Atom feed
From: Kirill Yukhin <kyukhin@tarantool.org>
To: Serge Petrenko <sergepetrenko@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org
Subject: Re: [Tarantool-patches] [PATCH v2] replication: add box.info.replication_anon
Date: Fri, 15 May 2020 17:16:14 +0300	[thread overview]
Message-ID: <20200515141614.rbnqqzzt34tvnkjg@tarantool.org> (raw)
In-Reply-To: <20200424162855.25920-1-sergepetrenko@tarantool.org>

Hello,

On 24 апр 19:28, Serge Petrenko wrote:
> Closes #4900
> 
> @TarantoolBot document
> Title: add new field to box.info: replication_anon
> 
> It is now possible to list all the anonymous replicas following the
> instance with a call to `box.info.replication_anon()`
> The output is similar to the one produced by `box.info.replication` with
> an exception that anonymous replicas are indexed by their uuid strings
> rather then server ids, since server ids have no meaning for anonymous
> replicas.
> 
> Example:
> ```
> tarantool> box.info.replication_anon
> ---
> - []
> ...
> 
> tarantool> box.info.replication_anon()
> ---
> - 02757524-1887-4c75-9137-d5c191fba507:
>     id: 0
>     uuid: 02757524-1887-4c75-9137-d5c191fba507
>     lsn: 0
>     downstream:
>       status: follow
>       idle: 0.43651100000716
>       vclock: {1: 1}
>   937a8292-8f99-4d11-aede-b97e9f5e9473:
>     id: 0
>     uuid: 937a8292-8f99-4d11-aede-b97e9f5e9473
>     lsn: 0
>     downstream:
>       status: follow
>       idle: 0.5189309999987
>       vclock: {1: 1}
> ...
> 
> ```
> 
> Note, that anonymous replicas hide their lsn from the others, so
> anonymous replica lsn will always be reported as zero, even if anonymous
> replicas perform some local space operations.
> To know the anonymous replica's lsn, you have to issue `box.info.lsn` on
> it.
> ---
> https://github.com/tarantool/tarantool/issues/4900
> https://github.com/tarantool/tarantool/tree/sp/gh-4900-list-anon-replicas

I've checked your patch into master.

--
Regards, Kirill Yukhin

      parent reply	other threads:[~2020-05-15 14:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-24 16:28 Serge Petrenko
2020-04-24 16:39 ` Konstantin Osipov
2020-04-27 12:22   ` Serge Petrenko
2020-04-27 12:40     ` Konstantin Osipov
2020-05-01 19:56 ` Vladislav Shpilevoy
2020-05-07 11:17   ` Serge Petrenko
2020-05-10 19:52 ` Vladislav Shpilevoy
2020-05-15 14:16 ` Kirill Yukhin [this message]

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=20200515141614.rbnqqzzt34tvnkjg@tarantool.org \
    --to=kyukhin@tarantool.org \
    --cc=sergepetrenko@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --cc=v.shpilevoy@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH v2] replication: add box.info.replication_anon' \
    /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