Asaf Sneh
03/17/2026, 9:17 AMLOAD LABEL org_id_to_name_load_test_label_2
(
DATA INFILE("<gs://data-ads-core-forge-prd/bigquery_exports/unity-data-ads-core-prd/druid_lookups/org_id_to_name/*>")
INTO TABLE org_id_to_name_load_test
FORMAT AS "json"
)
WITH BROKER
(
"gcp.gcs.use_compute_engine_service_account" = "true"
)
PROPERTIES
(
"timeout" = "300"
);Rocky
03/17/2026, 9:17 AMQUEUEING state. This state indicates that the load job has been created successfully but is waiting for a scheduling slot to start execution.
Even for a tiny file (81.6 KB), a job can remain in QUEUEING if the cluster's concurrency limits are reached or if there's a scheduling bottleneck. Here is how you can debug and resolve this:
1. Check Concurrent Load Jobs
StarRocks has a limit on how many Broker Load jobs can run at the same time. The default is often as low as 5.
Check how many jobs are currently in the LOADING state:
sql
SHOW LOAD WHERE STATE = 'LOADING';
If you have 5 or more jobs running, your new job will wait in the queue. You can increase this limit by modifying the FE configuration (requires admin privileges):
sql
ADMIN SET FRONTEND CONFIG ("max_broker_load_job_concurrency" = "20");
2. Check Backend (BE) Status
If no Backends are available or "Alive," the FE cannot schedule the task.
sql
SHOW BACKENDS;
Ensure that the Alive column is true for your nodes. If all BEs are down, jobs will stay in QUEUEING or PENDING.
3. Check for Transaction Limits
Each database has a limit on concurrent transactions (max_running_txn_num_per_db, default is 1000). While unlikely to be hit with one file, if you have many small concurrent loads or unfinished transactions, it could cause delays.
4. Check FE Leader Status
Only the Leader FE handles load scheduling. Ensure you are connected to the Leader or that the cluster has a healthy Leader:
sql
SHOW FRONTENDS;
Check the IsMaster (or Role) column.
5. Inspect the Load Job Details
Even though it's queueing, sometimes the Etc or ErrorMsg column in SHOW LOAD provides hints if it attempted to start and failed back into the queue (though this usually leads to CANCELLED).
sql
SHOW LOAD WHERE LABEL = 'org_id_to_name_load_test_label_2'\G
6. Resource Group Constraints
If you are using Resource Groups, the load might be queued because the resource group has reached its CPU or concurrency limit. You can check resource usage with:
sql
SHOW USAGE RESOURCE GROUPS;
7. Troubleshooting the "Broker" Syntax
Since StarRocks v2.4, you don't actually need a separate Broker process to load from GCS; the BEs can talk to GCS directly. However, the WITH BROKER syntax is still used.
* Note: If you haven't defined a "broker name" in your cluster configuration, the syntax WITH BROKER ("key"="value") might behave differently depending on your version. Try specifying a "dummy" name if you aren't using a broker process, or ensure your storage integration is set up.
* Refined Syntax Check: Ensure your GCS path is correct and accessible. For GCS, sometimes the gs:// prefix is handled better when specific GCS properties are passed. Your properties look correct for a GCE Service Account.
Summary Checklist:
1. Run SHOW LOAD WHERE STATE = 'LOADING' to see if the concurrency limit is hit.
2. Run SHOW BACKENDS to ensure BEs are healthy.
3. If the queue persists and you have resources, try increasing max_broker_load_job_concurrency.
4. Check the FE log (fe.log) for any "scheduling" or "pending" related warnings.
If the job stays in QUEUEING for more than a few minutes with no other loads running, it usually points to the BEs being unavailable or a configuration limit being set too low.
References
• sql-reference/sql-statements/loading_unloading/BROKER_LOAD.md
• administration/management/FE_configuration.md
• loading/BrokerLoad.md
• administration/management/resource_management/query_queues.mdAsaf Sneh
03/17/2026, 9:22 AMRocky
03/17/2026, 9:22 AMmin(Amount of data / min_bytes_per_broker_scanner, Number of BE or CN nodes)
* If your cluster has both BEs and CNs, StarRocks can utilize both to parallelize the data processing.
Summary Table
Feature | Backend (BE) | Compute Node (CN)
Primary Role | Storage + Compute | Compute Only
State | Stateful (holds data) | Stateless
Broker Load Action | Parses data & writes to local disk | Parses data & sends to BE or Cloud Storage
Elasticity | Hard to scale quickly | Easy to scale for load bursts
Architecture | Shared-nothing | Shared-data (or helper in Shared-nothing)
Recommendation: If you have a high-frequency or high-volume loading requirement that fluctuates, using Compute Nodes allows you to scale your ingestion capacity independently of your storage capacity.
References
• sql-reference/sql-statements/loading_unloading/BROKER_LOAD.md
• loading/BrokerLoad.md
• sql-reference/sql-statements/cluster-management/nodes_processes/SHOW_BACKENDS.md
• administration/management/monitoring/metrics.md
• quick_start/shared-data.md