low-runner

command module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2022 License: BSD-2-Clause Imports: 15 Imported by: 0

README

Low-runner

Low-runner is simulation tool for PostgreSQL that run xacts/queries in a loop

WARNING: this tool is in early stage of development.

Install

go get https://github.com/orgrim/low-runner

Run

LOWRUNNER_DB_URL="host=/tmp port=13609 dbname=bench" low-runner

See usage with --help, each CLI option has a fallback environment variable. The usual PG* environment variables are used if present as a fallback.

REST API

See api.go like a true devops ☮️

Manage transactions:

  • GET /v1/xacts: list current xacts in the loop
  • POST /v1/xacts: add a new xact to the loop
  • GET /v1/xacts/:id: get a xact by id from the loop
  • PATCH /v1/xacts/:id: append queries to a xact in the loop
  • PUT /v1/xacts/:id: replace a xact in the loop
  • DELETE /v1/xacts/:id: remove a xact from the loop

Change the schedule:

  • GET /v1/schedule: show the workers, interval or pause the loop
  • POST /v1/schedule: change the schedule, workers, interval or pause the loop

Change a whole run (xacts and schedule):

  • GET /v1/run: dump the run
  • POST /v1/run: load a new run

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL