Free audit

View Audit Scope

StarRocks on Kubernetes

StarRocks on Kubernetes

The StarRocks operator, or a Helm chart, deploys the FE, BE, and CN nodes. A load balancer sits in front of the FE. The proposal names the node sizes and the storage class.

JusDB checks the custom resource, the Helm values, and a rolling upgrade in a rehearsed window before the cluster takes query traffic.

Executive Direct Answer · StarRocks on Kubernetes Engineering Heuristic

JusDB configures the StarRocks operator, the Helm values, and the FE, BE, and CN storage. Rolling upgrades run in a rehearsed window.

Availability: Defined in Your Plan·Operator: Official StarRocks Operator·Storage: Local NVMe & S3 Tiering·Failover: Automated FE Leader Election·ISO 27001 & SOC 2 Type II: aligned, certification in progress
Sub-Second
Analytics
MPP
Engine
MySQL
Compatible

StarRocks operator

The StarRocks operator creates the FE, BE, and CN pods and replaces a failed node from the custom resource. JusDB reviews that resource before the cluster takes traffic.

StarRocks Helm chart

The Helm chart is the other install path. JusDB sets the values for CPU, memory, storage, and the FE service, then checks a rollback of those values.

Comprehensive StarRocks on Kubernetes Services

We handle StarRocks on Kubernetes end to end, from operator deployment to production monitoring, for cloud-native analytics environments.

StarRocks Operator Deployment

StarRocks Operator setup and configuration for automated cluster lifecycle management on Kubernetes

  • StarRocks Operator installation and CRD setup
  • Custom Resource configuration for FE/BE/CN
  • RBAC and namespace configuration
  • Operator upgrade and version management

Helm Chart Management

Chart customization, values tuning, and upgrade strategies for reproducible StarRocks deployments

  • Helm chart customization and templating
  • Values file tuning for production workloads
  • Chart version upgrade strategies
  • GitOps integration with ArgoCD / Flux

Cluster Management on K8s

FE, BE, and CN node management with topology-aware scheduling and resource optimization

  • FE node HA with leader election
  • BE node scaling and data rebalancing
  • CN compute node auto-scaling
  • Anti-affinity and topology spread

Storage & Persistence

PVCs, StorageClasses, CSI drivers, and high-IOPS volumes for StarRocks data on Kubernetes

  • PVC and StorageClass configuration
  • CSI driver setup (EBS, PD, Ceph)
  • Volume expansion and snapshots
  • High-IOPS storage for analytical workloads

Monitoring & Observability

Prometheus, Grafana, and built-in metrics for full observability of StarRocks clusters on K8s

  • Prometheus ServiceMonitor setup
  • Grafana dashboard provisioning
  • StarRocks built-in metrics integration
  • Alertmanager rules and routing

Backup & Disaster Recovery

Automated backups to S3/HDFS, volume snapshots, and cross-region restore for data protection

  • StarRocks BACKUP/RESTORE automation
  • S3-compatible snapshot storage
  • Scheduled and on-demand backups
  • Cross-region restore testing

StarRocks Architecture on Kubernetes

StarRocks has a three-tier architecture. Each tier maps onto Kubernetes primitives — StatefulSets, PVCs, and Services — tuned for performance and reliability.

Query Planning & Metadata

FE Nodes (Frontend)

SQL parsing, query planning, and metadata management

SQL parsing and query optimization
Metadata management and catalog
Leader election for HA
MySQL protocol compatibility
Query scheduling and coordination
User authentication and authorization
Persistent storage for metadata
Deployed as StatefulSet with 3+ replicas

Role: Query coordinator and metadata store

Data Storage & Execution

BE Nodes (Backend)

Data storage, indexing, and vectorized query execution

Columnar data storage engine
Vectorized query execution
Local data caching and indexing
Data ingestion and compaction
Tablet replica management
MPP distributed execution
High-IOPS persistent volumes
Deployed as StatefulSet with PVCs

Role: Data storage and query execution

Elastic Compute

CN Nodes (Compute)

Stateless compute workers for elastic query processing

Stateless compute-only workers
Elastic horizontal scaling
No persistent storage required
Query execution offloading
External table query processing
Data lake federation compute
HPA-based auto-scaling
Operator-managed StatefulSet with HPA-driven elastic scaling

Role: Elastic compute for query bursts

Our StarRocks on Kubernetes Implementation Process

A proven process for deploying production-ready StarRocks on Kubernetes, with testing and validation throughout.

01

Assessment & Planning

Evaluate your analytical workload requirements, data volumes, query patterns, and Kubernetes environment. Select the right node topology, storage backend, and resource allocation for FE/BE/CN nodes.

02

Operator & Cluster Setup

Deploy the StarRocks Operator via Helm. Configure custom resources for FE, BE, and CN nodes, with the right StatefulSets, persistent volumes, networking, and security contexts for production readiness.

03

Data Loading & Validation

Load data using Stream Load, Broker Load, or Routine Load. Validate query performance, test failover scenarios, and benchmark analytical workloads to ensure sub-second response times.

04

Production & Operations

