From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 46CF36465D; Thu, 21 Jan 2021 20:18:05 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 46CF36465D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1611249485; bh=9Rt5HZqTVmhr3X2JHh4taXgT3elO7cCKknJzs2VykWA=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=mIyMJkFqF8N03yIuCw3GPiHjDqtwDn00dkWGF2yl5n5G9a+ToRLwJ23vsMxgBkc9S vaYhSUSYqwnG9/DFFfKxAoWPrACKzLL94Ps2f4fwxWUW4AlohtSgfE0kXvpWBuaaoE v6n8yjRRxR8tjZBOHLBXMnCGQDQJbzwTCbY0PF+8= Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id D4CDD6465D for ; Thu, 21 Jan 2021 20:18:03 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D4CDD6465D Received: by mail-lj1-f171.google.com with SMTP id f11so3353973ljm.8 for ; Thu, 21 Jan 2021 09:18:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/KZKNmU36evvfeb+k97oN55lQ2dzPaskYV1xG2ASz7s=; b=CQ+2f1gx+4vk0cw7M8tx+mk4fWaWMxZo04pUo9PpvU+IE1hV4QDf+Rfok4/0OZ4tUp YS+LJNJT8SWXNm1FQ2573uOrao7lxIMykkgYa2wJftbr+Y8+iHJOQ+kXmxx9a+s2xhMX b26nDBJIjSW9FAjHoBfDXgxGPqxiGb7SSD9XilKJEK7H9CeIpOUNOJJQfzE0TCj6dPnD SmS4TgnzTAOj6LslCAGIUW/u03P3+aZKSCnaC97R6K5eOC3XDkh5ZQYnXVc9W0gngWsb G5hf37fzssm1/lymGxuk/cdzma/jUXba+VK3JzxBoA/ONYHmn0sTpH7tX1iKH8gcY9QX gR3g== X-Gm-Message-State: AOAM531cn/3VCvhmzTtHRvu1ji+j2LsPwWBpPKRhuZrEOnGFipeBaS8e L+gHYnMytrJTgSirB3zdzny0FeRSMLo= X-Google-Smtp-Source: ABdhPJwo+NP8O1yAwOBSanbGqNS53WR4UbcsnNfB8cZf5pjCNEzw+aYqZg7HY1JTjQvDuU7b1gDHQg== X-Received: by 2002:a2e:8e85:: with SMTP id z5mr176853ljk.322.1611249481971; Thu, 21 Jan 2021 09:18:01 -0800 (PST) Received: from grain.localdomain ([5.18.91.94]) by smtp.gmail.com with ESMTPSA id g12sm553311lfc.269.2021.01.21.09.17.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jan 2021 09:17:59 -0800 (PST) Received: by grain.localdomain (Postfix, from userid 1000) id EEE50560139; Thu, 21 Jan 2021 20:17:58 +0300 (MSK) To: tml Date: Thu, 21 Jan 2021 20:17:49 +0300 Message-Id: <20210121171753.186891-1-gorcunov@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/3] box/info: report replication.X.downstream.lag X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Cyrill Gorcunov via Tarantool-patches Reply-To: Cyrill Gorcunov Cc: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" In the series we add reporting replication.X.downstream.lag value to complement replication.X.upstream.lag. Note that this value represent exact counter part of upstream.lag since detailed statistics about qsync and synchronous acks has a different meaning and gonna be implemented in #5191. Please take a look once time permit. As far as I can tell we can safely start encoding timestamp into vclock message without affecting any old instances. I've grepped the 1.10.x series for potential problems and didn't find any sign of. issue https://github.com/tarantool/tarantool/issues/5447 branch gorcunov/gh-5447-relay-lag Cyrill Gorcunov (3): xrow: encode timestamp into vclock message box/info: report replication.X.downstream.lag value test: replication/status -- fetch downstream lag field src/box/lua/info.c | 9 ++++++++- src/box/relay.cc | 17 +++++++++++++++++ src/box/relay.h | 8 ++++++++ src/box/xrow.c | 1 + test/replication/status.result | 8 ++++++++ test/replication/status.test.lua | 6 ++++++ 6 files changed, 48 insertions(+), 1 deletion(-) base-commit: fc86213cd7cda0641df95b1a81949bab85c19fce -- 2.29.2