Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex MPP Analytics for PostgreSQL
  • Getting started
    • All guides
      • Role and user management
      • Managing resource groups
      • User authentication rules
      • Using the command center
      • Managing client processes and user sessions
    • Connecting to an external file server (gpfdist)
    • Auxiliary utilities
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes

In this article:

  • Viewing information about sessions and queries
  • Viewing the resource consumption history for completed queries
  • Aborting the current session
  • Terminating the current query
  • Current state analysis examples
  • Heavy session search
  • Query execution structure analysis
  • Idle session search
  • Blocking session search
  • Examples of state history and consumption history analysis
  • Searching for CPU-intensive queries
  • Searching for high network load queries
  • Searching for canceled queries and execution errors
  1. Step-by-step guides
  2. Users and sessions
  3. Using the command center

Using the Greenplum® command center

Written by
Yandex Cloud
Improved by
Leonid
Updated at January 19, 2026
  • Viewing information about sessions and queries
  • Viewing the resource consumption history for completed queries
  • Aborting the current session
  • Terminating the current query
  • Current state analysis examples
    • Heavy session search
    • Query execution structure analysis
    • Idle session search
    • Blocking session search
  • Examples of state history and consumption history analysis
    • Searching for CPU-intensive queries
    • Searching for high network load queries
    • Searching for canceled queries and execution errors

Greenplum® Command Center offers the following features:

  • Viewing information about sessions and queries.
  • Viewing the resource consumption history for completed queries.
  • Aborting the current session.
  • Terminating the current query.

Check out these use cases for how and when you can use the Command Center.

For more information about the statistics you can get using the Command Center, see Greenplum® Command Center.

Note

The Greenplum® command center only allows you to perform basic operational analysis of sessions and queries. If your task requires in-depth strategic research and advanced analysis tools, use log export to Yandex Cloud Logging. Yandex Cloud Logging allows you to visualize logs in Grafana and process them using Data Streams and Query.

Viewing information about sessions and queriesViewing information about sessions and queries

You can view a list of sessions and queries with details on them. For each session, you can view its history and queries made within it. For each query, you can view its execution plan and a JSON file with details.

To view information about sessions and queries:

Management console
  1. Navigate to the folder dashboard and select Yandex MPP Analytics for PostgreSQL.

  2. Click the cluster name and navigate to the Command center tab.

  3. Select what you want to view and navigate to relevant tab:

    • Current state for the current sessions and queries.
    • State history for sessions or queries at a given time point in the past.
  4. Navigate to the Sessions or Queries section. In the State history tab, these are under the chart.

  5. To filter a session or query list, click Filters and select the relevant parameters.

  6. To view details for:

    • Sessions: Click the session name.
    • Queries: Click the key of the query you are running.

    For session and query parameters, see Greenplum® Command Center parameters.

Viewing the resource consumption history for completed queriesViewing the resource consumption history for completed queries

The resource consumption history includes a variety of system metrics. These show how a Greenplum® cluster was consuming resources to process queries at different time points. You can also view a list of completed queries. Using this information, you can manage your cluster hosts' CPU and memory in such a way so as to process queries more effectively.

To view the resource consumption history for completed queries:

Management console
  1. Navigate to the folder dashboard and select Yandex MPP Analytics for PostgreSQL.

  2. Click the cluster name and navigate to Command center → Usage history.

  3. Select the consumption metric you need:

    • CPU Time: Time it took the CPU resources to process the queries, in seconds.
    • Peak memory: Maximum memory the cluster used to process a query during its lifetime.
    • Disk R: Memory used for data reads, in bytes.
    • Disk W: Memory used for data writes to the DB, in bytes.
    • Spill: Additional memory used for query execution.
    • Total time: Total memory used for query processing, in bytes.

    Once you select the consumption metric, you will see a chart with details and a list of queries. The chart will show the metric value, the user who ran the query, and the query execution time.

  4. To filter the results, click Filters and select the relevant parameters.

