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
Update the default value of db.tx_log.rotation.retention_policy (#1239) (#1252)
In Neo4j 5.13, the def.value of the config
`db.tx_log.rotation.retention_policy` was changed from `2 days` to `2
days 2G`. To reflect those changes, we have to update two pages in the
Operations manual.
---------
Co-authored-by: Reneta Popova <[email protected]>
a|Specify how long Neo4j should keep logical transaction logs to backup the database.
4663
4663
For example, `10 days` prunes logical logs that only contain transactions older than 10 days.
4664
4664
Alternatively, `100k txs` keeps the 100k latest transactions from each database and prunes any older transactions.
4665
-
From Neo4j 5.9 onwards, you can optionally add a period-based restriction to the size of logs to keep, for example, `2 days 1G` prunes logical logs that only contain transactions older than 2 days or are larger than 1G.
4665
+
From Neo4j 5.9 onwards, you can optionally add a period-based restriction to the size of logs to keep.
4666
+
For example, `2 days 1G` prunes logical logs that only contain transactions older than 2 days or are larger than 1G.
4666
4667
|Valid values
4667
4668
a|a string which matches the pattern, `^(true\|keep_all\|false\|keep_none\|(\\d+[KkMmGg]?( (files\|size\|txs\|entries\|hours( \\d+[KkMmGg]?)?\|days( \\d+[KkMmGg]?)?))))$`
4668
4669
Must be `true` or `keep_all`, `false` or `keep_none`, or of format `<number><optional unit> <type> <optional space restriction>`.
4669
4670
Valid units are `K`, `M`, and `G`.
4670
4671
Valid types are `files`, `size`, `txs`, `entries`, `hours`, and `days`.
4671
4672
Valid optional space restriction is a logical log space restriction like `1G`.
4672
-
For example, `1G size` limits logical log space on the disk to 1G per database, `200K txs` limits the number of transactions kept to 200 000 per database, and `2 days 1G` limits the logical log space on the disk to 1G at most 2 days per database.
4673
+
For example, `1G size` limits logical log space on the disk to 1G per database, `200K txs` limits the number of transactions kept to 200 000 per database, and `2 days 1G` limits the logical log space on the disk to 1G at most 2 days per database. +
4674
+
Starting from Neo4j 5.13, the default value is changed from `2 days` to `2 days 2G`.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/database-internals/transaction-logs.adoc
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,12 +59,15 @@ Manually deleting transaction log files is not supported.
59
59
You can control the number of transaction logs that Neo4j keeps to back up the database using the parameter xref:configuration/configuration-settings.adoc#config_db.tx_log.rotation.retention_policy[`db.tx_log.rotation.retention_policy`].
60
60
This configuration setting is dynamic and can be changed at runtime.
61
61
62
-
By default, it is set to `2 days`, which means Neo4j keeps logical logs that contain any transaction committed within 2 days and prunes the ones that only contain transactions older than 2 days.
62
+
Up to Neo4j 5.12, the default value is set to `2 days`, which means Neo4j keeps logical logs that contain any transaction committed within 2 days and prunes the ones that only contain transactions older than 2 days.
63
63
64
64
label:new[Introduced in Neo4j 5.9] +
65
65
From Neo4j 5.9 onwards, you can optionally add a period-based restriction to the size of logs to keep.
66
66
For example, `2 days 1G` prunes logical logs that only contain transactions older than 2 days or are larger than 1G.
67
67
68
+
label:new[Introduced in Neo4j 5.13] +
69
+
Starting from Neo4j 5.13, the default value is changed to `2 days 2G`, which means Neo4j keeps logical logs that contain any transaction committed within 2 days from the current time and within the allocated log space (2G).
70
+
68
71
Other possible ways to configure the log retention policy are:
0 commit comments