Go live with full monitoring, alerting, automated backups, and runbooks. Provide team training on operator management, CN auto-scaling, day-2 operations, and ongoing support, with 24x7 on-call available.

How JusDB DBRE Kubernetes Engineering compares to alternative paths.

Operating stateful StarRocks clusters on Kubernetes without dedicated DBRE operator management risks FE Raft quorum loss, persistent volume CSI attachment deadlocks, and Compute Node OOM thrashing. Here is how our cloud-native engineering compares across core evaluation vectors:

Evaluation Vector
JusDB DBRE
In-House DBALegacy AgencyDeveloper Generalist
StarRocks Operator CRD Architecture (FE, BE, CN)Production StarRocksCluster CRD architecture isolating Frontend (FE) metadata leader quorums from Backend (BE) storage and Compute Node (CN) auto-scaling pools with reconciled operator lifecycle automation.Basic community Helm chart deployments without operator reconciliation, requiring manual pod-level intervention during topology changes or node failures.Generic Kubernetes StatefulSet and Deployment manifests lacking StarRocks lifecycle awareness, causing broken cluster membership registration.Single monolithic container deployments running FE and BE in one pod without CRD abstractions or horizontal compute scaling.
FE Quorum Consensus & Raft Journal Durability3-node or 5-node dedicated FE cluster enforcing bdbje Raft leader consensus, isolated persistent metadata journals, automated snapshot sync, and zero election deadlock.Single-replica FE or colocated FE on BE storage nodes, where query memory spikes cause FE OOMs and catastrophic metadata quorum loss.FE deployed across unsynchronized ephemeral disks; pod rescheduling causes bdbje journal divergence and total cluster metadata corruption.No quorum architecture; single FE pod failure takes down all SQL parsing, catalog resolution, and cluster access.
Local NVMe vs StorageClass Volume LifecycleTiered storage architecture configuring local NVMe persistent volumes for BE tablet data and CN cache, paired with automated S3/GCS object storage cold tiering.Standard network-attached block storage (EBS gp3) without cache tiering, triggering disk IOPS throttling and massive query latency spikes.Shared NFS or network mounts causing filesystem locks, tablet corruptions, and background compaction failures.Ephemeral hostPath storage without volume snapshots; node replacement results in permanent unrecoverable tablet loss.
Rolling Stateful UpgradesOrchestrated pod-by-pod rolling upgrade sequence (CN first, then BE tablet balance verification, followed by FE follower-to-leader failover), draining queries before each pod restart.Uncoordinated StatefulSet restart killing multiple BE nodes simultaneously, triggering tablet under-replication storms and read outages.Demands full offline maintenance windows, causing hours of analytical platform downtime during minor version upgrades.Direct container image tag edits causing crash-loop backoffs, metadata version mismatches, and broken cluster communication.
Multi-AZ TopologySpread & Anti-Affinity SchedulingStrict podAntiAffinity and topologySpreadConstraints distributing FE, BE, and CN pods across multiple availability zones and worker nodes with PodDisruptionBudgets (maxUnavailable=1).Missing topology spread rules; Kubernetes scheduler stacks all FE replicas onto a single worker node that causes complete outage on node drain.No PodDisruptionBudgets; cluster autoscaler drains nodes indiscriminately, terminating active query execution and tablet compaction.Default scheduler without affinity or taint tolerances; analytics pods compete with unrelated microservices on overloaded nodes.
Cloud-Native Prometheus & Grafana Telemetry ExportersNative Prometheus ServiceMonitor scraping FE/BE/CN metrics (tablet compaction, query latency, RPC queues, memory pools) with custom Grafana dashboards and Sev-1 alerting.Standard node-exporter metrics only; completely blind to StarRocks internal tablet compaction lag, BE memory saturation, or slow query spikes.Generic container APM agents injected into pods, consuming substantial CPU overhead without exposing engine-specific metrics.No monitoring configured; relies on user Slack complaints when queries fail or connection limits are exhausted.

Critical StarRocks on Kubernetes Risks We Eliminate

Operating MPP columnar database clusters inside containerized Kubernetes environments introduces quorum consensus, CSI storage attachment, and memory exhaustion failure vectors. We engineer resilience into every layer to eliminate these production risks:

P1 Critical

FE Raft Quorum Loss During Rapid Unscheduled Node Drain

During automated Kubernetes cluster autoscaler node consolidation or AMI upgrades, worker nodes hosting Frontend (FE) pods are drained simultaneously without respect for bdbje Raft leader consensus. Quorum drops below majority, halting SQL metadata resolution, query planning, and cluster management cluster-wide.

JusDB Engineering Mitigation:

JusDB configures strict PodDisruptionBudgets (maxUnavailable=1 for FE), enforces multi-AZ topologySpreadConstraints with podAntiAffinity, and scripts graceful leader handover hooks before allowing node cordon and drain cycles.

P1 Critical

Kubernetes CSI Volume Attachment Deadlock on BE StatefulSets

