Guillaume Bienkowski
06/11/2026, 1:08 PMRocky
06/11/2026, 1:08 PMsql
ALTER SYSTEM CREATE IMAGE;
Wait for the image to synchronize to all Follower FEs (check fe.log for "push image... successful" or verify via SHOW FRONTENDS).
2. Disable Tablet Balancing: To prevent instability during rolling restarts:
sql
ADMIN SET FRONTEND CONFIG ("tablet_sched_max_scheduling_tablets" = "0");
ADMIN SET FRONTEND CONFIG ("tablet_sched_max_balancing_tablets" = "0");
ADMIN SET FRONTEND CONFIG ("disable_balance" = "true");
──────────
3. Upgrade Procedure (Using Operator)
The StarRocks Operator handles the rolling upgrade. You must upgrade BEs/CNs first, followed by FEs.
A. Upgrade BEs (and CNs if applicable)
Apply the new image to the BE spec in your StarRocksCluster resource:
bash
kubectl patch starrockscluster <your-cluster-name> --type='merge' \
-p '{"spec":{"starRocksBeSpec":{"image":"starrocks/be-ubuntu:4.0.11"}}}'
Wait for all BE pods to restart and reach the Running state.
B. Upgrade FEs
Update the FE image. The operator will upgrade Follower FEs first and the Leader FE last:
bash
kubectl patch starrockscluster <your-cluster-name> --type='merge' \
-p '{"spec":{"starRocksFeSpec":{"image":"starrocks/fe-ubuntu:4.0.11"}}}'
C. Verify and Repeat
1. Check the status of the cluster and pods:
bash
kubectl get pods
kubectl get starrockscluster
2. Once 4.0.11 is stable, repeat the same steps (Patching $\rightarrow$ BEs $\rightarrow$ FEs) to move to the 4.1.x version.
──────────
4. Post-Upgrade
After the upgrade is complete and verified, re-enable tablet balancing:
sql
ADMIN SET FRONTEND CONFIG ("tablet_sched_max_scheduling_tablets" = "2000"); -- or your previous value
ADMIN SET FRONTEND CONFIG ("tablet_sched_max_balancing_tablets" = "100"); -- or your previous value
ADMIN SET FRONTEND CONFIG ("disable_balance" = "false");
Note: Ensure your StarRocks Operator is updated to a version that supports 4.x features (ideally v1.9.x or later) before starting the cluster upgrade.
References
• deployment/sr_operator.md
• deployment/upgrade.md