Tuning Hive Virtual Warehouses on private clouds
This topic describes how to tune Hive Virtual Warehouses in Cloudera Data Warehouse (CDW) Private Cloud.
When you tune Hive Virtual Warehouses, you set the auto-suspend timeout, the minimum and maximum number of nodes for your virtual cluster, when your cluster should scale up, and when it should scale down.
- Log in to the CDP web interface and navigate to the Data Warehouse service.
In the Data Warehouse service, click Overview in the left
In the Overview page under Virtual Warehouses, click
against the required virtual warehouse and select Edit.
Click the SIZING AND SCALING tab to view the properties that you
can adjust to tune auto-scaling for your data warehouse:
Set the AutoSuspend Timeout property under Auto scale, which
determines how many seconds the warehouse cluster is idle before it suspends
This setting helps to ensure performance is not impacted by having idle resources.
Set the minimum and maximum number of nodes that the cluster can contain:
Use the minimum number of nodes setting to ensure that your workloads always have resources and use the maximum number of nodes setting to contain having too many idle resources. Decide the minimum and maximum number of nodes based on your workloads similarly to how you determine node counts for your on-premises clusters. Consider the number of concurrent queries, the complexity of queries, and the volume of queries in your workloads to determine the appropriate number of nodes to set on each Virtual Warehouse instance.
Choose when your cluster auto-scales up based on the WAIT
TIME setting, which sets how long queries wait in the queue to run
before the cluster auto-scales up. For example, if WaitTime
Seconds is set to 10, then when executing queries
are waiting in the queue for 10 seconds, the cluster auto-scales up to meet query
Select Query Isolation if you have scan-heavy,
data-intensive queries in your workloads.
Query Isolation enables your Virtual Warehouse to determine, based on the value you set for the
hive.query.isolation.scan.size.thresholdconfiguration parameter, whether to spawn dedicated nodes to run scan-heavy, data-intensive queries.
You can set this threshold parameter in the Virtual Warehouse details page for the warehouse:
- In the Data Warehouse service UI, click Virtual Warehouses in the left navigation pane.
- From the list of warehouses, click the Virtual Warehouse you want to configure this parameter for.
- In the Virtual Warehouse details page, click .
- Select hive-site from the Configuration files drop-down list and type isolation in the search text box to locate the parameter.
- In the VALUE text box for the
hive.query.isolation.scan.size.thresholdparameter, enter the amount of data for your threshold in storage units. For example, 400GB.
- Click APPLY to save your settings.
After you enable Query Isolation, two more configuration options appear:
- Max Concurrent Isolated Queries: Sets the maximum number of isolated queries that can run concurrently in their own dedicated executor nodes. Select this number based on the scan size of the data for your average scan-heavy, data-intensive query.
- Max Nodes Per Isolated Query: Sets how many executor nodes can be spawned for each isolated query.
- Click APPLY.
- Set the AutoSuspend Timeout property under Auto scale, which determines how many seconds the warehouse cluster is idle before it suspends itself: