Skip to content
Snippets Groups Projects
Commit ca5dd2c1 authored by ocelot-inc's avatar ocelot-inc
Browse files

Markup in admin.rst + box_introspection.rst

parent bfcfa3bc
No related branches found
No related tags found
No related merge requests found
......@@ -23,27 +23,25 @@ A reference description also follows below:
this command. 10% of :confval:`slab_alloc_arena` is, on average,
sufficient. This statement waits until a snapshot is taken and returns operation result.
.. code-block:: lua
tarantool> box.info.version
---
- 1.6.3-439-g7e1011b
...
tarantool> box.snapshot()
---
- ok
...
tarantool> box.snapshot()
---
error: can't save snapshot, errno 17 (File exists)
...
| EXAMPLE
| :codenormal:`tarantool>` :codebold:`box.info.version`
| :codenormal:`---`
| :codenormal:`- 1.6.3-439-g7e1011b`
| :codenormal:`...`
| :codenormal:`tarantool>` :codebold:`box.snapshot()`
| :codenormal:`---`
| :codenormal:`- ok`
| :codenormal:`...`
| :codenormal:`tarantool>` :codebold:`box.snapshot()`
| :codenormal:`---`
| :codenormal:`error: can't save snapshot, errno 17 (File exists)`
| :codenormal:`...`
Taking a snapshot does not cause the server to start a new write-ahead log.
Once a snapshot is taken, old WALs can be deleted as long as all replicas
are up to date. But the WAL which was current at the time **box.snapshot()**
are up to date. But the WAL which was current at the time :codenormal:`box.snapshot()`
started must be kept for recovery, since it still contains log records
written after the start of **box.snapshot()**.
written after the start of :codenormal:`box.snapshot()`.
An alternative way to save a snapshot is to send the server SIGUSR1 UNIX
signal. While this approach could be handy, it is not recommended for use
......
......@@ -15,17 +15,16 @@ access to those parameters.
.. data:: box.cfg
EXAMPLE
| EXAMPLE
| :codenormal:`tarantool>` :codebold:`box.cfg`
| :codenormal:`---`
| :codenormal:`- too_long_threshold: 0.5`
| :codenormal:`slab_alloc_factor: 1.1`
| :codenormal:`slab_alloc_minimal: 64`
| :codenormal:`background: false`
| :codenormal:`slab_alloc_arena: 1`
| :codenormal:`log_level: 5`
| :codenormal:`...`
| |nbsp| :codenormal:`- too_long_threshold: 0.5`
| |nbsp| :codenormal:`slab_alloc_factor: 1.1`
| |nbsp| :codenormal:`slab_alloc_minimal: 64`
| |nbsp| :codenormal:`background: false`
| |nbsp| :codenormal:`slab_alloc_arena: 1`
| |nbsp| :codenormal:`log_level: 5`
| |nbsp| :codenormal:`...`
| :codenormal:`...`
=====================================================================
......@@ -58,22 +57,22 @@ you can use **date -d@** 1306964594.980.
:return: keys and values in the package.
:rtype: table
EXAMPLE
| EXAMPLE
| :codenormal:`tarantool>` :codebold:`box.info()`
| :codenormal:`---`
| :codenormal:`- server:`
| :codenormal:`lsn: 158`
| :codenormal:`ro: false`
| :codenormal:`uuid: 75967704-0115-47c2-9d03-bd2bdcc60d64`
| :codenormal:`id: 1`
| :codenormal:`pid: 32561`
| :codenormal:`version: 1.6.4-411-gcff798b`
| :codenormal:`snapshot_pid: 0`
| :codenormal:`status: running`
| :codenormal:`vclock: {1: 158}`
| :codenormal:`replication:`
| :codenormal:`status: off`
| :codenormal:`uptime: 2778`
| |nbsp| |nbsp| |nbsp| :codenormal:`lsn: 158`
| |nbsp| |nbsp| |nbsp| :codenormal:`ro: false`
| |nbsp| |nbsp| |nbsp| :codenormal:`uuid: 75967704-0115-47c2-9d03-bd2bdcc60d64`
| |nbsp| :codenormal:`id: 1`
| |nbsp| :codenormal:`pid: 32561`
| |nbsp| :codenormal:`version: 1.6.4-411-gcff798b`
| |nbsp| :codenormal:`snapshot_pid: 0`
| |nbsp| :codenormal:`status: running`
| |nbsp| :codenormal:`vclock: {1: 158}`
| |nbsp| :codenormal:`replication:`
| |nbsp| |nbsp| |nbsp| :codenormal:`status: off`
| |nbsp| :codenormal:`uptime: 2778`
| :codenormal:`...`
.. data:: status
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment