Skip to content

feat(prod): Lightweight bench#22

Merged
Aradhya-Tripathi merged 10 commits into
mainfrom
prod-setup
Jun 5, 2026
Merged

feat(prod): Lightweight bench#22
Aradhya-Tripathi merged 10 commits into
mainfrom
prod-setup

Conversation

@Aradhya-Tripathi
Copy link
Copy Markdown
Contributor

@Aradhya-Tripathi Aradhya-Tripathi commented Jun 4, 2026

Production process management

Replaces the single supervisor-based production mode with three-mode system driven by a new [production] section in bench.toml:

Development (no [production] section): foreground Procfile runner, unchanged.
Supervisor (lightweight = false, default): bench-owned supervisord instance running as the frappe user. System supervisor is installed via apt but immediately disabled — no root daemon running alongside it. All supervisorctl calls use the local socket (config/supervisor/supervisord.sock).
Systemd (lightweight = true): systemctl --user units symlinked into ~/.config/systemd/user/. Workers are consolidated into a single pool process to keep unit count low. Requires loginctl enable-linger once as root.

Default setup uses Systemd

@Aradhya-Tripathi Aradhya-Tripathi merged commit b75dc9a into main Jun 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant