If I want to move pinot table from one tenant to another, can I just change the tenant name inside table config? If yes, is there any downtime?
m
Mayank
04/01/2022, 8:30 PM
Yes, you can change tenant name and perform rebalance. You have the option of specifying whether you want to avoid downtime in the rebalance api.
w
Weixiang Sun
04/01/2022, 8:56 PM
@User How does it work for realtime table? Will the consuming segments be sealed? The offline segments will be loaded to new tenant? How does query work? Will the broker send the query to old tenant or new tenant?
m
Mayank
04/01/2022, 9:16 PM
Broker will send the query to servers (it does not look at tenant info):
Mayank
04/01/2022, 9:17 PM
For real-time, there is a option to enable rebalance of consuming segments. I don’t recall if they are sealed or just dropped and consumption starting from checkpoint @User
j
Jackie
04/01/2022, 9:51 PM
@User If consuming segments are configured to be moved, the new server will re-consume the already consumed events, and the original consuming segment is dropped
w
Weixiang Sun
04/04/2022, 4:28 PM
Are there two ways to do it: 1. Swagger REST API; 2. Edit Table from Cluster Manager? Do both of them work?