You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use aiofile to check health of consumers. Some file is being touched during consumer process and then in k8s liveness probe I compare modified time.
Unfortunately I noticed a memory leak that was caused by liveness probe.
Long story short
I use aiofile to check health of consumers. Some file is being touched during consumer process and then in k8s liveness probe I compare modified time.
Unfortunately I noticed a memory leak that was caused by liveness probe.
Expected behavior
I expect no memory leaks :)
Actual behavior
There is one.
Steps to reproduce
Here code for reproduction:
Aiofile should be imported inside function.
Just probe inside k8s Deployment.
Environment info
k8s version: 1.21.8
aiofile version: 3.8.0 - 3.8.8 (didn't check other)
python version: 3.11.3 - 3.11.6 (didn't check other)
I have been produced this problem with implementations:
✅ export CAIO_IMPL=linux
✅ export CAIO_IMPL=thread
✅ export CAIO_IMPL=python
Additional info
Here are graphs of the increase in the amount of memory consumed in pod:
![photo_2023-10-12 16 33 10](https://private-user-images.githubusercontent.com/54814200/274616266-0ce6faf9-c15e-47ff-b4f1-45f80839e2f5.jpeg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2NDU3NDMsIm5iZiI6MTcxOTY0NTQ0MywicGF0aCI6Ii81NDgxNDIwMC8yNzQ2MTYyNjYtMGNlNmZhZjktYzE1ZS00N2ZmLWI0ZjEtNDVmODA4MzllMmY1LmpwZWc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyOVQwNzE3MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kNjc1NDAxNmFmOTIyNGNkOWIxM2MyYzY3Y2ViNjEzMjdlNmMyNDM3YTNkYTgxZWUwM2YxMDFhZWQ5ZDIyZTZjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.iy8sWR7EURF9LWXJMI0Mugr9bbsm2DO1zWv0sYxUwvU)
![photo_2023-10-12 16 33 07](https://private-user-images.githubusercontent.com/54814200/274616275-07569279-4015-41c0-b130-238bc9a5d1e1.jpeg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2NDU3NDMsIm5iZiI6MTcxOTY0NTQ0MywicGF0aCI6Ii81NDgxNDIwMC8yNzQ2MTYyNzUtMDc1NjkyNzktNDAxNS00MWMwLWIxMzAtMjM4YmM5YTVkMWUxLmpwZWc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyOVQwNzE3MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yYzhkZWM5YjU0YzBhMWNkMjlkMWQwZjFjNTM0Nzc0ODhhMmI2NzI5NTQwNWRlYTk2ZGQ5ZGExYmY0MzUxMzU4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.zIYmPrTPEnvcV3FpjPSqEQzHS-_E67rz64j1tDPckOw)
The text was updated successfully, but these errors were encountered: