Scale a PostgreSQL Cluster Horizontally
DBaaS supports increasing and decreasing the amount of your database replicas. To do so, issue a PATCH request containing the new replica count (between 1 and 5).
Endpoint
Use the following endpoint to scale your PostgreSQL cluster horizontally :https://api.ionos.com/databases/postgresql/clusters/{clusterId}
Request
curl --include \
--request PATCH \
--user "clientname@ionos.com:Mb2.r5oHf-0t" \
--header "Content-Type: application/json" \
--data-binary '{
"metadata": {},
"properties": {
"instances": 1
}
}' \Response
Caution: Scaling down can result in failovers and interrupt open connections.
Last updated
Was this helpful?