Docker-Provider icon indicating copy to clipboard operation
Docker-Provider copied to clipboard

Performance metrics are traced for completed jobs

Open YuriyIvon opened this issue 3 years ago • 6 comments

We run more than a thousand short-living jobs on our cluster every day. These jobs stay for some time in the "Completed" state. As a result, we reach our Log Analytics size quota much earlier than expected, because performance metrics are written every minute for every completed job along with other pods (as far as I understand, in_kube_perfinventory.rb is responsible for that).

Can completed pods be excluded from performance traces?

Thanks

YuriyIvon avatar Aug 29 '22 10:08 YuriyIvon

We collect for all . Can’t you setup auto cleanup for finished jobs using ‘.spec.ttlSecondsAfterFinished’ attribute so they get cleaned up after the specified time ? This is also documented in our docs.

vishiy avatar Aug 29 '22 14:08 vishiy

We clean them after some time, but it is not minutes, so the overhead is quite big. Is it possible to add a parameter or not log performance for completed pods at all?

YuriyIvon avatar Aug 29 '22 19:08 YuriyIvon

@YuriyIvon - we can add this to our to-do list , but i suspect it will be moved back, as a lower priority. Is there a reason you cannot lower the cleanup time to be quicker ?

vishiy avatar Aug 31 '22 23:08 vishiy

We will lower the cleanup time, but it would be great to have this feature in the future. Thank you.

YuriyIvon avatar Sep 01 '22 13:09 YuriyIvon

ok thank you. I will add an item to our board, and use that for tracking. Is it cool if i close this after i create an item in our board ?

vishiy avatar Sep 01 '22 14:09 vishiy

Sure, thanks

YuriyIvon avatar Sep 01 '22 14:09 YuriyIvon

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Sep 09 '22 10:09 github-actions[bot]

This issue was closed because it has been stalled for 12 days with no activity.

github-actions[bot] avatar Sep 15 '22 10:09 github-actions[bot]