kruize / autotune

Autonomous Performance Tuning for Kubernetes!
Apache License 2.0
155 stars 53 forks source link

Update threshold recommendations #1092

Closed bharathappali closed 7 months ago

bharathappali commented 7 months ago

This PR sends the current setting as recommendation if the recommendation doesn't reach a threshold. Earlier the recommendations were not sent if the threshold is not met, but that causes an inconsistency if users are planning to copy the values displayed in the kruize UI

bharathappali commented 7 months ago

SCENARIO: CPU_OPTIMISED

{
    "cluster_name": "cluster-one-division-bell",
    "kubernetes_objects": [
        {
            "type": "deployment",
            "name": "my-sample-deployment",
            "namespace": "default",
            "containers": [
                {
                    "container_image_name": "my-sample-image",
                    "container_name": "my-sample-container",
                    "recommendations": {
                        "version": "1.0",
                        "notifications": {
                            "111000": {
                                "type": "info",
                                "message": "Recommendations Are Available",
                                "code": 111000
                            }
                        },
                        "data": {
                            "2024-02-05T12:17:52.776Z": {
                                "notifications": {
                                    "111101": {
                                        "type": "info",
                                        "message": "Short Term Recommendations Available",
                                        "code": 111101
                                    },
                                    "111103": {
                                        "type": "info",
                                        "message": "Long Term Recommendations Available",
                                        "code": 111103
                                    },
                                    "111102": {
                                        "type": "info",
                                        "message": "Medium Term Recommendations Available",
                                        "code": 111102
                                    }
                                },
                                "monitoring_end_time": "2024-02-05T12:17:52.776Z",
                                "current": {
                                    "limits": {
                                        "memory": {
                                            "amount": 225.34,
                                            "format": "MiB"
                                        },
                                        "cpu": {
                                            "amount": 3.0,
                                            "format": "cores"
                                        }
                                    },
                                    "requests": {
                                        "memory": {
                                            "amount": 621.92,
                                            "format": "MiB"
                                        },
                                        "cpu": {
                                            "amount": 3.0,
                                            "format": "cores"
                                        }
                                    }
                                },
                                "recommendation_terms": {
                                    "short_term": {
                                        "duration_in_hours": 24.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-02-04T12:17:52.776Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1180.776,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1180.776,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 955.436,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 558.8560000000001,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU REQUESTS, no changes needed",
                                                        "code": 323004
                                                    },
                                                    "323005": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU LIMITS, no changes needed",
                                                        "code": 323005
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1180.776,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1180.776,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 955.436,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 558.8560000000001,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU REQUESTS, no changes needed",
                                                        "code": 323004
                                                    },
                                                    "323005": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU LIMITS, no changes needed",
                                                        "code": 323005
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "medium_term": {
                                        "duration_in_hours": 168.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-01-29T12:17:52.776Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1198.68,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1198.68,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 973.34,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 576.7600000000001,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU REQUESTS, no changes needed",
                                                        "code": 323004
                                                    },
                                                    "323005": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU LIMITS, no changes needed",
                                                        "code": 323005
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1198.68,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1198.68,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 973.34,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 576.7600000000001,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU REQUESTS, no changes needed",
                                                        "code": 323004
                                                    },
                                                    "323005": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU LIMITS, no changes needed",
                                                        "code": 323005
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "long_term": {
                                        "duration_in_hours": 360.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-01-21T12:17:52.776Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1198.68,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1198.68,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 973.34,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 576.7600000000001,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU REQUESTS, no changes needed",
                                                        "code": 323004
                                                    },
                                                    "323005": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU LIMITS, no changes needed",
                                                        "code": 323005
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1198.68,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1198.68,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 973.34,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 576.7600000000001,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU REQUESTS, no changes needed",
                                                        "code": 323004
                                                    },
                                                    "323005": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU LIMITS, no changes needed",
                                                        "code": 323005
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            ]
        }
    ],
    "version": "v2.0",
    "experiment_name": "serene-saad"
}
bharathappali commented 7 months ago

SCENARIO: MEMORY_OPTIMISED

{
    "cluster_name": "cluster-one-division-bell",
    "kubernetes_objects": [
        {
            "type": "deployment",
            "name": "my-sample-deployment",
            "namespace": "default",
            "containers": [
                {
                    "container_image_name": "my-sample-image",
                    "container_name": "my-sample-container",
                    "recommendations": {
                        "version": "1.0",
                        "notifications": {
                            "111000": {
                                "type": "info",
                                "message": "Recommendations Are Available",
                                "code": 111000
                            }
                        },
                        "data": {
                            "2024-02-05T12:38:44.929Z": {
                                "notifications": {
                                    "111101": {
                                        "type": "info",
                                        "message": "Short Term Recommendations Available",
                                        "code": 111101
                                    },
                                    "111103": {
                                        "type": "info",
                                        "message": "Long Term Recommendations Available",
                                        "code": 111103
                                    },
                                    "111102": {
                                        "type": "info",
                                        "message": "Medium Term Recommendations Available",
                                        "code": 111102
                                    }
                                },
                                "monitoring_end_time": "2024-02-05T12:38:44.929Z",
                                "current": {
                                    "limits": {
                                        "memory": {
                                            "amount": 300.0,
                                            "format": "MiB"
                                        },
                                        "cpu": {
                                            "amount": 1.63,
                                            "format": "cores"
                                        }
                                    },
                                    "requests": {
                                        "memory": {
                                            "amount": 300.0,
                                            "format": "MiB"
                                        },
                                        "cpu": {
                                            "amount": 2.85,
                                            "format": "cores"
                                        }
                                    }
                                },
                                "recommendation_terms": {
                                    "short_term": {
                                        "duration_in_hours": 24.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-02-04T12:38:44.929Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.4,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.4,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 4.7700000000000005,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.5500000000000003,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY LIMITS, no changes needed",
                                                        "code": 324004
                                                    },
                                                    "324003": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY REQUESTS, no changes needed",
                                                        "code": 324003
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.67,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.67,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.04,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 4.82,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY LIMITS, no changes needed",
                                                        "code": 324004
                                                    },
                                                    "324003": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY REQUESTS, no changes needed",
                                                        "code": 324003
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "medium_term": {
                                        "duration_in_hours": 168.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-01-29T12:38:44.929Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.43,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.43,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 4.8,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.5799999999999996,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY LIMITS, no changes needed",
                                                        "code": 324004
                                                    },
                                                    "324003": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY REQUESTS, no changes needed",
                                                        "code": 324003
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.640000000000001,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.640000000000001,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.010000000000001,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 4.790000000000001,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY LIMITS, no changes needed",
                                                        "code": 324004
                                                    },
                                                    "324003": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY REQUESTS, no changes needed",
                                                        "code": 324003
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "long_term": {
                                        "duration_in_hours": 360.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-01-21T12:38:44.929Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.45,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.45,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 4.82,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.6,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY LIMITS, no changes needed",
                                                        "code": 324004
                                                    },
                                                    "324003": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY REQUESTS, no changes needed",
                                                        "code": 324003
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.6899999999999995,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.6899999999999995,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.06,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 4.84,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY LIMITS, no changes needed",
                                                        "code": 324004
                                                    },
                                                    "324003": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY REQUESTS, no changes needed",
                                                        "code": 324003
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            ]
        }
    ],
    "version": "v2.0",
    "experiment_name": "exquisite-chandrakala"
}
bharathappali commented 7 months ago

SCENARIO: CPU_REQUESTS_OPTIMISED

{
    "cluster_name": "cluster-one-division-bell",
    "kubernetes_objects": [
        {
            "type": "deployment",
            "name": "my-sample-deployment",
            "namespace": "default",
            "containers": [
                {
                    "container_image_name": "my-sample-image",
                    "container_name": "my-sample-container",
                    "recommendations": {
                        "version": "1.0",
                        "notifications": {
                            "111000": {
                                "type": "info",
                                "message": "Recommendations Are Available",
                                "code": 111000
                            }
                        },
                        "data": {
                            "2024-02-05T12:48:16.249Z": {
                                "notifications": {
                                    "111101": {
                                        "type": "info",
                                        "message": "Short Term Recommendations Available",
                                        "code": 111101
                                    },
                                    "111103": {
                                        "type": "info",
                                        "message": "Long Term Recommendations Available",
                                        "code": 111103
                                    },
                                    "111102": {
                                        "type": "info",
                                        "message": "Medium Term Recommendations Available",
                                        "code": 111102
                                    }
                                },
                                "monitoring_end_time": "2024-02-05T12:48:16.249Z",
                                "current": {
                                    "limits": {
                                        "memory": {
                                            "amount": 512.58,
                                            "format": "MiB"
                                        },
                                        "cpu": {
                                            "amount": 3.46,
                                            "format": "cores"
                                        }
                                    },
                                    "requests": {
                                        "memory": {
                                            "amount": 639.3,
                                            "format": "MiB"
                                        },
                                        "cpu": {
                                            "amount": 3.0,
                                            "format": "cores"
                                        }
                                    }
                                },
                                "recommendation_terms": {
                                    "short_term": {
                                        "duration_in_hours": 24.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-02-04T12:48:16.249Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1196.016,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1196.016,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 683.436,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": -0.45999999999999996,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 556.7160000000001,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU REQUESTS, no changes needed",
                                                        "code": 323004
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1196.016,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1196.016,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 683.436,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": -0.45999999999999996,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 556.7160000000001,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU REQUESTS, no changes needed",
                                                        "code": 323004
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "medium_term": {
                                        "duration_in_hours": 168.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-01-29T12:48:16.249Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1197.6,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1197.6,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 685.0199999999999,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": -0.45999999999999996,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 558.3,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU REQUESTS, no changes needed",
                                                        "code": 323004
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1197.6,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1197.6,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 685.0199999999999,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": -0.45999999999999996,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 558.3,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU REQUESTS, no changes needed",
                                                        "code": 323004
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "long_term": {
                                        "duration_in_hours": 360.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-01-21T12:48:16.249Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1198.752,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1198.752,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 686.1719999999999,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": -0.45999999999999996,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 559.452,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU REQUESTS, no changes needed",
                                                        "code": 323004
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1198.752,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1198.752,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 686.1719999999999,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": -0.45999999999999996,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 559.452,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU REQUESTS, no changes needed",
                                                        "code": 323004
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            ]
        }
    ],
    "version": "v2.0",
    "experiment_name": "glorious-bhanvi"
}
bharathappali commented 7 months ago

SCENARIO: CPU_LIMITS_OPTIMISED

 {
    "cluster_name": "cluster-one-division-bell",
    "kubernetes_objects": [
        {
            "type": "deployment",
            "name": "my-sample-deployment",
            "namespace": "default",
            "containers": [
                {
                    "container_image_name": "my-sample-image",
                    "container_name": "my-sample-container",
                    "recommendations": {
                        "version": "1.0",
                        "notifications": {
                            "111000": {
                                "type": "info",
                                "message": "Recommendations Are Available",
                                "code": 111000
                            }
                        },
                        "data": {
                            "2024-02-05T12:55:20.699Z": {
                                "notifications": {
                                    "111101": {
                                        "type": "info",
                                        "message": "Short Term Recommendations Available",
                                        "code": 111101
                                    },
                                    "111103": {
                                        "type": "info",
                                        "message": "Long Term Recommendations Available",
                                        "code": 111103
                                    },
                                    "111102": {
                                        "type": "info",
                                        "message": "Medium Term Recommendations Available",
                                        "code": 111102
                                    }
                                },
                                "monitoring_end_time": "2024-02-05T12:55:20.699Z",
                                "current": {
                                    "limits": {
                                        "memory": {
                                            "amount": 497.74,
                                            "format": "MiB"
                                        },
                                        "cpu": {
                                            "amount": 3.0,
                                            "format": "cores"
                                        }
                                    },
                                    "requests": {
                                        "memory": {
                                            "amount": 666.06,
                                            "format": "MiB"
                                        },
                                        "cpu": {
                                            "amount": 2.48,
                                            "format": "cores"
                                        }
                                    }
                                },
                                "recommendation_terms": {
                                    "short_term": {
                                        "duration_in_hours": 24.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-02-04T12:55:20.699Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1198.356,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1198.356,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 700.616,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 532.296,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.52,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323005": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU LIMITS, no changes needed",
                                                        "code": 323005
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1198.356,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1198.356,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 700.616,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 532.296,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.52,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323005": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU LIMITS, no changes needed",
                                                        "code": 323005
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "medium_term": {
                                        "duration_in_hours": 168.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-01-29T12:55:20.699Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1198.356,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1198.356,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 700.616,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 532.296,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.52,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323005": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU LIMITS, no changes needed",
                                                        "code": 323005
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1198.356,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1198.356,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 700.616,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 532.296,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.52,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323005": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU LIMITS, no changes needed",
                                                        "code": 323005
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "long_term": {
                                        "duration_in_hours": 360.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-01-21T12:55:20.699Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1198.356,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1198.356,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 700.616,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 532.296,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.52,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323005": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU LIMITS, no changes needed",
                                                        "code": 323005
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 1198.356,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 1198.356,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.0,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 700.616,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.0,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 532.296,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 0.52,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "323005": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt CPU LIMITS, no changes needed",
                                                        "code": 323005
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            ]
        }
    ],
    "version": "v2.0",
    "experiment_name": "quirky-kusuma"
}
bharathappali commented 7 months ago

SCENARIO: MEMORY_REQUESTS_OPTIMISED

{
    "cluster_name": "cluster-one-division-bell",
    "kubernetes_objects": [
        {
            "type": "deployment",
            "name": "my-sample-deployment",
            "namespace": "default",
            "containers": [
                {
                    "container_image_name": "my-sample-image",
                    "container_name": "my-sample-container",
                    "recommendations": {
                        "version": "1.0",
                        "notifications": {
                            "111000": {
                                "type": "info",
                                "message": "Recommendations Are Available",
                                "code": 111000
                            }
                        },
                        "data": {
                            "2024-02-05T13:03:24.029Z": {
                                "notifications": {
                                    "111101": {
                                        "type": "info",
                                        "message": "Short Term Recommendations Available",
                                        "code": 111101
                                    },
                                    "111103": {
                                        "type": "info",
                                        "message": "Long Term Recommendations Available",
                                        "code": 111103
                                    },
                                    "111102": {
                                        "type": "info",
                                        "message": "Medium Term Recommendations Available",
                                        "code": 111102
                                    }
                                },
                                "monitoring_end_time": "2024-02-05T13:03:24.029Z",
                                "current": {
                                    "limits": {
                                        "memory": {
                                            "amount": 630.42,
                                            "format": "MiB"
                                        },
                                        "cpu": {
                                            "amount": 2.11,
                                            "format": "cores"
                                        }
                                    },
                                    "requests": {
                                        "memory": {
                                            "amount": 300.0,
                                            "format": "MiB"
                                        },
                                        "cpu": {
                                            "amount": 2.53,
                                            "format": "cores"
                                        }
                                    }
                                },
                                "recommendation_terms": {
                                    "short_term": {
                                        "duration_in_hours": 24.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-02-04T13:03:24.029Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.37,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.37,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": -330.41999999999996,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 4.26,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.8400000000000003,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324003": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY REQUESTS, no changes needed",
                                                        "code": 324003
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.42,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.42,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": -330.41999999999996,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 5.3100000000000005,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 4.890000000000001,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324003": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY REQUESTS, no changes needed",
                                                        "code": 324003
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "medium_term": {
                                        "duration_in_hours": 168.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-01-29T13:03:24.029Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.49,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.49,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": -330.41999999999996,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 4.380000000000001,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.9600000000000004,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324003": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY REQUESTS, no changes needed",
                                                        "code": 324003
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.6899999999999995,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.6899999999999995,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": -330.41999999999996,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 5.58,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 5.16,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324003": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY REQUESTS, no changes needed",
                                                        "code": 324003
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "long_term": {
                                        "duration_in_hours": 360.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-01-21T13:03:24.029Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.470000000000001,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.470000000000001,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": -330.41999999999996,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 4.360000000000001,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.940000000000001,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324003": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY REQUESTS, no changes needed",
                                                        "code": 324003
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.68,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.68,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": -330.41999999999996,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 5.57,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 5.15,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324003": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY REQUESTS, no changes needed",
                                                        "code": 324003
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            ]
        }
    ],
    "version": "v2.0",
    "experiment_name": "gorgeous-vinay"
}
bharathappali commented 7 months ago

SCENARIO: MEMORY_LIMITS_OPTIMISED

{
    "cluster_name": "cluster-one-division-bell",
    "kubernetes_objects": [
        {
            "type": "deployment",
            "name": "my-sample-deployment",
            "namespace": "default",
            "containers": [
                {
                    "container_image_name": "my-sample-image",
                    "container_name": "my-sample-container",
                    "recommendations": {
                        "version": "1.0",
                        "notifications": {
                            "111000": {
                                "type": "info",
                                "message": "Recommendations Are Available",
                                "code": 111000
                            }
                        },
                        "data": {
                            "2024-02-05T13:15:52.499Z": {
                                "notifications": {
                                    "111101": {
                                        "type": "info",
                                        "message": "Short Term Recommendations Available",
                                        "code": 111101
                                    },
                                    "111103": {
                                        "type": "info",
                                        "message": "Long Term Recommendations Available",
                                        "code": 111103
                                    },
                                    "111102": {
                                        "type": "info",
                                        "message": "Medium Term Recommendations Available",
                                        "code": 111102
                                    }
                                },
                                "monitoring_end_time": "2024-02-05T13:15:52.499Z",
                                "current": {
                                    "limits": {
                                        "memory": {
                                            "amount": 300.0,
                                            "format": "MiB"
                                        },
                                        "cpu": {
                                            "amount": 3.04,
                                            "format": "cores"
                                        }
                                    },
                                    "requests": {
                                        "memory": {
                                            "amount": 271.52,
                                            "format": "MiB"
                                        },
                                        "cpu": {
                                            "amount": 1.25,
                                            "format": "cores"
                                        }
                                    }
                                },
                                "recommendation_terms": {
                                    "short_term": {
                                        "duration_in_hours": 24.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-02-04T13:15:52.499Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.51,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.51,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.4699999999999998,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 28.480000000000018,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 5.26,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY LIMITS, no changes needed",
                                                        "code": 324004
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.699999999999999,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.699999999999999,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 4.659999999999999,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 28.480000000000018,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.449999999999999,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY LIMITS, no changes needed",
                                                        "code": 324004
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "medium_term": {
                                        "duration_in_hours": 168.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-01-29T13:15:52.499Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.4,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.4,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.3600000000000003,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 28.480000000000018,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 5.15,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY LIMITS, no changes needed",
                                                        "code": 324004
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.720000000000001,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.720000000000001,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 4.680000000000001,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 28.480000000000018,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.470000000000001,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY LIMITS, no changes needed",
                                                        "code": 324004
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "long_term": {
                                        "duration_in_hours": 360.0,
                                        "notifications": {
                                            "112101": {
                                                "type": "info",
                                                "message": "Cost Recommendations Available",
                                                "code": 112101
                                            },
                                            "112102": {
                                                "type": "info",
                                                "message": "Performance Recommendations Available",
                                                "code": 112102
                                            }
                                        },
                                        "monitoring_start_time": "2024-01-21T13:15:52.499Z",
                                        "recommendation_engines": {
                                            "cost": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.4399999999999995,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.4399999999999995,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 3.3999999999999995,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 28.480000000000018,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 5.1899999999999995,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY LIMITS, no changes needed",
                                                        "code": 324004
                                                    }
                                                }
                                            },
                                            "performance": {
                                                "pods_count": 1,
                                                "confidence_level": 0.0,
                                                "config": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.6899999999999995,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 300.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 7.6899999999999995,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "variation": {
                                                    "limits": {
                                                        "memory": {
                                                            "amount": 0.0,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 4.6499999999999995,
                                                            "format": "cores"
                                                        }
                                                    },
                                                    "requests": {
                                                        "memory": {
                                                            "amount": 28.480000000000018,
                                                            "format": "MiB"
                                                        },
                                                        "cpu": {
                                                            "amount": 6.4399999999999995,
                                                            "format": "cores"
                                                        }
                                                    }
                                                },
                                                "notifications": {
                                                    "324004": {
                                                        "type": "notice",
                                                        "message": "Workload is optimised wrt MEMORY LIMITS, no changes needed",
                                                        "code": 324004
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            ]
        }
    ],
    "version": "v2.0",
    "experiment_name": "vivacious-chandrakala"
}