Skip to content

Commit 691ac04

Browse files
p7novlenkis
andauthored
Update tt docs to 2.3.0 (misc changes) (#4324)
Resolves #4188, #4288, #4289, #4290, #4291 TT_CLI_CFG env variable tt coredump: -s option tt status: mode in output and --pretty option tt import: --keep-bucket-id tt create: list of built-in templates Co-authored-by: Elena Shebunyaeva <elena.shebunyaeva@gmail.com>
1 parent 4e19454 commit 691ac04

13 files changed

+216
-106
lines changed

doc/book/admin/server_introspection.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ To check the instance status, run:
7979
.. code-block:: console
8080
8181
$ tt status my_app
82-
INSTANCE STATUS PID
83-
my_app RUNNING 67172
82+
INSTANCE STATUS PID MODE
83+
my_app RUNNING 67172 RW
8484
8585
$ # - OR -
8686

doc/book/admin/start_stop_instance.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,20 @@ To check the status of instances, execute :ref:`tt status <tt-status>`:
7373
.. code-block:: console
7474
7575
$ tt status sharded_cluster
76-
INSTANCE STATUS PID
77-
sharded_cluster:storage-a-001 RUNNING 2023
78-
sharded_cluster:storage-a-002 RUNNING 2026
79-
sharded_cluster:storage-b-001 RUNNING 2020
80-
sharded_cluster:storage-b-002 RUNNING 2021
81-
sharded_cluster:router-a-001 RUNNING 2022
76+
INSTANCE STATUS PID MODE
77+
sharded_cluster:storage-a-001 RUNNING 2023 RW
78+
sharded_cluster:storage-a-002 RUNNING 2026 RO
79+
sharded_cluster:storage-b-001 RUNNING 2020 RW
80+
sharded_cluster:storage-b-002 RUNNING 2021 RO
81+
sharded_cluster:router-a-001 RUNNING 2022 RW
8282
8383
To check the status of a specific instance, you need to specify its name:
8484

8585
.. code-block:: console
8686
8787
$ tt status sharded_cluster:storage-a-001
88-
INSTANCE STATUS PID
89-
sharded_cluster:storage-a-001 RUNNING 2023
88+
INSTANCE STATUS PID MODE
89+
sharded_cluster:storage-a-001 RUNNING 2023 RW
9090
9191
9292
.. _admin-start_stop_instance_connect:

doc/how-to/getting_started_db.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ Starting an instance
7676
.. code-block:: console
7777
7878
$ tt status create_db
79-
INSTANCE STATUS PID
80-
create_db:instance001 RUNNING 54560
79+
INSTANCE STATUS PID MODE
80+
create_db:instance001 RUNNING 54560 RW
8181
8282
#. Connect to the instance with :ref:`tt connect <tt-connect>`:
8383

doc/how-to/getting_started_tcm.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,10 @@ To deploy a local cluster based on the configuration from etcd:
253253
.. code-block:: console
254254
255255
$ tt status cluster
256-
INSTANCE STATUS PID
257-
cluster:instance-001 RUNNING 2058
258-
cluster:instance-002 RUNNING 2059
259-
cluster:instance-003 RUNNING 2060
256+
INSTANCE STATUS PID MODE
257+
cluster:instance-001 RUNNING 2058 RW
258+
cluster:instance-002 RUNNING 2059 RO
259+
cluster:instance-003 RUNNING 2060 RO
260260
261261
.. _getting_started_tcm_manage:
262262

doc/how-to/replication/repl_bootstrap.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ Starting instances
137137
.. code-block:: console
138138
139139
$ tt status manual_leader
140-
INSTANCE STATUS PID
141-
manual_leader:instance001 RUNNING 15272
142-
manual_leader:instance002 RUNNING 15273
140+
INSTANCE STATUS PID MODE
141+
manual_leader:instance001 RUNNING 15272 RW
142+
manual_leader:instance002 RUNNING 15273 RO
143143
144144
145145
.. _replication-master_replica_status:
@@ -292,10 +292,10 @@ Starting an instance
292292
.. code-block:: console
293293
294294
$ tt status manual_leader
295-
INSTANCE STATUS PID
296-
manual_leader:instance001 RUNNING 15272
297-
manual_leader:instance002 RUNNING 15273
298-
manual_leader:instance003 RUNNING 15551
295+
INSTANCE STATUS PID MODE
296+
manual_leader:instance001 RUNNING 15272 RW
297+
manual_leader:instance002 RUNNING 15273 RO
298+
manual_leader:instance003 RUNNING 15551 RO
299299
300300
301301
.. _replication-add_instances-reload-config:

doc/how-to/replication/repl_bootstrap_auto.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ Starting instances
135135
.. code-block:: console
136136
137137
$ tt status auto_leader
138-
INSTANCE STATUS PID
139-
auto_leader:instance001 RUNNING 24768
140-
auto_leader:instance002 RUNNING 24769
141-
auto_leader:instance003 RUNNING 24767
138+
INSTANCE STATUS PID MODE
139+
auto_leader:instance001 RUNNING 24768 RO
140+
auto_leader:instance002 RUNNING 24769 RW
141+
auto_leader:instance003 RUNNING 24767 RO
142142
143143
144144

doc/how-to/replication/repl_bootstrap_master_master.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ Starting instances
141141
.. code-block:: console
142142
143143
$ tt status master_master
144-
INSTANCE STATUS PID
145-
master_master:instance001 RUNNING 30818
146-
master_master:instance002 RUNNING 30819
144+
INSTANCE STATUS PID MODE
145+
master_master:instance001 RUNNING 30818 RW
146+
master_master:instance002 RUNNING 30819 RW
147147
148148
149149
.. _replication-master-master-check-status:

doc/reference/tooling/tt_cli/configuration.rst

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,30 @@ Configuration file
99
------------------
1010

1111
The key artifact that defines the ``tt`` environment and various aspects of its
12-
execution is its configuration file.
12+
execution is its configuration file. You can generate it with a :ref:`tt init <tt-init>` call.
13+
In the :ref:`default launch mode <tt-config_modes-default>`, the file is generated
14+
in the current directory, making it the environment root.
1315

14-
By default, the configuration file is called ``tt.yaml``. The location
15-
where ``tt`` searches for it depends on the :ref:`launch mode <tt-config_modes>`.
16-
You can also pass the configuration file explicitly in the ``--cfg``
17-
:ref:`global option <tt-global-options>`.
16+
.. _tt-config_file_name:
17+
18+
Name and location
19+
~~~~~~~~~~~~~~~~~
20+
21+
By default, the configuration file is called ``tt.yaml`` and located in the ``tt``
22+
environment root directory. It depends on the :ref:`launch mode <tt-config_modes>`.
23+
24+
It is also possible to pass the configuration file name and location explicitly using
25+
the following ways:
26+
27+
#. ``-c``/``--cfg`` :ref:`global option <tt-global-options>`
28+
#. ``TT_CLI_CFG`` environment variable.
29+
30+
The ``TT_CLI_CFG`` variable has a lower priority than the ``--cfg`` option.
31+
32+
.. _tt-config_file_structure:
33+
34+
Structure
35+
~~~~~~~~~
1836

1937
The ``tt`` configuration file is a YAML file with the following structure:
2038

@@ -159,6 +177,8 @@ configuration file. There are three launch modes:
159177
* system
160178
* local
161179

180+
.. _tt-config_modes-default:
181+
162182
Default launch
163183
~~~~~~~~~~~~~~
164184

doc/reference/tooling/tt_cli/coredump.rst

Lines changed: 41 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,20 @@ Manipulating Tarantool core dumps
1212
To be able to investigate Tarantool crashes, make sure that core dumps are enabled
1313
on the host. Here is the :ref:`instruction on enabling core dumps on Unix systems <admin-core_dumps>`.
1414

15+
``COMMAND`` is one of the following:
16+
17+
* :ref:`pack <tt-coredump-pack>`
18+
* :ref:`unpack <tt-coredump-unpack>`
19+
* :ref:`inspect <tt-coredump-inspect>`
20+
1521
.. important::
1622

17-
``tt coredump`` does not support macOS.
23+
``tt coredump`` is not supported on macOS.
1824

19-
Commands
20-
--------
25+
.. _tt-coredump-pack:
2126

2227
pack
23-
~~~~
28+
----
2429

2530
.. code-block:: console
2631
@@ -32,57 +37,62 @@ It includes:
3237
* the Tarantool executable
3338
* Tarantool version information
3439
* OS information
35-
* Shared libraries
40+
* shared libraries
41+
* the `GNU debugger <https://www.sourceware.org/gdb/>`__ with extensions.
3642

37-
Option: a path to a core dump file.
43+
Pack a ``tar.gz`` file with a Tarantool core dump and supporting data:
44+
45+
.. code-block:: console
46+
47+
$ tt coredump pack name.core
48+
49+
.. _tt-coredump-unpack:
3850

3951
unpack
40-
~~~~~~
52+
------
4153

4254
.. code-block:: console
4355
4456
$ tt coredump unpack ARCHIVE
4557
46-
Unpack a Tarantool core dump created with ``tt coredump pack`` into a new directory.
47-
48-
Option: a path to a ``tar.gz`` archive packed by ``tt coredump pack``.
49-
50-
inspect
51-
~~~~~~~
58+
Unpack a Tarantool core dump archive created with ``tt coredump pack`` into a new directory:
5259

5360
.. code-block:: console
5461
55-
$ tt coredump inspect DIRECTORY
62+
$ tt coredump unpack tarantool-core-dump.tar.gz
5663
57-
Inspect a Tarantool core dump directory with the `GNU debugger <https://www.sourceware.org/gdb/>`__ (``gdb``)
58-
The directory being inspected must have the same structure as the core dump archive
59-
created by ``tt coredump pack``.
6064
61-
.. note::
65+
.. _tt-coredump-inspect:
6266

63-
``tt coredump inspect`` requires ``gdb`` installed on the host.
67+
inspect
68+
-------
6469

65-
Option: a path to a directory with an unpacked core dump archive.
70+
.. code-block:: console
6671
67-
Examples
68-
--------
72+
$ tt coredump inspect [ARCHIVE|DIRECTORY] [-s]
6973
70-
* Pack a ``tar.gz`` file with a Tarantool core dump and supporting data:
74+
Inspect a Tarantool core dump with the `GNU debugger <https://www.sourceware.org/gdb/>`__ (``gdb``).
75+
The command argument can be either an archive file produced with ``tt coredump pack``
76+
or directory where such an archive is extracted.
7177

72-
.. code-block:: console
78+
Inspect the core dump archive with ``gdb``:
7379

74-
$ tt coredump pack name.core
80+
.. code-block:: console
81+
82+
$ tt coredump inspect tarantool-core-dump.tar.gz
7583
84+
Inspect the unpacked core dump directory with ``gdb``:
7685

77-
* Unpack a ``tar.gz`` archive packed by ``tt coredump pack``:
86+
.. code-block:: console
7887
79-
.. code-block:: console
88+
$ tt coredump inspect tarantool-core-dump
8089
81-
$ tt coredump unpack tarantool-core-dump.tar.gz
8290
91+
Options
92+
-------
8393

84-
* Inspect the unpacked core dump with ``gdb``:
94+
.. option:: -s
8595

86-
.. code-block:: console
96+
**Applicable to**: ``inspect``
8797

88-
$ tt coredump inspect tarantool-core-dump
98+
Specify the location of Tarantool sources.

0 commit comments

Comments
 (0)