Skip to main content

Home

Queue Insights

The Queue Insights application helps manage resources and workloads. Once installed, you can easily select specific time ranges and clusters to analyze. The app gives you a clear view of how different queues are performing, helping you spot issues.

Get Insights

The app lets you dive into the details. You can choose a time range, cluster, and specific queues to see detailed performance metrics. This information helps you understand what's going wrong and what's working well.

Optimize

Using these insights, you can adjust configurations, balance workloads more effectively, and improve system performance. This means less wasted resources and faster processing times.

Keep Improving

By using it regularly, you can monitor and improve your resource management. The app helps you ensure your scheduler is always running efficiently, saving you money and boosting productivity.

Pre-requisites

  • Queue Insights app tar file:

    Queue-Insights-0.0.1-dist.tar.gz
  • Yarn metrics extractor file:

    yarn_metrics_extractor.py
  • Resource Scheduler URL: For example, http://citi01.unraveldata.com:8088

Configuration steps for packages released before November 2024

  1. Edit the config.py file.

    1. Open a terminal.

    2. Navigate to the unity-one configuration directory:

      cd /opt/unravel/data/apps/unity-one/src
    3. Open the config.py file for editing and add the following script at the end of the file, replacing the placeholders with the relevant cluster names, resource scheduler URL.

      cluster_id_mapping = { 'cluster name1': ['resource scheduler URL 1'], 'cluster name2': ['resource scheduler URL 2'],
      }
      yarn_metrics_extractor_sleep = 120
    4. Save and close the file.

  2. Edit the reports_main.py file.

    1. Navigate to the reports directory:

      cd /opt/unravel/data/apps/unity-one/src/reports
    2. Open the reports_main.py file for editing and add the following script at line number 78:

      if not disable_ast_extractor_launch: if not util.is_dbx_platform(es.es): threading.Thread(name='ast-extractor', target=launch, args=('ast_extractor.py',), daemon=True).start() threading.Thread(name='scheduler', target=launch, args=('yarn_metrics_extractor.py',), daemon=True).start()
    3. Save and close the file.

  3. Place the yarn_metrics_extractor.py file in the src directory:

    cd /opt/unravel/data/apps/unity-one/src

Configuration steps for packages released in Novemeber 2024 and later

  1. Edit the config.py file.

    1. Open a terminal.

    2. Navigate to the unity-one configuration directory:

      cd /opt/unravel/data/apps/unity-one/src
    3. Open the config.py file for editing and locate the following script. Replace the placeholders with the relevant Resource Scheduler URLs:

      cluster_id_mapping = { 'cluster name1': ['resource scheduler URL 1'], 'cluster name2': ['resource scheduler URL 2'],
      }
      yarn_metrics_extractor_sleep = 120
    4. Save and close the file.

  2. Edit the reports_main.py file.

    1. Navigate to the reports directory:

      cd /opt/unravel/data/apps/unity-one/src/reports
    2. Open the reports_main.py file for editing and locate the following script :

      if not disable_ast_extractor_launch:    if not util.is_dbx_platform(es.es):        threading.Thread(name='ast-extractor', target=launch, args=('ast_extractor.py',), daemon=True).start()        ########### Queue-Insights ##########        # threading.Thread(name='scheduler', target=launch, args=('yarn_metrics_extractor.py',), daemon=True).start()if not disable_ast_extractor_launch: if not util.is_dbx_platform(es.es): threading.Thread(name='ast-extractor', target=launch, args=('ast_extractor.py',), daemon=True).start() threading.Thread(name='scheduler', target=launch, args=('yarn_metrics_extractor.py',), daemon=True).start()
    3. Un-comment (remove the # symbol) the threading.Thread line of code .

    4. Save and close the file.

Installing and opening Queue Insights app

Refer to Installing Queue Insights app. App installation and launch

Using the Queue Insights app

Queue Insights Overview

  1. On the Unravel UI, from the upper-right corner, click appstore-icon.png. The App Store page is displayed.

  2. Click the Queue Insights image to open the app.

  3. Select the desired time range and cluster and click Submit. The queue insights for the selected time range and cluster are displayed.

    queue-insights.png

Workload

  1. Click Workload.

  2. Select the time range, clusters, queues, and view by time values.

  3. Click Submit. The insights for the workload are displayed.

    workload.png