Scale a PostgreSQL Cluster Vertically
DBaaS supports increasing or decreasing the size of your database instances, such as cores or ram. You can modify either one or both simultaneously by sending a PATCH request with the new size specifications.
Endpoint
Use the following endpoint to scale your PostgreSQL cluster vertically :https://api.ionos.com/databases/postgresql/clusters/{clusterId}
Request
curl --include \
--request PATCH \
--user "[email protected]:Mb2.r5oHf-0t" \
--header "Content-Type: application/json" \
--data-binary '{
"metadata": {},
"properties": {
"cores": 4,
"ram": 4096
}
}' \
https://api.ionos.com/databases/postgresql/clusters/498ae72f-411f-11eb-9d07-046c59cc737eResponse
Caution: This change replaces the underlying nodes and triggers one failover. Schedule this change during a maintenance window and ensure applications can handle a brief connectivity interruption.
Last updated
Was this helpful?