Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: Serge Petrenko <sergepetrenko@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH] raft: add a test with synchronous replication
Date: Sun, 4 Oct 2020 15:54:10 +0200	[thread overview]
Message-ID: <acac499f-b8e3-d9d0-9a73-aa76e8cbcf08@tarantool.org> (raw)
In-Reply-To: <20201002103312.23042-1-sergepetrenko@tarantool.org>

Hi! Thanks for the patch!

> diff --git a/test/replication/election_qsync.result b/test/replication/election_qsync.result
> new file mode 100644
> index 000000000..1bf13d7bc
> --- /dev/null
> +++ b/test/replication/election_qsync.result
> @@ -0,0 +1,125 @@
> +SERVERS = {'election_replica1', 'election_replica2', 'election_replica3'}
> + | ---
> + | ...
> +test_run:create_cluster(SERVERS, "replication", {args='2'})
> + | ---
> + | ...
> +test_run:wait_fullmesh(SERVERS)
> + | ---
> + | ...
> +
> +nrs = {true, true, true}

1. What is 'nrs'?

> + | ---
> + | ...
> diff --git a/test/replication/election_replica.lua b/test/replication/election_replica.lua
> index 36ea1f077..887d8a2a0 100644
> --- a/test/replication/election_replica.lua
> +++ b/test/replication/election_replica.lua
> @@ -19,8 +20,11 @@ box.cfg({
>      replication_timeout = 0.1,
>      election_is_enabled = true,
>      election_is_candidate = true,
> -    election_timeout = 0.1,
> -    replication_synchro_quorum = 3,
> +    -- Should be at least as big as replication_disconnect_timeout, which is
> +    -- 4 * replication_timeout.
> +    election_timeout = 0.4,

2. Why? Election timeout has nothing to do with disconnect. It is about
split vote. This also will slow down raft_basic.test.lua, which is not
supposed to be long. For heartbeat timeouts Raft already uses
replication_disconnect_timeout = replication_timeout * 4.

  reply	other threads:[~2020-10-04 13:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-02 10:33 Serge Petrenko
2020-10-04 13:54 ` Vladislav Shpilevoy [this message]
2020-10-05  8:52   ` Serge Petrenko
2020-10-05 21:40     ` Vladislav Shpilevoy
2020-10-06  7:30       ` Serge Petrenko
2020-10-06 10:04 ` Kirill Yukhin

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=acac499f-b8e3-d9d0-9a73-aa76e8cbcf08@tarantool.org \
    --to=v.shpilevoy@tarantool.org \
    --cc=sergepetrenko@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH] raft: add a test with synchronous replication' \
    /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