Skip to content

Commit

Permalink
admin api: skip partition info in /brokers end point
Browse files Browse the repository at this point in the history
fetching partition information via health report API is heavy and
brokers API doesn't really use it. This patch avoids fetching that
information.

(cherry picked from commit 0ecb2a4)
  • Loading branch information
bharathv authored and vbotbuildovich committed Jan 23, 2024
1 parent 807eedb commit ffe083f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/v/redpanda/admin_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ fill_maintenance_status(const cluster::broker_state& b_state) {
ss::future<std::vector<ss::httpd::broker_json::broker>>
get_brokers(cluster::controller* const controller) {
cluster::node_report_filter filter;
filter.include_partitions = cluster::include_partitions_info::no;

return controller->get_health_monitor()
.local()
Expand Down

0 comments on commit ffe083f

Please sign in to comment.