Aborting the current sessionAborting the current session

To free up resources for sessions, you can abort a session with the Idle status:

Management console
  1. Navigate to the folder dashboard and select Yandex MPP Analytics for PostgreSQL.

  2. Click the cluster name and navigate to the Command centertab.

  3. In Current state → Sessions, click in the relevant line and select Terminate session.

    If you see Terminate query, select it and stop the query.

  4. Confirm stopping the session.

Terminating the current queryTerminating the current query

To free up resources for queries, you can terminate a query with the Idle status within an idle session. To do this:

Management console
  1. Navigate to the folder dashboard and select Yandex MPP Analytics for PostgreSQL.
  2. Click the cluster name and navigate to the Command centertab.
  3. In Current state → Queries, click in the relevant line and select Terminate query.
  4. Confirm terminating the query.

Current state analysis examplesCurrent state analysis examples

The Greenplum® command center supports the following types of cluster current state analysis:

  • Metric analysis, e.g., heavy session search or query execution structure analysis.
  • Event analysis, e.g., idle session search or blocking session search.

Heavy session searchHeavy session search

Management console
  1. Navigate to the folder dashboard and select Yandex MPP Analytics for PostgreSQL.
  2. Click the cluster name and navigate to Command center → Current state.
  3. Sort sessions by one of the following columns: CPU time, Peak memory, Spill, Disk W, Disk R, Net recv, or Net sent.
  4. Find the sessions that consume the selected resource the most.
  5. For each selected session:
    1. Click the session number. The session info page will open.
    2. Compare the computing load and I/O load metrics (CPU time, Peak memory, Spill, Disk W, Disk R, Net recv, Net sent) against the overall load charts for the cluster or its individual hosts.
  6. Find which session has contributed the most to resource consumption.
  7. For details about the session's states at different points in time and to track the metrics' evolution over time, go to the Session history tab.

Note

The query initiator is the only person who can find resource consumption issues within a given session, as the only one who knows the expected runtime of particular queries.

Query execution structure analysisQuery execution structure analysis

You can identify queries that are inefficient due to their SQL statement logic or the sequence of operations.

Management console
  1. Navigate to the folder dashboard and select Yandex MPP Analytics for PostgreSQL.

  2. Click the cluster name and navigate to Command center → Current state.

  3. Navigate to the Sessions tab.

  4. Enable displaying only active sessions by turning off all status buttons except Active.

  5. Filter the sessions by Start time.

  6. Find a long-lived session with high values ​​in the CPU time and Peak memory columns. Click its number to open its info page.

  7. Analyze the CPU time, Peak memory, Spill, Skew, Net sent, Net recv, and Interconnect retransmits values.

    • If you see high values ​​for Net sent and Net recv, and a non-zero value for Interconnect retransmits:

      1. Navigate to the Queries tab.
      2. Apply the SSID: filter by specifying the transaction ID of the selected session.
      3. Sort queries by the Key of running query column in descending order.
      4. Open execution plans for multiple queries.
      5. If you see Gather or Gather Merge after Sort, Aggregate, or Distinct, move GROUP BY/DISTINCT/ORDER BY to subqueries.
      6. If you get broad selections with a full set of columns, limit the results with the help of LIMIT or pagination, plus select only the columns you need and apply filters at the early stages of your query.
    • If you see a non-zero value for Spill:

      1. Navigate to the Queries tab.
      2. Apply the SSID: filter by specifying the transaction ID of the selected session.
      3. Sort queries by the Key of running query column in descending order.
      4. Open execution plans for multiple queries.
      5. If you see subqueries with outer row dependency (EXISTS or IN with correlation) and the execution plan contains the SubPlan or InitPlan nodes, decorrelate such subqueries.
      6. If you see sorting or materialization followed by WindowAgg over large selections, apply pre-aggregation or filtering, and exclude unnecessary columns before applying the window functions.
      7. If you see Sort or Distinct at different nesting levels, reduce the number of such operations and their nesting depth.
    • If you see high CPU time or Peak memory values ​​with non-zero Skew values:

      1. Navigate to the Queries tab.
      2. Apply the SSID: filter by specifying the transaction ID of the selected session.
      3. Sort queries by the Key of running query column in descending order.
      4. Open the execution plans for several queries and check how the joins are executed:
        • If joins are based on columns different from the actual table distribution key, rewrite your query.
        • If you are joining large sets but filters are either missing or applied after JOIN, use filtering in subqueries before JOIN.

