StarRocks

Updated November 24, 2026

StarRocks is a distributed SQL database for analytics, deployed on Managed Service for Kubernetes. Use it to aggregate event data, join fact and dimension tables, and serve SQL queries from reporting and BI tools.

In Shared Data mode, table data lives in Yandex Object Storage. Frontend nodes (FE) store metadata on persistent Kubernetes volumes and plan queries. Compute nodes (CN) execute queries and cache frequently accessed data on their attached volumes. You can scale the compute layer independently of object storage.

StarRocks Operator manages the FE and CN workloads. The installation form lets you configure their CPU and memory, volume sizes, CN autoscaling limits, and SQL session defaults. Connect to the FE through the MySQL protocol or use its web interface to inspect the cluster. You can require TLS for remote MySQL connections.

During initial installation, select Cluster IP, Private Load Balancer, or Public Load Balancer on the Marketplace tab. For Private Load Balancer, specify the subnet where the load balancer will get its internal IP address.

To switch an existing NLB between Private and Public, first select Cluster IP and wait for the existing load balancer to be deleted. StarRocks remains reachable from inside the Kubernetes cluster. Then select the desired type. The new NLB gets a new IP address. Access through the load balancer is interrupted while it is being created.

Deployment instructions

Before installation

  • Prepare a Managed Service for Kubernetes cluster running Kubernetes 1.23 or later with an active node group. Check that the cluster can run three frontend (FE) pods and the minimum number of compute node (CN) pods set in the form. The cluster needs persistent volumes and a metrics API for CN autoscaling.
  • Create a private Object Storage bucket. Prepare a static access key for a service account that can list, read, write, and delete objects in the bucket. Check that the cluster can reach Object Storage. Static access keys

Install from the management console

  1. Open your Managed Service for Kubernetes cluster and go to the Marketplace tab.
  2. Under Applications available for installation, select StarRocks and click Go to install.
  3. Enter an application name and select a namespace. Fill in the required fields and configure TLS and advanced settings as needed.
  4. Click Install and wait for StarRocks to appear under Installed applications. Install a Marketplace application

Required fields

Field What to enter Allowed values Default
Administrator password Password for the StarRocks root user. — —
Object Storage bucket Select the private bucket for StarRocks data. — —
Object key prefix Use a separate prefix for this installation, especially if several installations share the bucket. — data
Object Storage access key ID Enter the static access key ID for the service account that can access the selected bucket. — —
Object Storage secret access key Enter the secret part of the same static access key. — —
Storage class Storage class for persistent volumes used for FE metadata and logs and the CN cache. yc-network-ssd, yc-network-hdd yc-network-ssd
Number of vCPUs per frontend node vCPU requested per frontend (FE) pod. 2, 4, 8, 16, 32 4
Frontend node RAM Memory requested per FE pod. 4Gi, 8Gi, 16Gi, 32Gi, 64Gi, 128Gi 8Gi
Volume size for frontend node metadata Persistent metadata volume size per FE. 20Gi, 50Gi, 100Gi, 200Gi, 500Gi, 1Ti 100Gi
Frontend node service type Cluster IP is accessible from inside Kubernetes. Private Load Balancer gets an internal IP address. Public Load Balancer gets a public IP address. Cluster IP, Private Load Balancer, Public Load Balancer Cluster IP
Number of vCPUs per compute node vCPU requested per compute node (CN) pod. 2, 4, 8, 16, 32, 64 4
Compute node RAM Memory requested per CN pod. 4Gi, 8Gi, 16Gi, 32Gi, 64Gi, 128Gi, 256Gi 8Gi
Volume size for the compute node cache Persistent cache volume size per CN. 20Gi, 50Gi, 100Gi, 200Gi, 500Gi, 1Ti, 2Ti 50Gi
Minimum number of compute nodes Lower CN autoscaling limit. 1–100 3
Maximum number of compute nodes Upper CN autoscaling limit. Set it to at least the minimum. 1–100 9

Private Load Balancer subnet

If you selected Private Load Balancer, fill in Private load balancer subnet. Select the subnet in the cluster network where the load balancer will get its internal IP address. You can leave this field blank with Cluster IP and Public Load Balancer.

MySQL TLS

To require TLS for remote MySQL connections, create both resources before installation in the application’s namespace using the cluster’s ConfigMaps and Secrets tab. Include the service name clients use in the FE certificate’s SAN. Create a ConfigMap and Secret in the console

Field What to enter Allowed values Default
MySQL TLS Secret Name of the Secret in the application’s namespace. Store the FE certificate, certificate chain, and private key in JKS format under keystore.jks. Store the password shared by the keystore and its private key under password, without a trailing newline. — —
MySQL TLS CA ConfigMap Name of the ConfigMap in the same namespace. Store the trusted CA certificates in PEM format under ca.crt. — —

Fill in both fields. Leave both blank if you do not need MySQL TLS.

