GoogleCloudPlatform / konlet

Apache License 2.0
80 stars 23 forks source link

Allow to set memory and cpu limits #66

Open AndreasKl opened 3 years ago

AndreasKl commented 3 years ago

Our e2-standard-2 instances keeps freezing from time to time when our python application running in a container eats all memory. Therefore as a user I would like to set memory limits on my container e.g. --memory 3500m --memory-swap 3500m but currently can't.

This issue is also observed by others: https://serverfault.com/questions/870581/gkes-container-optimized-os-out-of-memory-freezes

Consider adding an configuration option to set memory limits.