Idle session searchIdle session search

Let's assume the user is done working with the database but has left the session open. In which case the session will be idling while still consuming the cluster resources, thereby degrading its performance. To identify and terminate such a session, do the following:

Management console
  1. Navigate to the folder dashboard and select Yandex MPP Analytics for PostgreSQL.
  2. Click the cluster name and navigate to Command center → Current state.
  3. Filter the sessions by Start time.
  4. Find the longest-lasting session with the Idle status. Click its number to open its info page.
  5. Look up the Session info field under Query start time to see when the last query was submitted.
  6. If the session is not executing any requests, and the client application's logic does not require the connection to be retained, you can terminate such a session. Do it by clicking Terminate session in the top-right corner and confirm terminating the session.

Blocking session searchBlocking session search

In some cases, the session acquires table rows or metadata for a long time. This can create a queue of blocked sessions awaiting the resource acquisition. To find which session is the blocking one:

Management console
  1. Navigate to the folder dashboard and select Yandex MPP Analytics for PostgreSQL.
  2. Click the cluster name and navigate to Command center → Current state.
  3. Navigate to the Sessions tab.
  4. To display the blocking tree, click .
  5. Explore the blocking tree and identify the main blocking sessions.
  6. For each blocking session, check the following:
    • Status; usually Active or Idle transaction.
    • Start time and Status changed values.
    • Amount of consumed resources.
    • Number of blocked sessions.
    • Query text.
  7. If a blocking session remains Active for a long time, all the while consuming the computing resources, a heavy query may be the cause. In which case you may want to optimize your queries and business logic.
  8. If a session is blocking many other sessions while being Idle transaction for a long time, you can terminate it after additional checks:
    1. Make sure CPU time is not increasing and the Reason for wait field is empty.
    2. In the top-right corner, click Terminate session.
    3. Confirm stopping the session.

Tip

To prevent long-term blocking:

  • Optimize your queries and reduce the amount of data processed at any given time.
  • Separate interactive queries and heavy operations on the timeline.
  • Set query execution and blocking timeouts.

Examples of state history and consumption history analysisExamples of state history and consumption history analysis

The Greenplum® command center supports the following types of session and query history analysis:

  • Metric analysis, e.g., search for heavy queries and search for high network load queries.
  • Event analysis, e.g., search for canceled queries and execution errors.

Searching for CPU-intensive queriesSearching for CPU-intensive queries

Let's assume that during a certain period a higher than usual CPU consumption is reported. To determine which queries caused the spikes, do the following:

Management console
  1. Find out when the spike occurred:

    1. Navigate to the folder dashboard and select Yandex MPP Analytics for PostgreSQL.

    2. Click the cluster name and navigate to Command center → State history.

    3. Set the CPU usage filter.

    4. Use the chart to find out when CPU consumption became abnormally high.

      Hover over the highest point on the chart curve. You will see a pop-up displaying the cluster state details for the selected time point. The window will include the time point when the spike occurred.

  2. Identify the CPU-intensive queries:

    1. Navigate to the Usage history tab.
    2. Set the time range based on the state history data.
    3. Group the queries by user, database, and query ID. This will group similar queries together.
    4. Filter the query groups by CPU time.
    5. Open the group with the highest CPU time value.
    6. Examine the SQL text of your queries and their execution plans to figure out the cause of high CPU consumption.

    Tip

    The query initiator is the only one who can find CPU consumption issues within a given session; however, look for the following signs indicating that you need optimization:

    • Complex calculations and expressions executed line by line.
    • Sorting and aggregation without data filtering.
    • Multiple scans of large tables without using indexes or data distribution.
    • Re-calculations of subqueries or functions inside expressions.

