Skip to content

Conversation

@kbatuigas
Copy link
Contributor

@kbatuigas kbatuigas commented Nov 21, 2024

Description

Adds Cloud API to the mountable topics doc and conditionalizes content so that the page can be single sourced between Self-Managed and Cloud docs, but Cloud API content is rendered only on the Cloud docs site.

Related: redpanda-data/cloud-docs#134

Resolves https://github.com/redpanda-data/documentation-private/issues/
Review deadline: 26 Nov

Page previews

Redpanda Cloud docs > Manage > Mountable Topics

Checks

  • New feature
  • Content gap
  • Support Follow-up
  • Small fix (typos, links, copyedits, etc)

Deflaimun and others added 21 commits November 19, 2024 12:37
Co-authored-by: Paulo Borges <[email protected]>
Co-authored-by: Gellért Peresztegi-Nagy <[email protected]>
Co-authored-by: Angela Simms <[email protected]>
Co-authored-by: Joyce Fee <[email protected]>
Co-authored-by: Paulo Borges <[email protected]>
Co-authored-by: Joyce Fee <[email protected]>
Co-authored-by: Angela Simms <[email protected]>
Co-authored-by: Joyce Fee <[email protected]>
Co-authored-by: Paulo Borges <[email protected]>
Co-authored-by: Angela Simms <[email protected]>
Co-authored-by: Joyce Fee <[email protected]>
Co-authored-by: Kat Batuigas <[email protected]>
Co-authored-by: Jake Cahill <[email protected]>
Co-authored-by: Paulo Borges <[email protected]>
Co-authored-by: Gellért Peresztegi-Nagy <[email protected]>
Co-authored-by: Angela Simms <[email protected]>
Co-authored-by: Michele Cyran <[email protected]>
Co-authored-by: Jake Cahill <[email protected]>
Co-authored-by: JakeSCahill <[email protected]>
Co-authored-by: Michele Cyran <[email protected]>
Co-authored-by: Jake Cahill <[email protected]>
Co-authored-by: Jake Cahill <[email protected]>
Co-authored-by: Kat Batuigas <[email protected]>
Co-authored-by: Paulo Borges <[email protected]>
Co-authored-by: Paulo Borges <[email protected]>
Co-authored-by: Joyce Fee <[email protected]>
Co-authored-by: Gellért Peresztegi-Nagy <[email protected]>
Co-authored-by: Angela Simms <[email protected]>
Co-authored-by: Kat Batuigas <[email protected]>
Co-authored-by: Michele Cyran <[email protected]>
@netlify
Copy link

netlify bot commented Nov 21, 2024

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 7fcf98d
🔍 Latest deploy log https://app.netlify.com/sites/redpanda-docs-preview/deploys/675080dae1d95c00086b37bf
😎 Deploy Preview https://deploy-preview-874--redpanda-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kbatuigas kbatuigas marked this pull request as ready for review November 22, 2024 21:40
@kbatuigas kbatuigas requested a review from a team as a code owner November 22, 2024 21:40

[NOTE]
====
include::shared:partial$enterprise-license.adoc[]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattschumpert we do not have licensing content for the cloud docs like we do for self-managed. Should I remove/hide the licensing prereq for the Cloud version of this page?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @towfiqa if you could provide guidance for this as well.

+
If using the Cloud API, you'll make requests against Data Plane APIs. Make sure you xref:manage:api/cloud-dataplane-api.adoc#get-data-plane-api-url[retrieve the Data Plane API URL] and use this URL to perform a mount or unmount operation.
endif::[]
. Enable xref:manage:tiered-storage.adoc[Tiered Storage] for specific topics, or for the entire cluster (all topics).
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattschumpert how should Cloud users make sure that they meet this prereq? Can they toggle Tiered Storage on a per-topic basis and is that what we should say for the Cloud version of this page?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @towfiqa if you could provide guidance for this as well.

@kbatuigas kbatuigas requested a review from towfiqa November 25, 2024 14:42
:page-categories: Management
:env-linux: true

For topics with Tiered Storage enabled, you can unmount a topic to safely detach it from a cluster and keep the topic data in the cluster's object storage bucket or container. You can mount the detached topic to either the same origin cluster, or a different one. This allows you to hibernate a topic and free up system resources taken up by the topic, or migrate a topic to a different cluster.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@towfiqa This is the overview for the self-managed version of the doc. The cloud version will have this, could you review and let me know if any changes are needed?:

(preview available here)

For topics with Tiered Storage enabled, you can unmount a topic to safely detach it from a cluster and keep the topic data in the cluster’s object storage bucket or container. You can remount the detached topic to the origin cluster, allowing you to hibernate a topic and free up system resources taken up by the topic.

:page-categories: Management
:env-linux: true

For topics with Tiered Storage enabled, you can unmount a topic to safely detach it from a cluster and keep the topic data in the cluster's object storage bucket or container. You can mount the detached topic to either the same origin cluster, or a different one. This allows you to hibernate a topic and free up system resources taken up by the topic, or migrate a topic to a different cluster.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can mount the detached topic to either the same origin cluster, or a different one.

Afaik cross-cluster mounting/unmounting is not supported in Cloud and definetely not supported via the cloud api

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @weeco I do have a modified version of this intro for the Cloud page. Preview here: https://deploy-preview-874--redpanda-docs-preview.netlify.app/redpanda-cloud/manage/mountable-topics/

@weeco weeco self-requested a review November 28, 2024 15:50
Base automatically changed from v-WIP/24.3 to main December 3, 2024 15:01
…APIs-for-mount-unmount-of-TS-topics

