Active a PostgreSQL Connection Pooler
You can activate a managed connection pooler (pgbouncer). Besides enabling it, you can only configure the poolMode. Currently, we support two modes:
transaction: The connection is released back to the pool after the transaction is completed. It is the default mode.session: The connection is released back to the pool after the client disconnects.
Endpoint
To activate the connection pooler, send PATCH request to the following endpoint: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": {
"connectionPooler": {
"enabled": true,
"poolMode": "session"
}
}
}' \
https://api.ionos.com/databases/postgresql/clusters/498ae72f-411f-11eb-9d07-046c59cc737eResponse
Last updated
Was this helpful?