Searching for high network load queriesSearching for high network load queries

Management console
  1. Find the approximate time period when network issues and errors were observed, for example:

    • Cluster connection failure or slow response complaints.
    • Network anomalies and errors based on cluster logs and monitoring data.
  2. Establish the cause of the errors:

    1. Navigate to the folder dashboard and select Yandex MPP Analytics for PostgreSQL.
    2. Click the cluster name and navigate to Command center → State history.
    3. Set the time range during which errors were observed.
    4. In the drop-down list above the chart, select Connections and then Net usage. Compare the charts.
    5. If unusually large Net usage values ​​were observed, abnormal network activity is the most likely cause.
    6. If unusually large Connections values ​​were observed, a spike in connections is the most likely cause.
  3. If the errors are caused by abnormal network activity:

    1. Navigate to the Usage history tab.
    2. Set the time range based on the state history data.
    3. Select Group by: → user.
    4. Filter the query groups by the Net sent and Net recv columns.
    5. Find the user with the highest values ​​in these columns. Filter the query groups by this user.
    6. Select Group by: → Query ID and disable grouping by user.
    7. Find the queries that generated the most traffic. Save the text of these queries and their start time.
    8. Navigate to the Sessions tab.
    9. Use the query text-based search to find the queries of interest.
    10. Identify the source of traffic using the Application column.
    11. Based on your analysis, tweak the applications generating abnormal network activity:
      • Limit the amount of upload data.
      • Use materialized views or temporary tables.
      • Optimize table distribution (DISTRIBUTED BY) and update table statistics prior to large inserts.
      • Review the ETL pipeline architecture.
  4. If the errors are caused by a spike in connections:

    1. Go to the Sessions tab below the chart.
    2. Filter the sessions by Start time.
    3. On the chart, select a time point with the highest Connections values. Use the At time: section and the < > arrows to set the exact time point.
    4. Use the User and Application name: filters to compare the number of new sessions per second for each source.
    5. If one source creates many more sessions than the others:
      • Check whether the application is reusing its connections.
      • Set the interval between retries and total number of attempts for reconnections.
    6. Optionally, edit the connection manager settings based on your analysis.

Searching for canceled queries and execution errorsSearching for canceled queries and execution errors

If the user complains about long wait times and connection losses but no other users report the same issues, this may indicate execution errors or canceled queries.

To find which queries were canceled or caused execution errors, proceed as follows:

Management console
  1. Navigate to the folder dashboard and select Yandex MPP Analytics for PostgreSQL.

  2. Click the cluster name and navigate to Command center → State history.

  3. Navigate to the Queries tab.

  4. Select a time point when issues were reported by the monitoring data. Use the At time: section and the < > arrows to set the exact time point.

  5. Filter the queries by the Query state column.

  6. Find queries with the Canceled or Error status.

  7. Establish the query sources based on the User and Application columns. Optionally, use the User: and Application name: filters.

  8. If one source generates significantly more canceled and failed queries than the others:

    • Check and, optionally, optimize business logic and the structure of your SQL queries.

      Pay special attention to frequent full selections, lack of data filtering, redundant table joins, or nested subqueries.

    • Set the interval between reconnections and the total number of attempts.

  9. Optionally, use the connection manager to limit the number of concurrent active connections and balance the load between clients.

    The optimal parameters depend on the number of segments and cluster resources.

Greenplum® and Greenplum Database® are registered trademarks or trademarks of Broadcom Inc. in the United States and/or other countries.

Was the article helpful?

Previous
User authentication rules
Next
Managing client processes and user sessions
© 2026 Direct Cursus Technology L.L.C.