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 F17376EC58; Mon, 21 Jun 2021 11:35:06 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org F17376EC58 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1624264507; bh=wyyWqVRtTnXmV+h9mfUGKLoD0xK0wpFcY0gemDlhyLo=; h=To:Cc:References:Date:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=p1UL6xZUujrMVb+fmm/sRslWrtBKWcu6ngTbAnbsHeqpYGh/0I2Ck7GQ8YwWGxKVi rYcMb92a3r+xUqsZFvH3r1O5N88pY0ggR3LxePJ3B31sRRiCDdzB6O8QqvAeOEjBSF QjQJFHKt/Zyc2D7y7rTaW9Njn2n/ahFrP2bBQCB8= Received: from smtp34.i.mail.ru (smtp34.i.mail.ru [94.100.177.94]) (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 C08566EC58 for ; Mon, 21 Jun 2021 11:35:04 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org C08566EC58 Received: by smtp34.i.mail.ru with esmtpa (envelope-from ) id 1lvFOa-0001EY-3Q; Mon, 21 Jun 2021 11:35:04 +0300 To: Cyrill Gorcunov Cc: tml , Vladislav Shpilevoy References: <20210617154835.315576-1-gorcunov@gmail.com> <20210617154835.315576-2-gorcunov@gmail.com> <3ebc9966-6c9f-5206-4cd4-1fff97530709@tarantool.org> Message-ID: <137449bb-42c2-3876-8d17-50ca60f86075@tarantool.org> Date: Mon, 21 Jun 2021 11:35:03 +0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: ru X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD91C2C07775F13263AFA27A2C0BAE5D906003D228FC84EF29400894C459B0CD1B93CC542AB332AA66A33C6465AD3F7739FC2070F4C2539925EFEA01C85A8357090 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7AEA4A6B3AFC9B957C2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE78AC0750F3304E924EA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38BD6CF32B5F8F9D404F3CCBE2912B63374A829EDF208C45C32CC7F00164DA146DAFE8445B8C89999728AA50765F7900637BA939FD1B3BAB99B389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC813BDA61BF53F5E1DF6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA7E827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8B9149C560DC76099D75ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-C1DE0DAB: 0D63561A33F958A5202A5FFD80C76E6FA21397460FB9F6FC7F520EE9705A565FD59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA75448CF9D3A7B2C848410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34431D0341F6B74DD3F7F857A965F3B9C27399C314AB66442188A1B5F528E292A1DC2E5287712F47EE1D7E09C32AA3244C69F6D594BD2CCAC9DAAD811B2D1BF1263FD9C8CA1B0515E0FACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj8x+Gb+jwA+Rn6srdF2AR7Q== X-Mailru-Sender: 3B9A0136629DC9125D61937A2360A4466B79F5B690BE8CBE0AEE565D9498BC53B7E4CF57933E0CAB424AE0EB1F3D1D21E2978F233C3FAE6EE63DB1732555E4A8EE80603BA4A5B0BC112434F685709FCF0DA7A0AF5A3A8387 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v9 1/2] applier: send transaction's first row WAL time in the applier_writer_f 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: Serge Petrenko via Tarantool-patches Reply-To: Serge Petrenko Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" 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 > 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 > > @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