When Backend (BE) pods reschedule following worker node termination, cloud CSI drivers (such as AWS EBS or GCP Persistent Disk) frequently encounter Multi-Attach error deadlocks because previous node detach calls fail to release locks. BE pods remain stuck in ContainerCreating indefinitely, causing tablet under-replication.

JusDB Engineering Mitigation:

JusDB provisions local NVMe storage classes via DirectPV or tuned CSI VolumeAttachment timeout controllers, deploys automated stale-attachment reconcilers, and verifies volume detachment health in pre-flight rolling upgrade drills.

P2 High

Compute Node (CN) OOM Eviction Thrash Under Heavy Ad-Hoc Analytics

Massive ad-hoc queries with unconstrained hash joins or large sort buffers exceed container cgroup memory limits on stateless Compute Nodes (CN). The Linux kernel OOM killer terminates CN pods abruptly, triggering cascading query failures across remaining workers and node thrashing.

JusDB Engineering Mitigation:

JusDB sets precise query_mem_limit and load_process_max_memory_limit_percent parameters, enables StarRocks memory tracker circuit breakers with spill-to-disk on S3, and tunes Kubernetes HPA metrics with smoothed cooldown windows.

Telemetry Runbooks · Non-Blocking Kubernetes Diagnostics

Our DBREs execute non-blocking diagnostic commands across Kubernetes CRD controllers and internal StarRocks engine tables to audit cluster topology, pod distribution, and node health:

Kubernetes: StarRocksCluster CRD & Pod Distribution Status Audit
kubectl · Cluster Topology

Audits custom resource controller status, FE/BE/CN pod distribution across Kubernetes worker nodes, node IP assignments, and pod phase conditions.

# Audit StarRocksCluster CRD reconciliation and wide pod topology
kubectl get starrockscluster,pods -n starrocks -o wide
StarRocks: Backend & Compute Node Alive State & Storage Usage Telemetry
SQL · Node Telemetry

Inspects internal cluster membership, verifying Alive status, heartbeat latency, tablet counts, disk capacity, and memory usage for all BE and CN daemons.

-- Inspect Backend worker node health, disk capacity, and tablet counts
SHOW BACKENDS\G

-- Inspect stateless Compute Node (CN) worker health and heartbeat latency
SHOW COMPUTE NODES\G

Questions about StarRocks on Kubernetes

Common questions about running StarRocks on Kubernetes in production environments.

The recommended approach is the StarRocks Operator for Kubernetes. It deploys and manages StarRocks clusters, including FE (Frontend), BE (Backend), and CN (Compute Node) components. The operator also manages StatefulSets, persistent volumes, and service endpoints. The official Helm chart is a simpler alternative. For production workloads the operator is preferred, because it handles rolling upgrades, scaling, and self-healing automatically.

StarRocks on Kubernetes deploys three node types as separate StatefulSets. FE (Frontend) nodes handle SQL parsing, query planning, and metadata management. BE (Backend) nodes store data and run queries on a vectorized execution engine. CN (Compute Nodes) are stateless workers that add elastic compute for query execution without storing data. The StarRocks Operator manages all three, handling service discovery, configuration, and lifecycle management inside the Kubernetes cluster.

Yes. StarRocks is designed for sub-second analytics on large datasets. Its MPP (Massively Parallel Processing) architecture scales horizontally on Kubernetes. BE nodes spread query execution across the cluster, and CN compute nodes can auto-scale with query load. With proper resource allocation, storage configuration, and network tuning, StarRocks on Kubernetes delivers the same low-latency performance as bare-metal deployments while providing cloud-native elasticity.

StarRocks BE nodes use PersistentVolumeClaims (PVCs) backed by StorageClasses. Each BE pod gets its own PVC that survives pod restarts and rescheduling. FE nodes also need persistent storage for metadata. CN compute nodes are stateless and need no persistent storage, which makes them ideal for elastic scaling. CSI drivers provide the underlying block storage: EBS, Persistent Disk, or Azure Disk in the cloud, and Ceph or Portworx on-prem. Choose one with the IOPS and throughput that analytical workloads need.

StarRocks has built-in BACKUP and RESTORE SQL commands. They write snapshots to S3-compatible object storage, HDFS, or other remote storage backends. On Kubernetes, you can automate them with CronJobs or operator-managed schedules. Volume snapshots through CSI drivers are a second option for BE data volumes. We set backup schedules and retention policies, then test restore procedures regularly so your RPO and RTO targets are met.

StarRocks on Kubernetes supports scaling at multiple levels. CN (Compute Nodes) are stateless, so Kubernetes HPA can scale them out quickly on CPU or memory utilization. That makes them ideal for query load spikes. BE nodes can also scale by adding replicas, though that involves data rebalancing. The StarRocks Operator simplifies scaling: you update replica counts in the custom resource. Vertical Pod Autoscaler (VPA) can adjust CPU and memory resources for FE and BE nodes based on usage patterns.

Ready to Run StarRocks on Kubernetes?

The scoping call covers the StarRocks operator, the Helm chart, and the FE, BE, and CN layout.

Related StarRocks Services

Explore more ways our StarRocks experts can help with your database infrastructure.