streamnative / function-mesh

The serverless framework purpose-built for event streaming applications.
https://functionmesh.io/
Apache License 2.0
210 stars 27 forks source link

allow memory requests to be equal as the memory limits #691

Closed freeznet closed 10 months ago

freeznet commented 11 months ago

currently, function-mesh uses memory requests for JVM and pass the value as -Xmx, when the JVM reaches the maximum memory usage, it will throw OOM error and crush the POD. A common way to prevent such case is to add a 10% padding to memory limits, to prevent the POD OOM. But for some cloud vendor, it will be needed to make the requests and limits to be equal, so we will need to make the requests and limits as a padding contained value, and use the 90% value instead.