Skip to content

neondatabase/proxy-bench

Repository files navigation

Neon Proxy Benchmark Suite

Neon's Postgres Proxy has 2 major dependencies.

  1. Control Plane
  2. Postgres

When benchmarking the proxy service, it might be useful to make sure that these are not the bottlenecks. This repo provides mocked implementations of those two services such that the proxy works.

Bench overview

Run

# create TLS certificates
./tls.sh
# Run neon proxy, haproxy, cplane, postgres, and load test
docker compose up -d

Or you can simply run all of this with some report via:

./run.sh

Additionally you can set parameters for the load test via the env variables beforehand (per replica):

$PG_CONNECTION_RATE, default is 50 $PG_CONNECTING_MAX, default is 150 $PG_CONNECTION_MAX, default is 250

$HTTP_CONNECTION_RATE, default is 50 $HTTP_CONNECTION_MAX, default is 5

About

Benchmarking tools for Neon's Postgres Proxy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •