Replies: 1 comment 2 replies
-
If you're using the MEMORY variable, perhaps instead set INIT_MEMORY and MAX_MEMORY separately with init/starting being much lower. In general, read through https://www.baeldung.com/gc-release-memory I'm confused why you say the autoscaler kicks in after the pod is running and users have left. What value are you using for memory requests? That's primarily what k8s uses to schedule pods by memory. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a quick question regarding server RAM usage. I'm running multiple paper servers in a kubernetes cluster. Each server runs in a pod. Each server is limited to 4GB of RAM.
I've noticed that even when no players are connected to a server, the server is still using most of the ram that is allowed. This is causing the cluster autoscaler to create more nodes than I'd think would be necessary, given that no players are connected to a server. This is causing excess charges from the cloud provider.
Is there some way to reduce RAM usage on a server when no users are connected? The way that the CPU usage reduces when no users are connected.
Beta Was this translation helpful? Give feedback.
All reactions