From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp48.i.mail.ru (smtp48.i.mail.ru [94.100.177.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 21234469710 for ; Fri, 15 May 2020 17:16:15 +0300 (MSK) Date: Fri, 15 May 2020 17:16:14 +0300 From: Kirill Yukhin Message-ID: <20200515141614.rbnqqzzt34tvnkjg@tarantool.org> References: <20200424162855.25920-1-sergepetrenko@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200424162855.25920-1-sergepetrenko@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH v2] replication: add box.info.replication_anon List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Serge Petrenko Cc: tarantool-patches@dev.tarantool.org, v.shpilevoy@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