Skip to content

kobanyan/pgtune-api

Repository files navigation

pgtune-api

This project is an API that runs PGTune on Cloudflare Workers.

It can be used for automating the tuning of PostgreSQL.

Since it utilizes the source of PGTune, it is easy to stay up-to-date.

Usage

Make a request by setting values in the query parameters as shown below.

curl "https://pgtune-api.kobanyan-dev.workers.dev/?totalMemory=16"

Refer to the OpenAPI definition for details on query parameters.

Development

Installation

bun install

Execution

bun run dev

Deployment

bun run deploy

Credits

PGTune by @le0pard.