multi-tenant-fairness

command
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

README

Multi-tenant fairness

Serve a small tenant's 5 jobs before a big tenant's 200-job backlog drains, with Fairness: true and PerKeyLimit: 3.

docker compose -f deploy/docker-compose.yml up -d --wait postgres  # Postgres on localhost:55432
go run ./examples/multi-tenant-fairness                            # safe to rerun

Default FOREMAN_DATABASE_URL: postgres://foreman:foreman@localhost:55432/foreman?sslmode=disable.

Expected output

small tenant served before the backlog drained: true

Documentation

Overview

Command multi-tenant-fairness shows a small tenant served despite a large backlog.

Jump to

Keyboard shortcuts

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