Advanced settings

Field What to enter Allowed values Default
FE node Java Heap, % of container memory Share of FE container memory reserved for the Java heap. 25–60 50
CN node process memory, % of container memory Overall CN process memory limit as a share of container memory. 50–90 90
CN node disk cache, % of cache disk Share of the dedicated CN disk used for the Shared Data cache. 10–85 80
SQL connections per FE node Maximum concurrent SQL connections per FE. 256–16384 4096
Query memory, % of CN node limit Total query memory pool on each CN. 50–90 90
Ingestion memory, % of CN node limit Threshold at which StarRocks begins flushing ingestion buffers to disk more aggressively. 5–50 30
Memory per query on each CN node, GiB Per-query memory limit on each CN for new SQL sessions. Use 0 to apply the overall CN limits. Up to 1024 —
Query timeout, s Query timeout for new SQL sessions. INSERT and related ingestion operations use separate limits. 1–259200 300
Spill intermediate results to disk Allows intermediate query results to spill to the CN cache disk. — —
Audit log retention, days Retention period for local FE audit logs. 1–30 7
Slow query threshold, ms Queries that exceed this threshold are written to the slow query log. 100–600000 5000

Verify the installation and connect

Under Installed applications, open StarRocks. On the cluster’s Workload tab, select Pods and check that FE and CN pods are ready in the selected namespace. The initialization job sets the root password and makes the S3 volume yc_storage the default table storage. Manage workloads in the console

For access from inside the cluster, use the kube-starrocks-fe-service FE service. The web console listens on port 8030 and MySQL listens on port 9030. To connect with mandatory TLS, configure your client with VERIFY_IDENTITY, the trusted CA, and the server name from the certificate’s SAN. Use SHOW FRONTENDS and SHOW COMPUTE NODES to check node status, and DESC STORAGE VOLUME yc_storage to check storage.

For Private Load Balancer, wait for the FE service to get an internal IP address and connect from a network that can reach the selected subnet. For Public Load Balancer, wait for a public IP address. For either type, allow access to the assigned web console and MySQL NodePorts from trusted sources and allow standard NLB health checks. Configure access through an NLB

To switch between Private and Public Load Balancer, first select Cluster IP and wait for the existing load balancer to be deleted. Then select the desired type. The new load balancer gets a new IP address. Access through the NLB is interrupted during replacement. StarRocks remains reachable from inside the cluster.

To access the web console over HTTPS through Gwin, point an HTTPRoute to the FE service on port 8030. Configure the HTTPS certificate on the Gateway. Configure Gwin and Gateway API

Billing type
Free
Type
Kubernetes® Application
Category
Databases
Analytics
Publisher
Yandex Cloud
Use cases

Use cases

  • Sales analytics. Join orders with customer or product dimensions and calculate revenue by region, channel, and category.
  • Event analytics. Aggregate application or website events, count distinct users, and compare activity across time periods.
  • BI reporting. Connect a BI tool over the MySQL protocol and run scheduled or ad hoc SQL queries on your reporting tables.

Daily sales by category

In a new example database, create a table, add three sample orders, and calculate daily order counts and revenue by category.

CREATE DATABASE starrocks_sales_demo;
USE starrocks_sales_demo;

CREATE TABLE orders (
  order_id BIGINT NOT NULL,
  order_date DATE NOT NULL,
  category VARCHAR(32) NOT NULL,
  amount DECIMAL(12, 2) NOT NULL
) ENGINE=OLAP
DUPLICATE KEY (order_id)
DISTRIBUTED BY HASH (order_id) BUCKETS 3
PROPERTIES ("storage_volume" = "yc_storage");

INSERT INTO orders VALUES
  (1, '2026-06-01', 'electronics', 199.90),
  (2, '2026-06-01', 'electronics', 49.90),
  (3, '2026-06-01', 'books', 24.50);

SELECT order_date, category, COUNT(*) AS orders, SUM(amount) AS revenue
FROM orders
GROUP BY order_date, category
ORDER BY order_date, revenue DESC;
Technical support

Contact technical support for help with Yandex Cloud services. Yandex Cloud technical support.

When reporting an engine issue, include the StarRocks version and steps to reproduce it. StarRocks issue tracker.

Product composition
Helm chartVersion
Pull-command
Documentation
yandex-cloud/starrocks-k8s/charts/kube-starrocks1.11.8+14Open
Docker imageVersion
Pull-command
yandex-cloud/starrocks-k8s/operatorv1.11.8
yandex-cloud/starrocks-k8s/fe4.1.7
yandex-cloud/starrocks-k8s/cn4.1.7
Product IDs
Product:
f2eb7hg6hcuthnkku26d
Terms
By using this product you agree to the Yandex Cloud Marketplace Terms of Service
Billing type
Free
Type
Kubernetes® Application
Category
Databases
Analytics
Publisher
Yandex Cloud