# Conflicts:
#	antora.yml
#	modules/ROOT/nav.adoc
#	modules/console/pages/config/enterprise-license.adoc
#	modules/console/pages/ui/generate-bundle.adoc
#	modules/deploy/pages/deployment-option/self-hosted/kubernetes/k-production-deployment.adoc
#	modules/develop/pages/produce-data/leader-pinning.adoc
#	modules/get-started/pages/licensing/add-license-redpanda/kubernetes.adoc
#	modules/get-started/pages/licensing/add-license-redpanda/linux.adoc
#	modules/get-started/pages/licensing/monitor-license-status.adoc
#	modules/get-started/pages/licensing/overview.adoc
#	modules/get-started/pages/whats-new.adoc
#	modules/get-started/partials/licensing/check-license.adoc
#	modules/manage/pages/mountable-topics.adoc
#	modules/manage/partials/mountable-topics.adoc
#	modules/reference/pages/properties/cluster-properties.adoc
#	modules/reference/pages/properties/topic-properties.adoc
#	modules/reference/pages/public-metrics-reference.adoc
#	modules/reference/pages/rpk/rpk-cluster/rpk-cluster-storage-cancel-mount.adoc
#	modules/reference/pages/rpk/rpk-cluster/rpk-cluster-storage-list-mount.adoc
#	modules/reference/pages/rpk/rpk-cluster/rpk-cluster-storage-list-mountable.adoc
#	modules/reference/pages/rpk/rpk-cluster/rpk-cluster-storage-mount.adoc
#	modules/reference/pages/rpk/rpk-cluster/rpk-cluster-storage-status-mount.adoc
#	modules/reference/pages/rpk/rpk-cluster/rpk-cluster-storage-unmount.adoc
#	modules/shared/partials/enterprise-and-console.adoc
#	modules/troubleshoot/partials/errors-and-solutions.adoc
@Deflaimun Deflaimun force-pushed the DOC-717-Document-Cloud-Feature-Public-Cloud-APIs-for-mount-unmount-of-TS-topics branch 2 times, most recently from f55ee88 to 8ff5de8 Compare December 3, 2024 15:46
@Deflaimun
Copy link
Contributor

Force-push: Add back the local-playbook change

```
+
* `ns` is the topic namespace. This field is optional and only `kafka` is supported.
* You may have multiple topics with the same name that are available to mount from object storage. This can happen if you have unmounted topics with this name from different clusters. To uniquely identify a source topic, use `<topic-name>/<cluster-uuid>/<initial-revision>` as the topic reference.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* You may have multiple topics with the same name that are available to mount from object storage. This can happen if you have unmounted topics with this name from different clusters. To uniquely identify a source topic, use `<topic-name>/<cluster-uuid>/<initial-revision>` as the topic reference.
* You may have multiple topics with the same name that are available to mount from object storage. This can happen if you have unmounted topics using the same name in different clusters. To uniquely identify a source topic, use `<topic-name>/<cluster-uuid>/<initial-revision>` as the topic reference.

+
* `ns` is the topic namespace. This field is optional and only `kafka` is supported.
* You may have multiple topics with the same name that are available to mount from object storage. This can happen if you have unmounted topics with this name from different clusters. To uniquely identify a source topic, use `<topic-name>/<cluster-uuid>/<initial-revision>` as the topic reference.
* To rename a topic in the target cluster, use the optional `alias` object in the request body. In the example, you specify a new name for topic 1 in the target cluster, but topic 2 retains its original name in the target cluster.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* To rename a topic in the target cluster, use the optional `alias` object in the request body. In the example, you specify a new name for topic 1 in the target cluster, but topic 2 retains its original name in the target cluster.
* To rename a topic in the target cluster, use the optional `alias` object in the request body. The following example shows how to specify a new name for topic 1 in the target cluster, while topic 2 retains its original name in the target cluster.

* `ns` is the topic namespace. This field is optional and only `kafka` is supported.
* You may have multiple topics with the same name that are available to mount from object storage. This can happen if you have unmounted topics with this name from different clusters. To uniquely identify a source topic, use `<topic-name>/<cluster-uuid>/<initial-revision>` as the topic reference.
* To rename a topic in the target cluster, use the optional `alias` object in the request body. In the example, you specify new names for topics 1 and 3 in the target cluster, but topic 2 retains its original name in the target cluster.
* To rename a topic in the target cluster, use the optional `alias` object in the request body. In the example, you specify a new name for topic 1 in the target cluster, but topic 2 retains its original name in the target cluster.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* To rename a topic in the target cluster, use the optional `alias` object in the request body. In the example, you specify a new name for topic 1 in the target cluster, but topic 2 retains its original name in the target cluster.
* To rename a topic in the target cluster, use the optional `alias` object in the request body. The following example shows how to specify a new name for topic 1 in the target cluster, while topic 2 retains its original name in the target cluster.

Copy link
Contributor

@Feediver1 Feediver1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some suggested edits

@kbatuigas
Copy link
Contributor Author

Status update: have a request out to the API team to add the mount/unmount endpoints to the OpenAPI spec. I'll wait till tomorrow morning Eastern Time to see we can get that in so we can also add the reference doc URLs here, otherwise I'll go ahead and merge tomorrow and we can add the xrefs afterwards.

@kbatuigas kbatuigas merged commit 4728ca3 into main Dec 4, 2024
7 checks passed
@kbatuigas kbatuigas deleted the DOC-717-Document-Cloud-Feature-Public-Cloud-APIs-for-mount-unmount-of-TS-topics branch December 4, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants