Skip to content

Conversation

@ncau
Copy link

@ncau ncau commented Nov 18, 2025

Description

This feature aims to give users more control over how Kruize calculates resource recommendations, specifically allowing the recommended limits to be different from the recommended requests, while maintaining the user's existing ratio between them.

Fixes # (issue)

Type of change

  • Bug fix
  • New feature
  • Docs update
  • Breaking change (What changes might users need to make in their application due to this PR?)
  • Requires DB changes

How has this been tested?

Please describe the tests that were run to verify your changes and steps to reproduce. Please specify any test configuration required.

  • New Test X
  • Functional testsuite

Test Configuration

  • Kubernetes clusters tested on:

Checklist 🎯

  • Followed coding guidelines
  • Comments added
  • Dependent changes merged
  • Documentation updated
  • Tests added or updated

Additional information

Include any additional information such as links, test results, screenshots here

@khansaad khansaad added the enhancement New feature or request label Nov 19, 2025
@khansaad khansaad moved this to In Progress in Monitoring Nov 19, 2025
@khansaad khansaad added this to the Kruize 0.9 Release milestone Nov 19, 2025
public static final int SECTION_CRITICAL_SUBSECTION_DATA_SUBSYSTEM_MEMORY_START = 524000;
public static final int CRITICAL_MEMORY_REQUEST_NOT_SET = 524001;
public static final int CRITICAL_MEMORY_LIMIT_NOT_SET = 524002;
public static final int ERROR_NO_RECOMMENDED_REQUEST_FOR_LIMIT_CALCULATION = 225001;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add these new notification codes in the design doc as well.
For reference: https://github.com/kruize/autotune/blob/master/design/NotificationCodes.md

public static final String METADATA_PROFILE_FILE_PATH = "metadataProfileFilePath";
public static final String METRIC_PROFILE_FILE_PATH = "metricProfileFilePath";
public static final String IS_KAFKA_ENABLED = "isKafkaEnabled";
public static final String ADJUST_MEM_USAGE = "adjustMemUsage";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This flag needs to be added in the crc yaml to control the flow before starting the kruize application

@@ -0,0 +1,2628 @@
package com.autotune.analyzer.recommendations.engine;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be mistake. We already have this data in the RecommendationEngine class.
We also have the RecommendationConstants class as well.
Please check and revert this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants