Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (31 sloc) 4.13 KB

Analyzing Workload Performance

You can get a detailed view of your workload's performance by looking at the Workload Execution Breakdown chart in the console. We build the chart with data provided by the CloudWatch QueryRuntimeBreakdown metric. With this chart, you can see how much time your queries spend in the various processing stages, such as waiting and planning.

The Workload Execution Breakdown chart isn't shown for single-node clusters.

The following list of metrics describes the various processing stages:

  • QueryPlanning: Time spent parsing and optimizing SQL statements.
  • QueryWaiting: Time spent waiting in the Workload Management (WLM) queue.
  • QueryExecutingRead: Time spent running read queries.
  • QueryExecutingInsert: Time spent running insert queries.
  • QueryExecutingDelete: Time spent running delete queries.
  • QueryExecutingUpdate: Time spent running update queries.
  • QueryExecutingCtas: Time spent running CREATE TABLE AS queries.
  • QueryExecutingUnload: Time spent running unload queries.
  • QueryExecutingCopy: Time spent running copy queries.

For example, the following graph in the Amazon Redshift console shows the amount of time that queries have spent in the plan, wait, read, and write stages. You can combine the findings from this graph with other metrics for further analysis. In some cases, your graph might show that queries with a short duration (as measured by the QueryDuration metric) are spending a long time in the wait stage. In these cases, you can increase the WLM concurrency rate for a particular queue to increase throughput.


The y-axis in the diagram is cumulative for all sessions running during the selected time period. The following diagram illustrates how Amazon Redshift aggregates query processing for concurrent sessions.


Example Analysis with the Workload Execution Breakdown Chart

The following diagrams illustrate how you can use the Workload Execution Breakdown chart to optimize your cluster's performance. In the first example chart, you can see that a majority of the query time was during the QueryWaiting stage. This effect was due to a low WLM concurrency value.


The following chart illustrates the query runtime breakdown after adjusting the concurrency to a higher value. In the updated chart, you can see that the majority of time usage has switched from the QueryWaiting stage to the QueryExecutingRead and QueryPlanning stages. In this case, more overall time is spent in the planning phase because more queries are now running during the time window after adjusting concurrency. You can check the number of queries running during a specific time period with the WLMQueriesCompletedPerSecond metric.


These charts demonstrate how changing your cluster's settings affect the amount of time that queries spend in the various stages. In the case preceding, queries initially spent a relatively long time waiting because the concurrency setting was low. After increasing concurrency, more queries are processed in parallel, thus decreasing the wait time and increasing query throughput.

Viewing the Workload Breakdown Chart

You can view the workload breakdown chart in the console.

To view the Workload Execution Breakdown Chart

  1. Sign in to the AWS Management Console and open the Amazon Redshift console at

  2. Choose Clusters in the navigation pane.

  3. Choose the cluster that you want to analyze.

  4. Choose the Database Performance tab.

You can’t perform that action at this time.