neondatabase / autoscaling

Postgres vertical autoscaling in k8s
Apache License 2.0
163 stars 21 forks source link

Add support for having a swap disk in VMs #801

Closed hlinnaka closed 8 months ago

hlinnaka commented 9 months ago

The swap disk needs to be configured in the VM spec.

This also sets the size of /dev/shm to match the size of swap (if it's larger than the 1/2 of initial memory size, which is the Linux default).

See https://github.com/neondatabase/autoscaling/issues/800. This doesn't implement "autoscale if swapping" behavior yet.