Benoit Chesneau 2639215aa3 feat(dirty): add TTIN/TTOU signal support for dynamic worker scaling
Add support for SIGTTIN and SIGTTOU signals to the dirty arbiter,
allowing dynamic scaling of dirty workers at runtime without restarting
gunicorn.

Changes:
- Add TTIN/TTOU to DirtyArbiter.SIGNALS
- Add num_workers instance variable for dynamic count
- Add _get_minimum_workers() to enforce app worker constraints
- Add signal handlers for TTIN (increase) and TTOU (decrease)
- Update manage_workers() to use dynamic count
- Add documentation for dynamic scaling
- Add unit tests for signal handling
- Add Docker integration tests

The minimum worker constraint ensures TTOU cannot reduce workers below
what apps require (e.g., if an app has workers=3, minimum is 3).

Closes #3489
2026-02-12 23:52:12 +01:00
..
2026-02-06 08:21:18 +01:00

Generate Documentation

Requirements

Install the documentation dependencies with:

pip install -r requirements_dev.txt

This provides MkDocs with the Material theme and supporting plugins.

Build static HTML

mkdocs build

The rendered site is emitted into the site/ directory.

Preview locally

mkdocs serve

This serves the documentation at http://127.0.0.1:8000/ with live reload.