«

»

NDB DB Server VM Vertical Scaling

With the release of NDB 2.5 back in October 2022 the capability of vertically scaling your DB Server VM was added as a tech preview and as you know Nutanix does not recommend you to use tech preview features in production environments. However i’m happy to let you know that vertical scaling is no longer a tech preview feature.The scalability action is available via both API and CLI and i’ll demonstrate how to change Compute profile for the DB Server VM pg08_instance from profile XXSmall (2 vCPU & 8 GB Memory) to profile Medium (4 vCPU & 32 GB Memory)

  • NDB DB Server VM
  • Prism Element VM

Follow the below steps to successfully change compute profile.

  1. Get DB Server VM id via API call https://NDB-instance/era/v0.9/dbservers which is required during the scaling operation.
  2. Get the Compute profile id for the target profile via API call https://NDB-instance/era/v0.9/profiles?type=Compute since it’s also required during the scalability API call.
  3. Perform the scaling action via the following API call:
    1. Method = POST
    2. URI = /dbservers/{dbserver_id}/scale
    3. Body / Data = {“targetComputeProfileId”: “ID”}

After triggering the API call there will be an operation in NDB UI you can follow and also tasks in Prism Element

The end result will obviously (or hopefully) be as expected as per:

  • NDB:
  • Prism Element

Useful links

Happy Scaling 🙂