From 2c5c9ebfcc8c758b699aff42f218c193eb11b732 Mon Sep 17 00:00:00 2001 From: Kseniia Antonova Date: Tue, 20 Sep 2022 12:06:10 +0300 Subject: [PATCH 1/2] Add replication_threads entry --- doc/reference/configuration/cfg_replication.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/doc/reference/configuration/cfg_replication.rst b/doc/reference/configuration/cfg_replication.rst index 00fc844334..a91366355e 100644 --- a/doc/reference/configuration/cfg_replication.rst +++ b/doc/reference/configuration/cfg_replication.rst @@ -482,6 +482,23 @@ | Environment variable: TT_REPLICATION_SYNCHRO_TIMEOUT | Dynamic: **yes** +.. confval:: replication_threads + + Since version :doc:`2.10.0 `. + The number of threads spawned to decode the incoming replication data. + + The default value is `1`. + It means that a single separate thread handles all the incoming replication streams. + + Possible values range from 1 to 1000. + If there are multiple replication threads, connections to serve are distributed evenly between the threads. + + | Type: number + | Default: 1 + | Possible values: from 1 to 1000 + | Environment variable: TT_REPLICATION_THREADS + | Dynamic: **yes** + .. _cfg_replication-election_mode: .. confval:: election_mode From 71f739cc694563abfaa9cdc51439c22fa33b207a Mon Sep 17 00:00:00 2001 From: Kseniia Antonova Date: Wed, 28 Sep 2022 11:26:34 +0300 Subject: [PATCH 2/2] Apply suggestions after review --- doc/reference/configuration/cfg_replication.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/reference/configuration/cfg_replication.rst b/doc/reference/configuration/cfg_replication.rst index a91366355e..d09be69f3f 100644 --- a/doc/reference/configuration/cfg_replication.rst +++ b/doc/reference/configuration/cfg_replication.rst @@ -10,6 +10,7 @@ * :ref:`instance_uuid ` * :ref:`replication_synchro_quorum ` * :ref:`replication_synchro_timeout ` +* :ref:`replication_threads ` * :ref:`election_mode ` * :ref:`election_timeout ` * :ref:`election_fencing_enabled ` @@ -482,6 +483,8 @@ | Environment variable: TT_REPLICATION_SYNCHRO_TIMEOUT | Dynamic: **yes** +.. _cfg_replication-replication_replication_threads: + .. confval:: replication_threads Since version :doc:`2.10.0 `. @@ -489,6 +492,8 @@ The default value is `1`. It means that a single separate thread handles all the incoming replication streams. + In most cases, one thread is enough for all incoming data. + Therefore, it is likely that the user will not need to set this configuration option. Possible values range from 1 to 1000. If there are multiple replication threads, connections to serve are distributed evenly between the threads. @@ -497,7 +502,7 @@ | Default: 1 | Possible values: from 1 to 1000 | Environment variable: TT_REPLICATION_THREADS - | Dynamic: **yes** + | Dynamic: **no** .. _cfg_replication-election_mode: