@@ -2414,9 +2414,12 @@ To learn more about the snapshots' configuration, check the :ref:`Persistence <c
2414
2414
2415
2415
.. confval :: snapshot.dir
2416
2416
2417
- A directory where memtx stores snapshot (.snap) files. Can be relative to
2418
- ``process.work_dir ``. If not specified, defaults to
2419
- ``process.work_dir ``. See also: :ref: `wal.dir <configuration_reference_wal_dir >`.
2417
+ A directory where memtx stores snapshot (.snap) files.
2418
+ A relative path in this option is interpreted as relative to ``process.work_dir ``.
2419
+
2420
+ By default, snapshots and WAL files are stored in the same directory.
2421
+ You can set different values for the ``snapshot.dir `` and :ref: `wal.dir <configuration_reference_wal_dir >` options
2422
+ to store them on different physical disks for performance matters.
2420
2423
2421
2424
|
2422
2425
| Type: string
@@ -2458,10 +2461,10 @@ To learn more about the snapshots' configuration, check the :ref:`Persistence <c
2458
2461
2459
2462
snapshot :
2460
2463
by :
2461
- interval : 60
2464
+ interval : 7200
2462
2465
count : 10
2463
2466
2464
- In the example, the checkpoint daemon creates a new snapshot each hour until
2467
+ In the example, the checkpoint daemon creates a new snapshot every two hours until
2465
2468
it has created ten snapshots. After that, it deletes the oldest snapshot
2466
2469
(and any associated write-ahead-log files) after creating a new one.
2467
2470
@@ -2496,10 +2499,10 @@ snapshot.by.*
2496
2499
.. literalinclude :: /code_snippets/snippets/config/instances.enabled/persistence_snapshot/config.yaml
2497
2500
:language: yaml
2498
2501
:start-at: by:
2499
- :end-at: interval: 60
2502
+ :end-at: interval: 7200
2500
2503
:dedent:
2501
2504
2502
- In the example, the checkpoint daemon creates a new database snapshot once per minute , if there is activity.
2505
+ In the example, the checkpoint daemon creates a new database snapshot every two hours , if there is activity.
2503
2506
2504
2507
|
2505
2508
| Type: number
@@ -2571,11 +2574,12 @@ To learn more about the WAL configuration, check the :ref:`Persistence <configur
2571
2574
2572
2575
.. confval :: wal.dir
2573
2576
2574
- A directory where write-ahead log (.xlog) files are stored. Can be relative
2575
- to ``process.work_dir ``. Sometimes ``wal.dir `` and
2576
- :ref: `snapshot.dir <configuration_reference_snapshot_dir >` are specified with different values, so
2577
- that write-ahead log files and snapshot files can be stored on different
2578
- disks. If not specified, defaults to ``process.work_dir ``.
2577
+ A directory where write-ahead log (.xlog) files are stored.
2578
+ A relative path in this option is interpreted as relative to ``process.work_dir ``.
2579
+
2580
+ By default, WAL files and snapshots are stored in the same directory.
2581
+ You can set different values for the ``wal.dir `` and :ref: `snapshot.dir <configuration_reference_snapshot_dir >` options
2582
+ to store them on different physical disks for performance matters.
2579
2583
2580
2584
|
2581
2585
| Type: string
0 commit comments