Skip to content

Commit 77ed269

Browse files
authored
Merge branch 'beta' into Doc-936
2 parents 2e7db56 + 5e51d3c commit 77ed269

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

modules/manage/partials/tiered-storage.adoc

-29
Original file line numberDiff line numberDiff line change
@@ -1133,35 +1133,6 @@ rpk topic alter-config <topic_name> --set redpanda.remote.read=true
11331133

11341134
See also: xref:{topic-recovery-link}[Topic Recovery], xref:manage:kubernetes/k-remote-read-replicas.adoc[Remote Read Replicas]
11351135

1136-
== Safe pause and resume
1137-
1138-
When running Tiered Storage, you can safely pause and resume uploads to cloud storage without risking data consistency or loss. To pause or resume segment uploads to cloud storage, use the `cloud_storage_enable_segment_uploads` configuration property (default is `true`), which allows segment uploads to proceed normally after the pause completes and uploads resume.
1139-
1140-
While uploads are paused, data accumulates locally, which can lead to full disks if the pause is prolonged. In such cases, Redpanda throttles produce requests, and rejects new Kafka produce requests to prevent data from being written. Additionally, this pauses cloud storage housekeeping, meaning segments are neither uploaded nor removed from cloud storage. However, it is still possible to consume data from cloud storage when you have paused uploads.
1141-
1142-
When you set `cloud_storage_enable_segment_uploads` to `false`, all in-flight segment uploads will complete, but no new segment uploads will commence until after the value is set back to `true`. During this pause, Tiered Storage enforces consistency by ensuring that no segment in local storage is deleted until it is successfully uploaded to cloud storage. This means that when uploads are resumed, no user intervention is needed, and no data gaps are created.
1143-
1144-
Use the `redpanda_cloud_storage_paused_archivers` metric to monitor the status of paused uploads. It displays a non-zero value whenever uploads are paused.
1145-
1146-
NOTE: Do not use `redpanda.remote.read` or `redpanda.remote.write` to pause and resume segment uploads. Doing so can lead to a gap between local data and the data in the cloud storage that cannot be re-enabled without additional user intervention. Also, in such cases, it is possible that the oldest segment is not aligned with the last uploaded segment due to the gap.
1147-
1148-
In cases where you must pause uploads but you cannot afford to accumulate data on disk and lose availability (which, for some applications where the newest data is more valuable than historical data, this can be worse than data loss), there are a couple of less safe pause and resume mechanisms:
1149-
1150-
- Set the `cloud_storage_enable_remote_allow_gaps` cluster configuration property to `true`, which allows gaps for all topics in the cluster.
1151-
- Set the `redpanda.remote.allow_gaps` configuration (both topic and cluster) property to `true`, which allows gaps for one specific topic.
1152-
1153-
When you pause uploads and set one of these properties to `true`, gaps may result. However, you can seamlessly resume uploads by specifying `*allow_gaps` to `true` at either the cluster or topic level. Otherwise, if set to `false`,
1154-
uploads could stall if a gap occurs.
1155-
1156-
To pause and resume Tiered Storage uploads, but allow for gaps:
1157-
1158-
1. Set `cloud_storage_enable_segment_uploads` to `false`.
1159-
2. Enable gaps by setting `redpanda.remote.allowgaps` to `true` for the topic, or by setting `cloud_storage_enable_remote_allow_gaps` to `true` for the entire cluster.
1160-
3. Troubleshoot the issue that required you to pause uploads.
1161-
4. Resume uploads by specifying `cloud_storage_enable_segment_uploads` to `true`.
1162-
5. Wait until you see that the `redpanda_cloud_storage_paused_archivers` metric is equal to zero, indicating that uploads have resumed.
1163-
6. Disable gaps by setting `redpanda.remote.allowgaps` to `false` for the topic, or specifying `cloud_storage_enable_remote_allow_gaps` to `false` for the entire cluster.
1164-
11651136
== Caching
11661137

11671138
When a consumer fetches an offset range that isn't available locally in the Redpanda data directory, Redpanda downloads remote segments from object storage. These downloaded segments are stored in the object storage cache.

0 commit comments

Comments
 (0)