Skip to content

Recommendations generated in local and remote modes do not match #1531

Open
@chandrams

Description

@chandrams

Describe the bug
Recommendations generated in local and remote modes do not match. Tested with kruize release 0.4

Local monitoring Bulk API recommendations for sysbench

  • cpu - 1.0030718758620834 cores
  • memory - 3659571 bytes

Remote monitoring recommendations for sysbench

  • cpu - 0.990642001614252 cores
  • memory - 2973696 bytes

How to reproduce it

  • Generate recommendations for a container in local monitoring and remote monitoring modes using the same usage metrics

Expected behavior
A clear and concise description of the expected behavior

Relevant logs
Recommendation generated using Bulk API for sysbench

 "monitoring_end_time": "2025-02-12T07:15:00.000Z",
                            "current": {},
                            "recommendation_terms": {
                              "short_term": {
                                "duration_in_hours": 24.0,
                                "notifications": {
                                  "112101": {
                                    "type": "info",
                                    "message": "Cost Recommendations Available",
                                    "code": 112101.0
                                  },
                                  "112102": {
                                    "type": "info",
                                    "message": "Performance Recommendations Available",
                                    "code": 112102.0
                                  }
                                },
                                "monitoring_start_time": "2025-02-11T07:15:00.000Z",
                                "recommendation_engines": {
                                  "cost": {
                                    "pods_count": 2.0,
                                    "confidence_level": 0.0,
                                    "config": {
                                      "requests": {
                                        "memory": {
                                          "amount": 3659571.2,
                                          "format": "bytes"
                                        },
                                        "cpu": {
                                          "amount": 1.0030718758620834,
                                          "format": "cores"
                                        }
                                      },
                                      "limits": {
                                        "memory": {
                                          "amount": 3659571.2,
                                          "format": "bytes"
                                        },
                                        "cpu": {
                                          "amount": 1.0030718758620834,
                                          "format": "cores"
                                        }
                                      }
                                    },

Environment:

  • Kubernetes Cluster openshift

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions