Jackie-Jiang opened a new pull request #8249:
URL: https://github.com/apache/pinot/pull/8249
## Description
Currently, when a new broker joins the cluster, or the tags for a broker is
changed, broker resource won't be updated automatically. Users need to either
rebuild broker resource for each table in that broker tenant, or wait for the
periodic task to fix the broker resource. Before that, the changes for the
broker won't be reflected.
This PR makes the following enhancements:
- Add a boolean flag `updateBrokerResource` to create/update instance rest
APIs to automatically update the broker resource when enabled (disabled by
default to keep the current behavior because updating broker resource can be
costly for large cluster)
- Add a rest API to update the broker resource for a specified broker
- For single-tenant cluster, when broker joins the cluster for the first
time as `DefaultTenant`, automatically update the broker resource so that it
can build the routing tables properly.
## Release Notes
Add an optional boolean query parameter `updateBrokerResource` to the
following rest APIs:
- `POST /instances`: Add an instance
- `PUT /instances/{instanceName}`: Update an instance
- `PUT /instances/{instanceName}/updateTags`: Update the tags for an instance
Add a rest API to update the broker resource for a specified broker:
- `POST /instances/{instanceName}/updateBrokerResource`
For single-tenant cluster, when broker joins the cluster for the first time
as `DefaultTenant`, automatically update the broker resource so that it can
build the routing tables properly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]