kaytu-io / kaytu

Kaytu's AI platform boosts cloud efficiency by analyzing historical usage and delivering intelligent recommendations—such as optimizing instance sizes—that maintain reliability. Pay for what you need, without compromising your apps.
https://kaytu.io
Other
594 stars 10 forks source link

Stops with error during initial scanning of instances. #36

Closed frese closed 1 month ago

frese commented 2 months ago

Describe the bug

failures: - Evaluating usage data for i-001de016c6050985d failed due to [requestAbout] : invalid character 'e' looking for beginning of value

To Reproduce

Steps to reproduce the behavior:

  1. Connected to my AWS account ..
  2. Run "kaytu"
  3. See error

Expected behavior

Cost savings report I presume :-)

Notes Several runs, stops with same failure at the same instance. I've investigated the instance, it's one of our databases thats been running for about a year. Nothing to see 🤷

Mahanmmi commented 2 months ago

Sounds like the client is getting an unexpected response from the server. That can happen for a variety of reasons. I have updated the error report to be clear in such cases. If you could run the latest version and post the cleared-up error message, it should help expedite the resolution of the issue.

frese commented 2 months ago

Awesome, unfortunately this is what I get

failures: - Evaluating usage data for i-001de016c6050985d failed due to server returned status code 504, [requestAbout] : error code: 504

How about, catching this, skip the instance and continue ?

Mahanmmi commented 2 months ago

Thanks! That means server didn't respond in a timely manner to the right sizing request and the request timed out in the load-balancer. The client doesn't fetch the rightsizing of instances sequentially, it does send the request for all of them in parallel so one of them failing is not preventing others, in fact if I have to guess fetching all of them at the same time is overpowering the server, making it slow to respond hence it timing out. I'll try some adjustments and get back to you on it.

acx1729 commented 1 month ago

Hi @frese We didn't forget about this; the fix is rolled out in preview.

frese commented 1 month ago

Thanks - just updated to 0.7.4 and seems to be working now, aka. it's not crashing 👍🏼