-
Notifications
You must be signed in to change notification settings - Fork 43
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
3.0 config: replication reference #3834
Conversation
d7605c0
to
7dbe024
Compare
82bc916
to
c3e8597
Compare
fdf8244
to
0c5d37c
Compare
c24f5b0
to
bb1784e
Compare
7dbe024
to
69f3816
Compare
ec04aac
to
3c5da27
Compare
3c5da27
to
c587d83
Compare
c587d83
to
97a98f7
Compare
|
||
# The maximum number of old log files to retain. | ||
log_maxbackups: 10 | ||
# Tarantoolctl artifacts layout compatibility: if set to true tt will not create application |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Tarantoolctl artifacts layout compatibility: if set to true tt will not create application | |
# Tarantoolctl artifacts layout compatibility: if set to true, tt will not create application |
same for
- doc/code_snippets/snippets/replication/tt.yaml
- doc/code_snippets/snippets/sharding/tt.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, cannot fix this as tt.yaml
is generated automatically using tt init
. So, this is a reminder that we need to cteate a process for reviewing user-facing texts written by the tt development team.
restart_on_failure: false | ||
app: | ||
# Directory that stores various instance runtime | ||
# artifacts like console socket, PID file, etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# artifacts like console socket, PID file, etc. | |
# artifacts such as console socket, PID file, etc. |
same for
- doc/code_snippets/snippets/replication/tt.yaml
- doc/code_snippets/snippets/sharding/tt.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as above
database | ||
-------- | ||
|
||
The ``database`` section defines database-specific configuration parameters, such as an instance's read-write mode, transaction isolation level, and so on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ``database`` section defines database-specific configuration parameters, such as an instance's read-write mode, transaction isolation level, and so on. | |
The ``database`` section defines database-specific configuration parameters, such as an instance's read-write mode or transaction isolation level. |
- ``rw``: an instance is in read-write mode. | ||
- ``ro``: an instance is in read-only mode. | ||
|
||
If this option is not specified explicitly, its default value depends on the number of instances in a replica set. For a single instance, the ``rw`` mode is used, while for multiple instances, the ``ro`` mode is used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: If not specified explicitly, the default value depends on the number of instances in a replica set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better, thanks
|
||
.. confval:: database.txn_timeout | ||
|
||
A timeout (in seconds) after which the transaction is rolled back. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A timeout (in seconds) after which the transaction is rolled back. | |
A timeout in seconds after which the transaction is rolled back. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you don't mind, I'd keep units in round brackets to emphasise this information a bit.
|
||
.. confval:: iproto.net_msg_max | ||
|
||
To handle messages, Tarantool allocates fibers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link to fiber
definition?
Tarantool restricts how many messages the fibers handle, | ||
so that some pending requests are blocked. | ||
|
||
- On powerful systems, increase ``net_msg_max`` and the scheduler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- On powerful systems, increase ``net_msg_max`` and the scheduler | |
- On powerful systems, increase ``net_msg_max``, and the scheduler |
- On powerful systems, increase ``net_msg_max`` and the scheduler | ||
starts processing pending requests immediately. | ||
|
||
- On weaker systems, decrease ``net_msg_max`` and the overhead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- On weaker systems, decrease ``net_msg_max`` and the overhead | |
- On weaker systems, decrease ``net_msg_max``, and the overhead |
may decrease although this may take some time because the | ||
scheduler must wait until already-running requests finish. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider splitting this long sentence in two separate sentences
* ``off`` | ||
|
||
A node doesn't participate in the election activities. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* ``off`` | |
A node doesn't participate in the election activities. | |
* ``off``: a node doesn't participate in the election activities. |
Same for other possible values below
Updated configuration reference with options related to replication.
This PR adds reference for configuration options related to replication. Here are a summary of all changes:
code_snippets/snippets
folder contains runnable tt applications referenced in docs. In addition to exiting examples, this PR adds thebootstrap_leader
,peers
, andsharding
samples. These samples are included in a reference page in various places to demonstrate various features. Moreover, all these samples will be reused in other places in docs (tutorials, how-tos, etc.) for keeping consistency and making sure all the examples work fine.config
andconfig.etcd
, the following sections are added toConfiguration reference
:replicasets
andinstances
sections)Note that
replication.anon
anddatabase.hot_standby
are not documented yet. Will create separate tickets for documenting these options (#3857 and #3858).Links to new configuration options in main docs are not updated yet. Most likely, this will be done in separate PRs when updating corresponding topics.