Hosting Tiers Hub (8)
Running Symfony Messenger Consumers on Systemd vs Supervisor
Guarantee zero-downtime worker restarts, clean memory recycling, and cgroup RAM ceilings for Sylius async queues.
MemoryMax=220M cgroup · --time-limit=3600 · Graceful SIGTERM
Systemd Template Units vs Supervisor Process Groups
Modern Ubuntu/Debian VDS hosts natively support systemd template units (sylius-messenger@.service) with cgroup MemoryMax=220M protection and automatic journald logging, removing Python Supervisor overhead while providing clean stop signals.
Graceful Shutdown Signals During Deployments
Always invoke php bin/console messenger:stop-workers before switching symlinks in a blue-green deploy so in-flight order confirmation emails finish before new code boots.
Measured Thresholds & Configuration
| Process Manager | Memory Enforcement | Deploy Integration | Best Host Fit |
|---|---|---|---|
| systemd (@.service) | Kernel cgroup MemoryMax= | systemctl restart sylius-messenger@* | UltaHost VDS / Root Linux |
| Supervisor | numprocs + --memory-limit | supervisorctl restart sylius:* | Managed VPS / Docker containers |
| Docker Compose Replicas | deploy.resources.limits.memory | docker compose up -d --no-deps | Containerized CI/CD stacks |