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 D648B6EC5B; Mon, 12 Apr 2021 08:59:36 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D648B6EC5B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1618207176; bh=Uxmr96chHq6M7c4GtQnMnvYImPThgw0A6rnbCZNOXxQ=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=t7fv22S8f5/zDpO90+x4MNoXWJF555re5WSDxxPOh7sKsvepUUOBRqEcFwMnM5ltr x0jssn5IuWcVwOClPAsuLxz+z8ulWypSlVV7uqO7r2jvno6qbSJgUELHI3ze9JcSz/ 4oFbco94LMs/ZPzDO7QSZ/9TvJnYodZ49XXeSooY= Received: from smtp35.i.mail.ru (smtp35.i.mail.ru [94.100.177.95]) (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 E7CDB6EC5B for ; Mon, 12 Apr 2021 08:59:34 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org E7CDB6EC5B Received: by smtp35.i.mail.ru with esmtpa (envelope-from ) id 1lVpbi-0001yh-2r; Mon, 12 Apr 2021 08:59:34 +0300 Date: Mon, 12 Apr 2021 05:59:33 +0000 To: Cyrill Gorcunov Message-ID: <20210412055933.hlr7yt523xzgaazi@tarantool.org> References: <20210408121813.1633911-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210408121813.1633911-1-gorcunov@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD92FFCB8E6708E7480B1C8842CE613979723F2FB4628545A35182A05F53808504076361A1500E7375A842D757B625FF7C3081354BAE155CD121BE31DEA624B03B4 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7A8325FA649D0A450EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006374F897F3E43A934888638F802B75D45FF914D58D5BE9E6BC1A93B80C6DEB9DEE97C6FB206A91F05B2A6DCE6B9F67ADF1BC50DC8AD644DE8598E320D419CB56618D2E47CDBA5A96583C09775C1D3CA48CF1E02C13459908652117882F4460429724CE54428C33FAD30A8DF7F3B2552694AC26CFBAC0749D213D2E47CDBA5A9658378DA827A17800CE79E43BAB7848D9B939FA2833FD35BB23DF004C90652538430302FCEF25BFAB3454AD6D5ED66289B5278DA827A17800CE770EE682517BB4314D32BA5DBAC0009BE395957E7521B51C20BC6067A898B09E4090A508E0FED6299176DF2183F8FC7C001F17D6E5DE92622CD04E86FAF290E2D7E9C4E3C761E06A71DD303D21008E298D5E8D9A59859A8B6B372FE9A2E580EFC725E5C173C3A84C3EBF4D8D28E8B690335872C767BF85DA2F004C90652538430E4A6367B16DE6309 X-C1DE0DAB: 0D63561A33F958A576466E124876BD539F11BF8FD825B16FD36D3A32A286BB55D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA7502E6951B79FF9A3F410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D340CB2836B823694495B5CB2D952845F79380D08F7859BE632CD69DB4A177F19EB84F302063685121D1D7E09C32AA3244CB68693BD02A5A2B0FF6934641CF7FF9B3A76366E8A9DE7CA927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojq8JA+pXcDulEsAbhGSOoWQ== X-Mailru-Sender: 05EB39F83D09414F9B5D7F52D7CDFDD219620ECFED9518D2C9D600AAE740B59EC16B137F9509A407CA16B95394F0DD5CE99530A0C0F27B5268329DCED823713783C0E760C018FF54112434F685709FCF0DA7A0AF5A3A8387 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v4] qsync: provide box.info.synchro interface for monitoring 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: Kirill Yukhin via Tarantool-patches Reply-To: Kirill Yukhin Cc: tml , Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Hello, On 08 апр 15:18, Cyrill Gorcunov wrote: > In commit 14fa5fd82 (cfg: support symbolic evaluation of > replication_synchro_quorum) we implemented support of > symbolic evaluation of `replication_synchro_quorum` parameter > and there is no easy way to obtain it current run-time value, > ie evaluated number value. > > Moreover we would like to fetch queue length on transaction > limbo for tests and extend this statistics in future. Thus > lets add them. > > Closes #5191 > > Signed-off-by: Cyrill Gorcunov > > @TarantoolBot document > Title: Provide `box.info.synchro` interface > > The `box.info.synchro` leaf provides information about details of > synchronous replication. > > In particular `quorum` represent the current value of synchronous > replication quorum defined by `replication_synchro_quorum` > configuration parameter because it can be set as dynamic formula > such as `N/2+1` and the value depends on current number of replicas. > > Since synchronous replication does not commit data immediately > but waits for its propagation to replicas the data sits in a queue > gathering `commit` responses from remote nodes. Current number of > entries waiting in the queue is shown via `queue.len` member. > > A typical output is the following > > ``` Lua > tarantool> box.info.synchro > --- > - queue: > len: 0 > quorum: 1 > ... > ``` > > The `len` member shows current number of entries in the queue. > And the `quorum` member shows an evaluated value of > `replication_synchro_quorum` parameter. > --- > issue https://github.com/tarantool/tarantool/issues/5191 > branch gorcunov/gh-5191-qsync-stat-4 I've checked your patch into master. -- Regards, Kirill Yukhin