https://github.com/cloudnative-pg/webtest
A simple PostgreSQL stress tool
https://github.com/cloudnative-pg/webtest
Last synced: 12 months ago
JSON representation
A simple PostgreSQL stress tool
- Host: GitHub
- URL: https://github.com/cloudnative-pg/webtest
- Owner: cloudnative-pg
- License: apache-2.0
- Created: 2021-01-20T13:55:27.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-11T08:25:56.000Z (about 1 year ago)
- Last Synced: 2025-04-06T10:13:41.511Z (12 months ago)
- Language: C++
- Size: 110 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple HTTP stress testing
This small C++ software has only one final scope: to have a simple backend to
be used to test the speed of PostgreSQL workloads when a new connection is
established per every request.
## Configuration
Environment variables are your friends:
* `DATABASE_URL` is used as a connection string (libpq is being used to
communicate with the PostgreSQL server);
* `SQL_QUERY` is the SQL query that will be executed when accessing the `/tx`
endpoint.
The endpoint `/.well-known/check` will always return "ok".
## Other considerations
As previously said, a new connection is established per request, without any
connection pool. Use pgbouncer if you need something like that.
## Docker image
A simple Docker image containing this utility can be found at
[quay.io](https://quay.io/repository/leonardoce/webtest).
## Thanks
https://github.com/yhirose/cpp-httplib is a great tool, really.