JD Baudean
10/15/2025, 2:17 PMJD Baudean
10/17/2025, 8:20 PMJD Baudean
10/20/2025, 3:29 PMRobert Raharjo
10/20/2025, 8:49 PMJD Baudean
10/20/2025, 9:31 PMbehavior: # The scaling behavior is customized according to business scenarios, helping you achieve rapid or slow scaling or disable scaling.
scaleUp:
policies:
- type: Pods
value: 1
periodSeconds: 10
scaleDown:
selectPolicy: Disabled
My CNs will not scale in until I add something like this
scaleDown:
selectPolicy: Min
stabilizationWindowSeconds: 300
policies:
- type: Pods
value: 1
periodSeconds: 300
That works, but it doesn't always remove the CN from starrocks itself. Sometimes it cleans the old CN up fine, other times I'll still see the CN in the UI under compute_nodes (or when running a similar DB query) but it will show the node with an Error message like below, the only way to clear that out is to run the sql ALTER DB DROP COMPUTE.... command
java.net.UnknownHostException: kube-starrocks-cn-10.kube-starrocks-cn-search.kube-starrocks.svc.cluster.localJD Baudean
10/20/2025, 10:07 PMkubectl scale statefulset
For example if I have 15 CNs, starting with kube-starrocks-cn-0 to kube-starrocks-cn-14 and I remove one by changing the replicas from 15 to 14, the kube-starrocks-cn-14 pod is terminated, but looking at the compute nodes in the UI kube-starrocks-cn-9 is removed, and kube-starrocks-cn-14 is still in the UI with the java connection error.
The same thing happens as I continue to scale down, it'll terminate pod cn-13 but remove cn-8 from starrocks itself. If I start with 10 or less nodes, with cn-9 being the latest, everything works fine.JD Baudean
10/20/2025, 10:22 PMJD Baudean
10/20/2025, 10:23 PMRay Yan
10/20/2025, 10:57 PMRay Yan
10/20/2025, 11:02 PMJD Baudean
10/21/2025, 1:45 PMRay Yan
10/21/2025, 4:17 PMJD Baudean
10/21/2025, 4:52 PMRay Yan
10/21/2025, 5:41 PMRay Yan
10/22/2025, 6:18 PM