How do I scale linode resources based on load [Vertical Scaling]
I understand Kubernetes can allow for horizontal scaling with the creation and destruction of pods but my application can only run in a single instance.
My application will often idle at low resources but occasionally spike. I would like to scale my Linode resources [CPU/RAM] based on this load.
1 Reply
Hi @Jazzy - If you want to scale your Linode to a larger or smaller size automatically, you can write a script that uses our API to make the changes:
https://techdocs.akamai.com/linode-api/reference/post-resize-linode-instance
You may also need to resize the disk in some circumstances:
https://www.linode.com/docs/api/linode-instances/#disk-resize
You could also use something like Terraform:
https://www.linode.com/docs/guides/how-to-build-your-infrastructure-using-terraform-and-linode/