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
95facdca
Commit
95facdca
authored
9 years ago
by
ocelot-inc
Browse files
Options
Downloads
Patches
Plain Diff
Fixes gh-1190 document how snapshot daemon removes old .xlog (write ahead log) files
parent
eec71f2f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/sphinx/book/configuration/cfg-snapshot_daemon.rst
+21
-7
21 additions, 7 deletions
doc/sphinx/book/configuration/cfg-snapshot_daemon.rst
with
21 additions
and
7 deletions
doc/sphinx/book/configuration/cfg-snapshot_daemon.rst
+
21
−
7
View file @
95facdca
:confval:`snapshot_period`, |br|
:confval:`snapshot_count` |br|
The snapshot daemon is a fiber which is constantly running.
At intervals, it may make new snapshot (.snap) files and
then may remove old snapshot files. If the snapshot daemon
removes an old snapshot file, it will also remove any
write-ahead log (.xlog) files that are older than the
snapshot file and contain information that is present in
the snapshot file.
The :confval:`snapshot_period` and :confval:`snapshot_count`
configuration settings determine how long the intervals are,
and how many snapshots should exist before removals occur.
.. confval:: snapshot_period
The interval between actions by the snapshot daemon, in seconds.
The snapshot daemon is a fiber which is constantly running.
If ``snapshot_period`` is set to a value greater than zero,
and there is activity which causes change to a database,
then the snapshot daemon will call :func:`box.snapshot` every
``snapshot_period`` seconds, creating a new snapshot file each time.
...
...
@@ -19,21 +31,23 @@
.. confval:: snapshot_count
The maximum number of snapshots that the snapshot daemon maintains.
The maximum number of snapshots that may exist on the snap_dir
directory before the snapshot daemon will remove old snapshots.
If snapshot_count equals zero, then the snapshot daemon does not remove
old snapshots.
For example:
.. code-block:: lua
box.cfg{
snapshot_period = 3600
snapshot_period = 3600
,
snapshot_count = 10
}
will cause the snapshot daemon to create a new snapshot each hour until
it has created ten snapshots. After that, it will remove the oldest
snapshot (and any associated write-ahead-log files) after creating a new one.
If snapshot_count equals zero, then the snapshot daemon does not remove
old snapshots.
Type: integer |br|
Default: 6 |br|
...
...
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