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
Copy file name to clipboardExpand all lines: modules/manage/pages/cluster-maintenance/compaction-settings.adoc
+35-3Lines changed: 35 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,10 +28,42 @@ Compaction policy may be applied to a cluster or to an individual topic. If both
28
28
29
29
== Tombstone marker removal
30
30
31
-
When all messages for a given key are deleted, the topic partition keeps one message, called a tombstone, that contains the key, and a null value. A tombstone indicates to clients that the messages have been deleted. How long Redpanda keeps these tombstones depends on the topic cleanup policy:
31
+
When all messages for a given key are deleted, the topic partition keeps one message, called a tombstone, that contains the key, and a null value. A tombstone indicates to clients that the messages have been deleted. You can specify how long Redpanda keeps these tombstones using both a cluster configuration property `tombstone_retention_ms` and a topic configuration property `delete.retention.ms`. If both are set, the topic-level tombstone retention policy overrides the cluster-level policy.
32
32
33
-
* For topics with a `compact,delete` policy, Redpanda deletes the tombstones when a topic reaches its retention limits.
34
-
* For topics with a `compact` policy, Redpanda deletes the tombstones based on the specified tombstone retention policy. This retention policy is set with the `delete.retention.ms` topic configuration property.
33
+
[NOTE]
34
+
====
35
+
You cannot enable `tombstone_retention_ms` if you have enabled any of the Tiered Storage cluster properties `cloud_storage_enabled`, `cloud_storage_enable_remote_read`, and `cloud_storage_enable_remote_write`.
36
+
37
+
On the topic level, you cannot enable `delete.retention.ms` at the same time as the Tiered Storage topic configuration properties `redpanda.remote.read` and `redpanda.remote.write`.
38
+
====
39
+
40
+
To set the cluster-level tombstone retention policy, run the command:
41
+
42
+
[,bash]
43
+
----
44
+
rpk cluster config set tombstone_retention_ms=100
45
+
----
46
+
47
+
You can set the tombstone retention for a topic so that it inherits the cluster-wide default:
0 commit comments