Skip to content

Conversation

@kbatuigas
Copy link
Contributor

@kbatuigas kbatuigas commented Mar 19, 2025

Description

This pull request introduces new endpoints to the admin-api.yaml file for checking the status of brokers before and after a restart. Additionally, it defines new schemas for the results of these checks.

This will accompany an update to the Rolling Restart and Upgrade Redpanda in Linux guides (PR #1026).

New endpoints:

  • Added /v1/broker/pre_restart_probe to check if it is safe to restart a broker, with an optional limit query parameter to limit the number of partitions listed for each risk type.
  • Added /v1/broker/post_restart_probe to check if a broker has recovered after a restart.

New schemas:

  • Defined pre_restart_check_result schema to describe the result of a pre-restart check, including risks associated with restarting the broker.
  • Defined restart_risks schema to describe partitions affected by the current broker restart, grouped by risk type.
  • Defined post_restart_check_result schema to describe the result of a post-restart check, which is the load reclaimed by the broker after restarting.

Resolves https://redpandadata.atlassian.net/browse/
Review deadline: 21 March

Page previews

https://deploy-preview-1019--redpanda-docs-preview.netlify.app/api/admin-api/#get-/v1/broker/pre_restart_probe
https://deploy-preview-1019--redpanda-docs-preview.netlify.app/api/admin-api/#get-/v1/broker/post_restart_probe

Checks

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

@kbatuigas kbatuigas requested a review from a team as a code owner March 19, 2025 22:44
@netlify
Copy link

netlify bot commented Mar 19, 2025

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 940bfe0
🔍 Latest deploy log https://app.netlify.com/sites/redpanda-docs-preview/deploys/67e0817070627700086b288a
😎 Deploy Preview https://deploy-preview-1019--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 requested a review from bashtanov March 19, 2025 22:52
type: array
items:
type: string
description: ntp
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bashtanov we actually already have a components.schema definition for ntp: https://github.com/redpanda-data/docs/blob/api/modules/ROOT/attachments/admin-api.yaml#L4639 would it make sense to use a $ref here?

Choose a reason for hiding this comment

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

The ntp definition linked describes an object with 3 separate key-value entries (key being ns, topic, partition), while here it is a combined string. So no, it would be incorrect to refer to this existing definition.

@kbatuigas kbatuigas mentioned this pull request Mar 23, 2025
4 tasks
Copy link
Contributor

@micheleRP micheleRP left a comment

Choose a reason for hiding this comment

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

lgtm

@kbatuigas kbatuigas merged commit b8d80d8 into api Apr 1, 2025
5 checks passed
@kbatuigas kbatuigas deleted the 931-api-rolling-restart branch April 1, 2025 13:18
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.

4 participants