kruize / autotune

Autonomous Performance Tuning for Kubernetes!
Apache License 2.0
158 stars 54 forks source link

Error in updating results even when interval duration is within expected range. #742

Closed kusumachalasani closed 1 year ago

kusumachalasani commented 1 year ago

For the result json which uses "interval_start_time": "2023-03-15T14:00:01.000Z", "interval_end_time": "2023-03-15T14:15:00.000Z", following error is observed while updating the results.

{"message":"Interval duration cannot be less than or greater than measurement_duration by more than 5 seconds","httpcode":400,"documentationLink":"","status":"ERROR"}

result.json

[{"version": "1.0", "experiment_name": "python-sample", "interval_start_time": "2023-03-15T14:00:01.000Z", "interval_end_time": "2023-03-15T14:15:00.000Z", "kubernetes_objects": [{"type": "deployment", "name": "python-sample", "namespace": "america", "containers": [{"container_image_name": "python-sample", "container_name": "python-sample", "metrics": [{"name": "cpuUsage", "results": {"aggregation_info": {"sum": 0.000273, "min": 6.8e-05, "max": 0.000218, "avg": 0.0001365, "units": "cores"}}}, {"name": "memoryUsage", "results": {"aggregation_info": {"min": 122.0390625, "max": 125.46875, "sum": 247.5078125, "avg": 123.75390625, "units": "MiB"}}}, {"name": "memoryRSS", "results": {"aggregation_info": {"min": 114.92578125, "max": 118.0234375, "sum": 232.94921875, "avg": 116.474609375, "units": "MiB"}}}]}]}]}]

create_experiment.json

[{"version": "1.0", "experiment_name": "python-sample", "cluster_name": "e23-alias", "performance_profile": "resource-optimization-openshift", "mode": "monitor", "target_cluster": "remote", "kubernetes_objects": [{"type": "deployment", "name": "python-sample", "namespace": "america", "containers": [{"container_image_name": "python-sample", "container_name": "python-sample"}]}], "trial_settings": {"measurement_duration": "15min"}, "recommendation_settings": {"threshold": "0.1"}}]
rbadagandi commented 1 year ago

Marking this issue as closed since its fixed as part of #750