From: Serge Petrenko via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: tml <tarantool-patches@dev.tarantool.org>,
Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
Subject: Re: [Tarantool-patches] [PATCH v9 1/2] applier: send transaction's first row WAL time in the applier_writer_f
Date: Mon, 21 Jun 2021 11:35:03 +0300 [thread overview]
Message-ID: <137449bb-42c2-3876-8d17-50ca60f86075@tarantool.org> (raw)
In-Reply-To: <YMzgs1HCh4axS6eM@grain>
18.06.2021 21:06, Cyrill Gorcunov пишет:
> Serge, I've update the patch and force pushed it, please take a look.
Thanks for the fixes!
LGTM.
> ---
> From: Cyrill Gorcunov <gorcunov@gmail.com>
> Subject: [PATCH] relay: provide information about downstream lag
>
> We already have `box.replication.upstream.lag` entry for monitoring
> sake. Same time in synchronous replication timeouts are key properties
> for quorum gathering procedure. Thus we would like to know how long
> it took of a transaction to traverse `initiator WAL -> network ->
> remote applier -> initiator ACK reception` path.
>
> Typical output is
>
> | tarantool> box.info.replication[2].downstream
> | ---
> | - status: follow
> | idle: 0.61753897101153
> | vclock: {1: 147}
> | lag: 0
> | ...
> | tarantool> box.space.sync:insert{69}
> | ---
> | - [69]
> | ...
> |
> | tarantool> box.info.replication[2].downstream
> | ---
> | - status: follow
> | idle: 0.75324084801832
> | vclock: {1: 151}
> | lag: 0.0011014938354492
> | ...
>
> Closes #5447
>
> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
>
> @TarantoolBot document
> Title: Add `box.info.replication[n].downstream.lag` entry
>
> `replication[n].downstream.lag` represents a lag between the main
> node writes a certain transaction to it's own WAL and a moment it
> receives an ack for this transaction from a replica.
> ---
>
--
Serge Petrenko
next prev parent reply other threads:[~2021-06-21 8:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-17 15:48 [Tarantool-patches] [PATCH v9 0/2] relay: provide downstream lag information Cyrill Gorcunov via Tarantool-patches
2021-06-17 15:48 ` [Tarantool-patches] [PATCH v9 1/2] applier: send transaction's first row WAL time in the applier_writer_f Cyrill Gorcunov via Tarantool-patches
2021-06-18 9:51 ` Serge Petrenko via Tarantool-patches
2021-06-18 18:06 ` Cyrill Gorcunov via Tarantool-patches
2021-06-21 8:35 ` Serge Petrenko via Tarantool-patches [this message]
2021-06-17 15:48 ` [Tarantool-patches] [PATCH v9 2/2] relay: provide information about downstream lag Cyrill Gorcunov via Tarantool-patches
2021-06-18 9:50 ` Serge Petrenko via Tarantool-patches
2021-06-20 14:37 ` Vladislav Shpilevoy via Tarantool-patches
2021-06-21 8:44 ` Cyrill Gorcunov via Tarantool-patches
2021-06-21 16:17 ` Cyrill Gorcunov via Tarantool-patches
2021-06-21 21:16 ` Vladislav Shpilevoy via Tarantool-patches
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=137449bb-42c2-3876-8d17-50ca60f86075@tarantool.org \
--to=tarantool-patches@dev.tarantool.org \
--cc=gorcunov@gmail.com \
--cc=sergepetrenko@tarantool.org \
--cc=v.shpilevoy@tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH v9 1/2] applier: send transaction'\''s first row WAL time in the applier_writer_f' \
/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