From: Serge Petrenko <sergepetrenko@tarantool.org>
To: Cyrill Gorcunov <gorcunov@gmail.com>,
tml <tarantool-patches@dev.tarantool.org>
Cc: Mons Anderson <v.perepelitsa@corp.mail.ru>,
Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
Subject: Re: [Tarantool-patches] [PATCH v3 0/3] qsync: evaluate replication_synchro_quorum dynamically
Date: Fri, 4 Dec 2020 13:15:30 +0300 [thread overview]
Message-ID: <1332bf7e-894f-883d-b2c5-edf4b95a285b@tarantool.org> (raw)
In-Reply-To: <20201203140446.66312-1-gorcunov@gmail.com>
03.12.2020 17:04, Cyrill Gorcunov пишет:
> From the issue description:
>
> > The reason is that users will likely not understand how the option
> > should be configured properly, and will break something accidentally.
> > So this idea about allowance to write an expression on the cluster
> > size allows to specify the canonical N/2 + 1 formula, and not update
> > it manually on all instances, when a new node is added, or an existing
> > one is deleted.
>
> v2 (by Serge):
> - keep replication_synchro_quorum been skipped at bootstrap in load_cfg.lua
> - eliminate redundant say_info calls
> - call quorum update routine from replica_set_id/replica_clear_id
> - use replicaset.registered_count directly when evaluating the formula
> - make quorum evaluation procedure always return value in allowed range,
> the only error which may happen here is some syntax error or Lua evaluation
> errors
> - a test has been added
>
> v3 (by Serge, Mons, Vlad):
> - use replica.lua in tests
> - use N symbol in formula
> - use lua_pcall when evaluating a formula
> - make formula more safe itself, provide various math helpers
> - use box_update_replication_synchro_quorum name as a general
> updater from replication code
> - do not forget to update raft election quorum inside
> box_update_replication_synchro_quorum
> - print warns inside functions evaluator if value get out of bounds
>
> issue https://github.com/tarantool/tarantool/issues/5446
> branch gorcunov/gh-5446-eval-quorum-3
>
> Cyrill Gorcunov (3):
> cfg: add cfg_isnumber helper
> cfg: support symbolic evaluation of replication_synchro_quorum
> test: add replication/gh-5446-sqync-eval-quorum.test.lua
>
> src/box/box.cc | 142 +++++++++++++++-
> src/box/box.h | 1 +
> src/box/lua/load_cfg.lua | 2 +-
> src/box/replication.cc | 4 +-
> src/cfg.c | 9 +
> src/cfg.h | 6 +
> .../gh-5446-sqync-eval-quorum.result | 156 ++++++++++++++++++
> .../gh-5446-sqync-eval-quorum.test.lua | 62 +++++++
> test/replication/replica-quorum-1.lua | 1 +
> test/replication/replica-quorum-2.lua | 1 +
> test/replication/replica-quorum-3.lua | 1 +
> test/replication/replica-quorum-4.lua | 1 +
> 12 files changed, 379 insertions(+), 7 deletions(-)
> create mode 100644 test/replication/gh-5446-sqync-eval-quorum.result
> create mode 100644 test/replication/gh-5446-sqync-eval-quorum.test.lua
> create mode 120000 test/replication/replica-quorum-1.lua
> create mode 120000 test/replication/replica-quorum-2.lua
> create mode 120000 test/replication/replica-quorum-3.lua
> create mode 120000 test/replication/replica-quorum-4.lua
>
>
> base-commit: bd03dfc76c0b76f56374c3e66052e2af0c50ae65
Thanks for the patchset!
LGTM.
--
Serge Petrenko
prev parent reply other threads:[~2020-12-04 10:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-03 14:04 Cyrill Gorcunov
2020-12-03 14:04 ` [Tarantool-patches] [PATCH v3 1/3] cfg: add cfg_isnumber helper Cyrill Gorcunov
2020-12-03 14:04 ` [Tarantool-patches] [PATCH v3 2/3] cfg: support symbolic evaluation of replication_synchro_quorum Cyrill Gorcunov
2020-12-04 23:52 ` Vladislav Shpilevoy
2020-12-07 20:17 ` Cyrill Gorcunov
2020-12-07 21:25 ` Vladislav Shpilevoy
2020-12-07 21:48 ` Cyrill Gorcunov
2020-12-08 8:02 ` Cyrill Gorcunov
2020-12-09 23:22 ` Vladislav Shpilevoy
2020-12-11 12:25 ` Cyrill Gorcunov
2020-12-13 18:12 ` Vladislav Shpilevoy
2020-12-03 14:04 ` [Tarantool-patches] [PATCH v3 3/3] test: add replication/gh-5446-sqync-eval-quorum.test.lua Cyrill Gorcunov
2020-12-04 23:52 ` Vladislav Shpilevoy
2020-12-08 8:48 ` Cyrill Gorcunov
2020-12-09 23:22 ` Vladislav Shpilevoy
2020-12-04 10:15 ` Serge Petrenko [this message]
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=1332bf7e-894f-883d-b2c5-edf4b95a285b@tarantool.org \
--to=sergepetrenko@tarantool.org \
--cc=gorcunov@gmail.com \
--cc=tarantool-patches@dev.tarantool.org \
--cc=v.perepelitsa@corp.mail.ru \
--cc=v.shpilevoy@tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH v3 0/3] qsync: evaluate replication_synchro_quorum dynamically' \
/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