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
Recently we added the possibility to add resource requests and limits to our operators.
For the Java based products we currently use a factor of 0.8 to calculate the amount of heap for the JVM depending on the memory limit.
In most cases this will lead to unused memory when using alot of memory. E.g. a pod gets 100GB memory, this will be 80GB for the JVM and we end up with almost 20GB unused but reserved memory.
We need a method in the framework that adaptively calculates the required heap memory in order to waste less memory and leaving enough memory for the OS to run when specifying lower amounts.
Acceptance
A method to calculate the JVM heap depending on the amount specified is implemented in the framework
This includes research about a safe minimal value (e.g. 500mb for the OS that must always be respected)
The operator-rs is properly released
The resources concepts docs are updated
All operators managing java products use this method instead of the constant 0.8 factor
The text was updated successfully, but these errors were encountered:
Could you please check: I believe Java had some improvements in the last years where it detects if it runs within a container and can set max heap etc. automatically based on the constraints of the container?
I checked it, but im not sure thats what we want. You still set the memory via percentages (e.g. 80% of available memory). So i do not see a big difference to how we do it now?
Recently we added the possibility to add resource requests and limits to our operators.
For the Java based products we currently use a factor of 0.8 to calculate the amount of heap for the JVM depending on the memory limit.
In most cases this will lead to unused memory when using alot of memory. E.g. a pod gets 100GB memory, this will be 80GB for the JVM and we end up with almost 20GB unused but reserved memory.
We need a method in the framework that adaptively calculates the required heap memory in order to waste less memory and leaving enough memory for the OS to run when specifying lower amounts.
Acceptance
The text was updated successfully, but these errors were encountered: