Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
ca5dd2c1
Commit
ca5dd2c1
authored
9 years ago
by
ocelot-inc
Browse files
Options
Downloads
Patches
Plain Diff
Markup in admin.rst + box_introspection.rst
parent
bfcfa3bc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/sphinx/book/box/admin.rst
+15
-17
15 additions, 17 deletions
doc/sphinx/book/box/admin.rst
doc/sphinx/book/box/box_introspection.rst
+21
-22
21 additions, 22 deletions
doc/sphinx/book/box/box_introspection.rst
with
36 additions
and
39 deletions
doc/sphinx/book/box/admin.rst
+
15
−
17
View file @
ca5dd2c1
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
doc/sphinx/book/box/box_introspection.rst
+
21
−
22
View file @
ca5dd2c1
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment