You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The delay in seconds used to prevent the :ref:`Tarantool garbage collector <configuration_persistence_checkpoint_daemon>` from removing a :ref:`write-ahead log <internals-wal>` file after it has been closed.
4781
+
If a node is restarted, ``wal.retention_period`` counts down from the last modification time of the write-ahead log file.
4782
+
4783
+
The garbage collector doesn't track write-ahead logs that are to be :ref:`relayed <memtx-replication>` to anonymous replicas, such as:
4784
+
4785
+
* Anonymous replicas added as a part of a cluster configuration (see :ref:`replication.anon <configuration_reference_replication_anon>`).
4786
+
* CDC (Change Data Capture) that retrieves data using anonymous replication.
4787
+
4788
+
In case of a replica or CDC downtime, the required write-ahead logs can be removed.
4789
+
As a result, such a replica needs to be rebootstrapped.
4790
+
You can use ``wal.retention_period`` to prevent such issues.
4791
+
4792
+
Note that :ref:`wal.cleanup_delay <configuration_reference_wal_cleanup_delay>` option also sets the delay used to prevent the Tarantool garbage collector from removing write-ahead logs.
4793
+
The difference is that the garbage collector doesn't take into account ``wal.cleanup_delay`` if all the nodes in the replica set are up and running, which may lead to the removal of the required write-ahead logs.
4794
+
4795
+
.. NOTE::
4796
+
4797
+
:ref:`box.info.gc().wal_retention_vclock <box_info_gc>` can be used to get a vclock value of the oldest write-ahead log protected by ``wal.retention_period``.
Copy file name to clipboardExpand all lines: doc/reference/reference_lua/box_info/gc.rst
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,4 +22,5 @@ box.info.gc()
22
22
* **gc().checkpoints[n].signature** -- a sum of a checkpoint's vclock's components.
23
23
* **gc().checkpoint_is_in_progress** -- true if a checkpoint is in progress, otherwise false
24
24
* **gc().vclock** -- the garbage collector's vclock.
25
-
* **gc().signature** -- the sum of the garbage collector's checkpoint's components.
25
+
* **gc().signature** -- the sum of the garbage collector's checkpoint's components.
26
+
* **gc().wal_retention_vclock** -- a vclock value of the oldest write-ahead log file protected from removing by the garbage collector by using the :ref:`wal.retention_period <configuration_reference_wal_retention_period>` option.
0 commit comments