https://pinot.apache.org/ logo
p

Pradeep

09/16/2020, 1:40 AM
QQ what is the best way to drop a realtime server and move the segments to a different server? Would disabling the server and rebalancing would do the trick?
n

Neha Pawar

09/16/2020, 1:41 AM
pay attention to all knobs in the rebalance command
p

Pradeep

09/16/2020, 1:42 AM
thanks, will try that
curl -X POST <http://localhost:9000/instances/Broker_><ip>_8060/updateTags?tags=untagged_BROKER
How do I untag a server? I see above api for broker But that endpoint doesn’t work for me
is this something new?
n

Neha Pawar

09/16/2020, 2:04 AM
kinda new. It’s not in any release, but has been on master for a few weeks
p

Pradeep

09/16/2020, 2:04 AM
ah that endpoint doesn’t work for me, is there any other workaround?
how about if I disable the server and then rebalance, would rebalance work?
n

Neha Pawar

09/16/2020, 2:05 AM
no, it has to be untagged
there is another PUT API on the instance. Butthat is a little buggy. Trying to get an example for you
p

Pradeep

09/16/2020, 2:06 AM
cool cool thanks
otherwise just updating the controller would be good?
*as in pulling the latest code
(that’s the worst case)
n

Neha Pawar

09/16/2020, 2:08 AM
if you’re comfortable, you can directly edit the tags in Zooinspector Cluster/CONFIGS/PARTICIPANTS/Servernode
yes, pulling latest code will have the API
p

Pradeep

09/16/2020, 2:11 AM
just change to “TAG_LIST”: [] rite?
or change the tag to untagged_SERVER?
Maybe updating with latest code is the better option, I will go with that
Thanks a lot
n

Neha Pawar

09/16/2020, 2:15 AM
both of your options will work
[] or [“untagged_OFFLINE”]
message has been deleted
Copy code
curl -X PUT "<http://localhost:9000/instances/Server_10.1.10.51_7000>" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"host\": \"10.1.10.51\", \"port\": \"7000\", \"type\": \"SERVER\", \"tags\": [ \"newName_OFFLINE\", \"DefaultTenant_REALTIME\" ]}"
this is the other API i was talking about.
p

Pradeep

09/16/2020, 2:19 AM
ah yeah I see this one
n

Neha Pawar

09/16/2020, 2:20 AM
if you decide to use this one, please note that the output of GET doesn’t match input of PUT (thats the bug). The input i’ve used here is slightly different
p

Pradeep

09/16/2020, 2:21 AM
oh got it, letme try this and see
just to double confirm, server I am untagging is a realtime server, so it would be still untagged_OFFLINE?
(I could set it to “” too, but just wondering)
n

Neha Pawar

09/16/2020, 2:22 AM
you can use untagged_OFFLINE, or untagged_REALTIME, or “”, either way is fine
that’s more for cluster management. knowing what you had assigned that server for (realtime of offline) even after untagging
p

Pradeep

09/16/2020, 2:23 AM
got it, thanks trying it now
Awesome, thanks a lot it worked
👍 1