tiwata
08/12/2026, 12:59 AMRocky
08/12/2026, 1:00 AMtiwata
08/12/2026, 1:17 AMRocky
08/12/2026, 1:18 AMulimits, enabling huge pages, and adjusting kernel network parameters. Fargate restricts access to these settings.
* Storage Performance: Backend (BE) nodes require high-throughput, low-latency disk access (ideally local NVMe SSDs). Fargate's ephemeral storage and EBS integration are typically slower and less configurable than what you can achieve with EC2 instance types like the I4i family.
2. EKS + EC2 (Recommended Middle Ground)
The most common production setup in the community is EKS using EC2 Managed Node Groups. This gives you the best of both worlds:
* Management: You use the StarRocks Kubernetes Operator, which handles the lifecycle of the cluster (deploying FEs and BEs, managing upgrades).
* Performance: You can select specific EC2 instance types (like c6i or i4i) that support AVX2 and local SSDs.
* Automation: The Operator makes scaling easier than manual EC2 management. For example, when you scale out the BE count in your YAML, the Operator handles the registration of new nodes automatically.
3. Scaling Behavior: BE vs. CN
When considering scaling out in "finer increments," it is important to distinguish between node types:
* Backend Nodes (BE): These store data. Scaling out is easy, but scaling in is slow because data must be "decommissioned" (rebalanced to other nodes) to prevent data loss.
* Compute Nodes (CN): In StarRocks' Shared-Data mode, you can use stateless Compute Nodes. These are perfect for the "EKS + Auto Scaling" approach. You can use the Horizontal Pod Autoscaler (HPA) to add/remove CNs based on CPU/RAM usage. Since they don't store local data, they can scale up and down in minutes.
Recommendation
* For Production: Use EKS with EC2 Managed Node Groups. It allows the StarRocks Operator to handle the "constant fluctuation" you mentioned while keeping the performance tuning benefits of EC2.
* Avoid Fargate: Unless you are running a very small, non-performance-critical development instance.
* Scaling Strategy: Use a baseline of BE nodes for your core data storage and use CN nodes for the "fine increment" scaling to handle spikes in query demand.
References
• deployment/sr_operator.md
• deployment/deployment_prerequisites.md
• administration/management/Scale_up_down.md
• deployment/shared_data/feature-support-shared-data.md
References
• deployment/sr_operator.md
• administration/management/Scale_up_down.md
• administration/stargo.md