[Tarantool-patches] [PATCH v2] replication: add box.info.replication_anon

Kirill Yukhin kyukhin at tarantool.org
Fri May 15 17:16:14 MSK 2020


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


More information about the Tarantool-patches mailing list