Skip to content

Commit 4f8416b

Browse files
authored
fixes gh-1685 Split all box topics for version 2.6 (#1766)
* cherry-pick unchanged files from 1.10 successfully cherry-picked * box_txn_management, * box_ctl, * box_backup * files with :doc: links * split box_error + translate + replace :ref: with :doc: * split box_slab + translate + replace :ref: with :doc: * split box_info + translate + replace :ref: with :doc: * split box_session + translate + replace :ref: with :doc: * split box_schema_sequence + translate + replace :ref: with :doc: * split box_schema * add missing functions for box_ctl * box_schema translate + replace :ref: with :doc: * split box_index * box_index translate + replace :ref: with :doc: * small fixes * split box_tuple * box_tuple translate + replace :ref: with :doc: * split box_space + replace :ref: with :doc: (!!) a lot of fuzzy statements are left * split SQL functions + replace :ref: with :doc: * bugfix * remove unnecessary sphinx directive
1 parent 76cbf26 commit 4f8416b

File tree

656 files changed

+35333
-29849
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

656 files changed

+35333
-29849
lines changed

doc/book/admin/backups.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ any time, with minimal overhead on database performance.
1515

1616
Two functions are helpful for backups in certain situations:
1717

18-
* :ref:`box.backup.start() <reference_lua-box_backup-backup_start>` informs
18+
* :doc:`/reference/reference_lua/box_backup/start` informs
1919
the server that activities related to the removal of outdated backups must
2020
be suspended and returns a table with the names of snapshot and vinyl files
2121
that should be copied.
2222

23-
* :ref:`box.backup.stop() <reference_lua-box_backup-backup_stop>` later informs
23+
* :doc:`/reference/reference_lua/box_backup/stop` later informs
2424
the server that normal operations may resume.
2525

2626
.. _admin-backups-hot_backup_memtx:
@@ -60,15 +60,17 @@ checkpoint.
6060

6161
To take a mixed backup:
6262

63-
1. Issue :ref:`box.backup.start() <reference_lua-box_backup-backup_start>` on the
63+
1. Issue :doc:`/reference/reference_lua/box_backup/start` on the
6464
:ref:`administrative console <admin-security>`. This will return a list of
65-
files to back up and suspend garbage collection for them till the next ``box.backup.stop()``.
65+
files to back up and suspend garbage collection for them till the next
66+
``box.backup.stop()``.
6667

6768
2. Copy the files from the list to a safe location. This will include memtx
6869
snapshot files, vinyl run and index files, at a state consistent with the
6970
last checkpoint.
7071

71-
3. Issue ``box.backup.stop()`` so the garbage collector can continue as usual.
72+
3. Issue :doc:`/reference/reference_lua/box_backup/stop` so the garbage
73+
collector can continue as usual.
7274

7375
.. _admin-backups-cont_remote_backup_memtx:
7476

doc/book/admin/daemon_supervision.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ processor thread:
2626
| | reference on Tarantool logging parameters. |
2727
+---------------------+------------------------------------------------------+
2828
| SIGUSR1 | May cause a database checkpoint. See |
29-
| | :ref:`box.snapshot <box-snapshot>`. |
29+
| | :doc:`/reference/reference_lua/box_snapshot`. |
3030
+---------------------+------------------------------------------------------+
3131
| SIGTERM | May cause graceful shutdown (information will be |
3232
| | saved first). |

doc/book/admin/disaster_recovery.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ The following steps are applicable only to data in memtx storage engine.
113113
Your actions:
114114

115115
1. Put all nodes in :ref:`read-only mode <cfg_basic-read_only>` and disable
116-
deletion of expired checkpoints with :ref:`box.backup.start() <reference_lua-box_backup-backup_start>`.
116+
deletion of expired checkpoints with :doc:`/reference/reference_lua/box_backup/start`.
117117
This will prevent the Tarantool garbage collector from removing files
118-
made with older checkpoints until :ref:`box.backup.stop() <reference_lua-box_backup-backup_stop>` is called.
118+
made with older checkpoints until :doc:`/reference/reference_lua/box_backup/stop` is called.
119119

120120
2. Get the latest valid :ref:`.snap file <internals-snapshot>` and
121121
use ``tarantoolctl cat`` command to calculate at which lsn the data loss occurred.

doc/book/admin/instance_config.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ file is often provided by a developer, in a Lua rock or an rpm/deb package.
7676

7777
An instance file is designed to not differ in any way from a Lua application.
7878
It must, however, configure the database, i.e. contain a call to
79-
:ref:`box.cfg{} <box_introspection-box_cfg>` somewhere in it, because it’s the
79+
:doc:`box.cfg{} </reference/reference_lua/box_cfg>` somewhere in it, because it’s the
8080
only way to turn a Tarantool script into a background process, and
8181
``tarantoolctl`` is a tool to manage background processes. Other than that, an
8282
instance file may contain arbitrary Lua code, and, in theory, even include the
@@ -99,7 +99,7 @@ the method described in section
9999
default settings.
100100

101101
Most of the parameters are similar to those used by
102-
:ref:`box.cfg{} <box_introspection-box_cfg>`. Here are the default settings
102+
:doc:`box.cfg{} </reference/reference_lua/box_cfg>`. Here are the default settings
103103
(possibly installed in ``/etc/default/tarantool`` or ``/etc/sysconfig/tarantool``
104104
as part of Tarantool distribution -- see OS-specific default paths in
105105
:ref:`Notes for operating systems <admin-os_notes>`):

doc/book/admin/server_introspection.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,16 @@ To check the boot log, on systems with ``systemd``, say:
113113
114114
For more details, use the reports provided by functions in the following submodules:
115115

116-
* :ref:`box.cfg <box_introspection-box_cfg>` submodule (check and specify all
116+
* :doc:`/reference/reference_lua/box_cfg` (check and specify all
117117
configuration parameters for the Tarantool server)
118118

119-
* :ref:`box.slab <box_introspection-box_slab>` submodule (monitor the total use
119+
* :doc:`/reference/reference_lua/box_slab` (monitor the total use
120120
and fragmentation of memory allocated for storing data in Tarantool)
121121

122-
* :ref:`box.info <box_introspection-box_info>` submodule (introspect Tarantool
122+
* :doc:`/reference/reference_lua/box_info` (introspect Tarantool
123123
server variables, primarily those related to replication)
124124

125-
* :ref:`box.stat <box_introspection-box_stat>` submodule (introspect Tarantool
125+
* :doc:`/reference/reference_lua/box_stat` (introspect Tarantool
126126
request and network statistics)
127127

128128
You can also try `prometheus <https://github.com/tarantool/metrics/tree/master/metrics/plugins/prometheus>`_,
@@ -132,7 +132,8 @@ Prometheus protocol.
132132

133133
**Example**
134134

135-
A very popular administrator request is :ref:`box.slab.info() <box_slab_info>`,
135+
A very popular administrator request is
136+
:doc:`/reference/reference_lua/box_slab/slab_info`,
136137
which displays detailed memory usage statistics for a Tarantool instance.
137138

138139
.. code-block:: tarantoolsession
@@ -165,7 +166,7 @@ fragmentation by calling the Lua garbage collector via the
165166

166167
Ordinarily this does not affect performance.
167168
But, to force Tarantool to release memory, you can
168-
call :ref:`box.snapshot <box-snapshot>`, stop the server instance,
169+
call :doc:`box.snapshot() </reference/reference_lua/box_snapshot>`, stop the server instance,
169170
and restart it.
170171

171172
.. _admin-profiling_performance_issues:

doc/book/admin/start_stop_instance.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Here is what ``tarantoolctl`` does when you issue the command:
3434
``tarantoolctl`` takes the instance name, prepends the instance directory and
3535
appends ".lua" extension to the instance file.
3636

37-
4. Override :ref:`box.cfg{} <box_introspection-box_cfg>` function to pre-process
37+
4. Override :doc:`box.cfg{} </reference/reference_lua/box_cfg>` function to pre-process
3838
its parameters and ensure that instance paths are pointing to the paths
3939
defined in the ``tarantoolctl`` configuration file. For example, if the
4040
configuration file specifies that instance work directory must be in

doc/book/admin/troubleshoot.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Problem: INSERT/UPDATE-requests result in ER_MEMORY_ISSUE error
1414
**Possible reasons**
1515

1616
* Lack of RAM (parameters ``arena_used_ratio`` and ``quota_used_ratio`` in
17-
:ref:`box.slab.info() <box_slab_info>` report are getting close to 100%).
17+
:doc:`/reference/reference_lua/box_slab/slab_info` report are getting close to 100%).
1818

1919
To check these parameters, say:
2020

@@ -77,7 +77,7 @@ over 60% CPU.
7777
**Solution**
7878

7979
Attach to the Tarantool instance with :ref:`tarantoolctl <tarantoolctl>` utility,
80-
analyze the query statistics with :ref:`box.stat() <box_introspection-box_stat>`
80+
analyze the query statistics with :doc:`box.stat() </reference/reference_lua/box_stat>`
8181
and spot the CPU consumption leader. The following commands can help:
8282

8383
.. code-block:: console
@@ -175,7 +175,7 @@ Problem: Replication "lag" and "idle" contain negative values
175175

176176
This is about ``box.info.replication.(upstream.)lag`` and
177177
``box.info.replication.(upstream.)idle`` values in
178-
:ref:`box.info.replication <box_info_replication>` section.
178+
:doc:`/reference/reference_lua/box_info/replication` section.
179179

180180
**Possible reasons**
181181

@@ -198,7 +198,7 @@ Problem: Replication "idle" keeps growing, but no related log messages appear
198198
--------------------------------------------------------------------------------
199199

200200
This is about ``box.info.replication.(upstream.)idle`` value in
201-
:ref:`box.info.replication <box_info_replication>` section.
201+
:doc:`/reference/reference_lua/box_info/replication` section.
202202

203203
**Possible reasons**
204204

@@ -221,7 +221,7 @@ Problem: Replication statistics differ on replicas within a replica set
221221

222222
This is about a replica set that consists of one master and several replicas.
223223
In a replica set of this type, values in
224-
:ref:`box.info.replication <box_info_replication>` section, like
224+
:doc:`/reference/reference_lua/box_info/replication` section, like
225225
``box.info.replication.lsn``, come from the master and must be the same on all
226226
replicas within the replica set. The problem is that they get different.
227227

@@ -239,7 +239,8 @@ Replication is broken.
239239
Problem: Master-master replication is stopped
240240
--------------------------------------------------------------------------------
241241

242-
This is about :ref:`box.info.replication(.upstream).status <box_info_replication>`
242+
This is about
243+
:doc:`box.info.replication(.upstream).status </reference/reference_lua/box_info/replication>`
243244
= stopped.
244245

245246
**Possible reasons**

doc/book/admin/upgrades.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ parameters are supported. The full list of breaking changes is available in
9999
`download page <http://tarantool.org/download.html>`_.
100100

101101
5. Update the Tarantool database. Put the request ``box.schema.upgrade()``
102-
inside a :ref:`box.once() <box-once>` function in your Tarantool
102+
inside a :doc:`box.once() </reference/reference_lua/box_once>` function in your Tarantool
103103
:ref:`initialization file <index-init_label>`.
104104
On startup, this will create new system spaces, update data type names (e.g.
105105
num -> unsigned, str -> string) and options in Tarantool system spaces.

doc/book/app_server/cookbook.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The standard example of a simple program.
4646
console_start.lua
4747
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4848

49-
Use :ref:`box.once() <box-once>` to initialize a database
49+
Use :doc:`box.once() </reference/reference_lua/box_once>` to initialize a database
5050
(creating spaces) if this is the first time the server has been run.
5151
Then use :ref:`console.start() <console-start>` to start interactive mode.
5252

doc/book/app_server/creating_app.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ Index iterators
468468
By our gameplay, all caught pokémons are returned back to the map. We do this
469469
for all pokémons on the map every 60 seconds using ``respawn()`` method.
470470
We iterate through pokémons by status using Tarantool index iterator function
471-
:ref:`index:pairs <box_index-index_pairs>` and reset the statuses of all
471+
:doc:`/reference/reference_lua/box_index/pairs` and reset the statuses of all
472472
"caught" pokémons back to "active" using ``box.space.pokemons:update()``.
473473

474474
.. code-block:: lua

0 commit comments

Comments
 (0)