参看官方文章:https://docs.starrocks.io/zh/docs/3.1/administration/management/Scale_up_down/
关starrocks集群的部署,参看往期文章:https://www.madbull.site/?p=1352
扩容 FE 只需要两个步骤:
1、在现有集群中,添加 新加入的 FE 节点。
命令:ALTER SYSTEM ADD FOLLOWER "xx.xx.xx.xx:nnnn"
。
具体参看文章:https://www.madbull.site/?p=1352 的 2.3 章节。
2、启动 FE 节点,用 --helpe
r 参数,自动加入现有集群。
启动命令:./fe/bin/start_fe.sh --helper xx.xx.xx.xx:nnnn --daemon
。
具体参看文章:https://www.madbull.site/?p=1352 的 2.1 和 2.4 章节。
缩容 FE 只需要删除节点即可:
ALTER SYSTEM DROP FOLLOWER "xx.xx.xx.xx:nnnn"
ALTER SYSTEM DROP OBSERVER "xx.xx.xx.xx:nnnn"
发表回复