Run the control plane locally
Run the API with the subprocess runner. Connections stay on your machine and use plain HTTP.
Prerequisites
Section titled “Prerequisites”- Docker, Go,
uvand Node.js at the versions in the checkout’s.tool-versions. - Ports 15432, 18080 and 15173 free.
-
From the servtuner checkout, install dependencies and build the servtuner CLI.
Terminal window uv sync --project api --lockednpm --prefix frontend ci(cd bench && go build -o /tmp/servtuner ./cmd/servtuner) -
Start Postgres for local use only.
Terminal window docker run -d --rm --name servtuner-local-pg -p 127.0.0.1:15432:5432 \-e POSTGRES_USER=servtuner -e POSTGRES_PASSWORD=local-only -e POSTGRES_DB=servtuner postgres:17 -
Start the API.
Terminal window export SERVTUNER_RUNNER=subprocess SERVTUNER_BENCH_BINARY=/tmp/servtunerexport SERVTUNER_DATA_DIR=/tmp/servtuner-data SERVTUNER_API_PORT=18080 SERVTUNER_TLS_MODE=platformexport SERVTUNER_DATABASE_HOST=127.0.0.1 SERVTUNER_DATABASE_PORT=15432 SERVTUNER_DATABASE_NAME=servtunerexport SERVTUNER_DATABASE_USER=servtuner SERVTUNER_DATABASE_PASSWORD=local-only SERVTUNER_DATABASE_SSLMODE=disableuv run --project api servtuner-api -
Start the frontend in another terminal.
Terminal window cd frontendSERVTUNER_DEV_API=http://127.0.0.1:18080 npx vite --host 127.0.0.1 --port 15173 --strictPort -
Open
http://127.0.0.1:15173/.
Set SERVTUNER_SECRET_STORE=file to store target keys in files for local development.
Verify
Section titled “Verify”curl --fail http://127.0.0.1:18080/healthzcurl --fail http://127.0.0.1:15173/api/runsThen create the first run in New run.
Clean up
Section titled “Clean up”Stop the API and frontend, then run docker stop servtuner-local-pg. Delete /tmp/servtuner-data when you no longer need the runs.
Next steps
Section titled “Next steps”Use just e2e-local-platform or just e2e-local-mtls to run the local end-to-end tests, or install with Helm.