robusta-dev / krr

Prometheus-based Kubernetes Resource Recommendations
MIT License
3.05k stars 160 forks source link

Remote end closed connection without response #317

Open christianbarr2552 opened 3 months ago

christianbarr2552 commented 3 months ago

Describe the bug An unexpected error occurred when scaning namespaces with more than 47 deployments

To Reproduce Steps to reproduce the behavior:

  1. Execute python krr.py simple -n "$ns" where ns is a namespace with more than 47 deployments
  2. Prometheus found and connected successfully
  3. Script start to calculate recomendations
  4. See error

ERROR An unexpected error occurred http.client.RemoteDisconnected: Remote end closed connection without response During handling of the above exception, another exception occurred

Expected behavior Complete the recomendations for all the deployments

Screenshots Attached errors

Are you interested in contributing a fix for this? Yes/no. If yes, we will provide guidance what parts of the code to modify and help you.

Desktop (please complete the following information):

Additional context The cluster has many namespaces, many of them with 30 deployments, but the issue apears with namespaces 47 and 140 deployments. 2024-07-23 10 59 37 2024-07-23 10 59 49 2024-07-23 11 00 18