<@U0A71G31CDV> is it true that shared data starroc...
# questions-and-troubleshooting
d
@Rocky is it true that shared data starrocks has multi warehouse feature which can be used to isolate compute nodes based on warehouses?
r
{thought The user's question asks if StarRocks shared-data has a multi-warehouse feature to isolate compute nodes. My search results confirm: 1. StarRocks v3.3 introduces the Warehouse concept for shared-data clusters. 2. A Warehouse is a logical group of compute nodes (CNs). 3. It provides isolation between different workloads (e.g., ETL vs. Query). 4. Multiple warehouses can query the same data in shared-data mode because the data is in central object storage. 5. Key commands found:
SHOW COMPUTE NODES
(returns
WarehouseName
),
current_warehouse()
, and
SET WAREHOUSE
. 6. Based on general knowledge and search results (like Source 1.1.4 and 1.2.3), there are commands like
CREATE WAREHOUSE
. I have sufficient information to answer "Yes" and provide some details.Yes, it is true. StarRocks introduced the Multi-Warehouse (also referred to as Compute Groups) feature in v3.3 for its shared-data (storage-compute separation) architecture. This feature allows you to logically group Compute Nodes (CNs) into independent warehouses to achieve physical compute isolation while querying the same underlying data in shared storage (S3, HDFS, etc.). Key Capabilities of Multi-Warehouse: * Workload Isolation: You can dedicate specific warehouses to different workloads. For example, you can create one warehouse for high-priority BI dashboards and another for heavy ETL/loading tasks. This ensures that a resource-intensive background job does not impact query latency for end users. * Independent Scaling: Each warehouse can be scaled up or down independently based on its specific demand without affecting others. * Ease of Management: Since compute nodes in this architecture are stateless, warehouses can be created, suspended, or resumed quickly. Common SQL Commands: *
CREATE WAREHOUSE <name>
: Create a new warehouse. *
SET WAREHOUSE <name>
: Switch the current session to use a specific warehouse. *
SHOW COMPUTE NODES
: View which warehouse each CN belongs to (via the
WarehouseName
column). *
current_warehouse()
: A utility function to see which warehouse is active for your current session. This feature is a core component of StarRocks' evolution into a cloud-native data warehouse, providing a multi-tenant experience similar to Snowflake. For more details, you can refer to the official StarRocks v3.3 release notes or the Warehouse management documentation. References • sql-reference/sql-statements/cluster-management/resource_group/CREATE_RESOURCE_GROUP.md • sql-reference/sql-statements/Database/CREATE_DATABASE.md • sql-reference/sql-statements/materialized_view/CREATE_MATERIALIZED_VIEW.md
е
not in opensource version
👍 1
d
Got it, thanks a lot !