[Admin API] Add new rolling restart health endpoints #1019
+77
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
/v1/broker/pre_restart_probe
to check if it is safe to restart a broker, with an optionallimit
query parameter to limit the number of partitions listed for each risk type./v1/broker/post_restart_probe
to check if a broker has recovered after a restart.New schemas:
pre_restart_check_result
schema to describe the result of a pre-restart check, including risks associated with restarting the broker.restart_risks
schema to describe partitions affected by the current broker restart, grouped by risk type.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