[Tarantool-patches] [PATCH] replication: list anonymous replicas in box.info.replication
Konstantin Osipov
kostja.osipov at gmail.com
Thu Apr 23 17:06:04 MSK 2020
* Serge Petrenko <sergepetrenko at tarantool.org> [20/04/23 16:05]:
> A new field is added to replica info in `box.info.replication` output:
> `anon`. The field is boolean and set to `true` for anonymous replicas
> and to `false` for normal replicas.
>
> Also now anonymous replicas are listed in `box.info.replication`
> together with normal ones, so it's easier to track their connection
> state. Anonymous replicas occupy table slots past the biggest-id normal
> replica. Example:
> ```
> ...
> replication:
> 1:
> id: 1
> uuid: 326eb713-1b79-4b43-9b48-661314260c61
> lsn: 4
> anon: false
> 2:
^^^^^^^ This is not an ordinal number, it's server id.
An anonymous replica doesn't have server id.
Why do you think assigning an unused id is a good idea? This will
break monitoring which may rely on server id being stable.
--
Konstantin Osipov, Moscow, Russia
More information about the Tarantool-patches
mailing list