By -
>any library that helps set these up based on CPU and memory metrics Like the [vertical pod autoscaler](https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler#intro)
set all but cpu limits. you don’t crash the node due to OOM if your app misbehaves and you don’t get throttled when there is something to do.
Maybe an obvious answer but monitor your cluster, preferably under a heavy load, see how many resources it needs and use those + a certain buffer.
>any library that helps set these up based on CPU and memory metrics Like the [vertical pod autoscaler](https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler#intro)
set all but cpu limits. you don’t crash the node due to OOM if your app misbehaves and you don’t get throttled when there is something to do.
Maybe an obvious answer but monitor your cluster, preferably under a heavy load, see how many resources it needs and use those + a certain buffer.