App Resizing - Rafay Product Documentation

App Resizing

Overview

The App Resizing feature helps identify unused CPU and memory resources reserved by applications running in clusters. Applications are often configured with resource requests that exceed actual usage, resulting in wasted capacity.

App Resizing generates a resource utilization report based on historical usage data. The report provides visibility into actual consumption and helps administrators manually resize application resource requests to improve cluster utilization.

Note: This feature provides usage insights only and does not automatically modify application resources.


Role-Based Access

Role Access
Org Admin Full access, including configuration, report generation, download, delete, and rerun
Org Read Only Admin View configuration and download reports

Generating an App Resizing Report

Supported Interfaces

Step 1: Navigate to App Resizing

  1. From the left navigation menu, select System and click App Resizing.
  2. Click on On Demand Runs.

Step 2: Configure Report Settings

Provide the required configuration.

Basic Details

Cluster Selection

Clusters can be selected using:

Selected clusters or labels appear in the Selected Clusters Or Labels section.

Namespace Selection

Namespaces can be selected using:

Configured namespaces are displayed under:

Step 3: Generate the Report

  1. Click Save.
  2. Report analysis runs in the backend.
  3. Reports are generated based on the selected scope.

Step 4: Download Reports

Image Placeholder: Generated Reports table showing report entries and download option.

After report generation:

Report Contents

The generated report provides resource utilization metrics for applications running in the selected clusters and namespaces.

Each report includes the following fields:

These values help identify application resources where requested values are higher than actual utilization, enabling administrators to manually optimize resource settings.


Apply App Resizing

After reviewing the report, resource requests must be manually updated in the application configuration within the cluster. This applies to any resource where CPU and memory requests are defined.

To resize an application:

  1. Navigate to the application or resource running in the cluster.
  2. Open the associated YAML configuration.
  3. Locate the resources section under the container specification.
  4. Update the CPU and memory request values based on the report insights.
  5. Save and reapply the updated configuration.

Example

The following example shows a workload YAML where CPU and memory requests can be updated:

resources:
  requests:
    cpu: "100m"
    memory: "50Mi"
  limits:
    cpu: "1000m"
    memory: "524Mi"

This example is provided for reference. The same approach applies to any application resource that defines resource requests in its YAML specification.

This approach applies to any workload or application that defines CPU and memory requests in its YAML specification.


Generated Reports Actions

Each entry in the Generated Reports table provides the following actions:

These actions allow viewing, regenerating, downloading, and managing previously generated reports.