Skip to content
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

new configuration option: 'replication.synchro_queue_max_size' #4575

Open
TarantoolBot opened this issue Oct 4, 2024 · 0 comments · May be fixed by #4749
Open

new configuration option: 'replication.synchro_queue_max_size' #4575

TarantoolBot opened this issue Oct 4, 2024 · 0 comments · May be fixed by #4749
Assignees
Labels
3.3 config replication [area] Related to Replication

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Oct 4, 2024

Dev. issue: tarantool/tarantool#7486

Product: Tarantool
Since: 3.3.0
Root document: https://www.tarantool.io/en/doc/latest/reference/configuration/configuration_reference/
SME: @ Astronomax

Details

replication.synchro_queue_max_size puts a limit on the number of
transactions in the master synchronous queue.
replication.synchro_queue_max_size is measured in number of bytes to
be written (0 means unlimited, which was the default behaviour before).
This option affects only the behavior of the master, and defaults to
16 megabytes.

Now that replication.synchro_queue_max_size is set on the master node,
tarantool will discard new transactions that try to queue after the limit
is reached. If a transaction had to be discarded, user will get an error
message "The synchronous transaction queue is full".

This limitation does not apply during the recovery process.

The current synchro queue size can be known using
box.info.synchro.queue.size:

tarantool> box.info.synchro
---
- queue:
    owner: 1
    size: 60
    busy: false
    len: 1
    term: 2
  quorum: 2
...

[box-info-synchro] https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_info/synchro/
Requested by @Astronomax in tarantool/tarantool@e319c21.

@veod32 veod32 added 3.3 config replication [area] Related to Replication labels Oct 10, 2024
@p7nov p7nov self-assigned this Dec 5, 2024
@p7nov p7nov removed their assignment Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.3 config replication [area] Related to Replication
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants