Skip to content

Describe replication_threads configuration option #3157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions doc/reference/configuration/cfg_replication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* :ref:`instance_uuid <cfg_replication-instance_uuid>`
* :ref:`replication_synchro_quorum <cfg_replication-replication_synchro_quorum>`
* :ref:`replication_synchro_timeout <cfg_replication-replication_synchro_timeout>`
* :ref:`replication_threads <cfg_replication-replication_replication_threads>`
* :ref:`election_mode <cfg_replication-election_mode>`
* :ref:`election_timeout <cfg_replication-election_timeout>`
* :ref:`election_fencing_enabled <cfg_replication-election_fencing_enabled>`
Expand Down Expand Up @@ -482,6 +483,27 @@
| Environment variable: TT_REPLICATION_SYNCHRO_TIMEOUT
| Dynamic: **yes**

.. _cfg_replication-replication_replication_threads:

.. confval:: replication_threads

Since version :doc:`2.10.0 </release/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.
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.

| Type: number
| Default: 1
| Possible values: from 1 to 1000
| Environment variable: TT_REPLICATION_THREADS
| Dynamic: **no**

.. _cfg_replication-election_mode:

.. confval:: election_mode
Expand Down