Background workers and Redis, done right for every hosting account

The Supervisor app runs queue workers per website, restarts them after a deploy and caps them per hosting plan, while Redis gives each hosting account its own ACL user confined to its own keys.

02 Dec 2026 4 min read 14 views
Background workers and Redis, done right for every hosting account
Share

Modern web apps do not stop at the request. Laravel queues, Celery workers, Horizon, schedulers and Node.js scripts need to keep running after you log out and come back when they crash, and most of them want Redis for caching, sessions or a queue. On a shared server that usually means root-only Supervisor configs and one Redis instance where every tenant can read every other tenant's keys. VinzaPanel puts both behind the panel, with the same ownership rules as the rest of the hosting account.

Supervisor: workers without a shell

The Supervisor app (Management → Supervisor) is a front end for supervisord. Installing it installs the package if needed, enables the service and adds a small event listener for alerts. On the Programs tab, New program can start from a template (Laravel queue worker, Laravel Horizon, Celery worker, Celery beat, Node.js script or a generic worker) and lets you set:

  • the command, working directory and the Linux user to run as;
  • environment variables, hidden while you type;
  • how many processes run (1–64), the auto-restart policy, start seconds and a stop grace period so a queue worker can finish its job;
  • priority and child-process handling.

Each field is checked before it is written to /etc/supervisor/conf.d/. Saving refuses a command whose script is missing (for example an artisan call with artisan left out) or whose interpreter is not installed, and if supervisord rejects the configuration the change is rolled back.

The Processes tab shows state, PID, CPU, memory (children included) and uptime, with start, stop and restart per process or for all. Logs shows stdout or stderr, and when a process is not running a Why it is not running box explains the last exit code. Groups let you control related programs together, and History records who changed, started or stopped what. When a program goes FATAL or exits three times within ten minutes, you get a panel notification and a message on your alert channels.

Restart workers after every deploy

A queue worker keeps running the old code until it restarts, which is a common source of strange bugs after a release. Tick Restart after a deploy on a program and a successful deploy of a website restarts the flagged programs that run as that website's owner and work from inside its folder. It works for Git Manager deploys (including push-to-deploy webhooks, after the post-deploy commands) and for the Python, Node.js and Go deploy apps. A failed deploy restarts nothing, and other users' programs are never touched.

Background workers for hosting accounts, with limits

The full Supervisor page is for administrators, because a program can run any command as any user. Hosting accounts get a confined Background workers page once you give them the permission Can run own background workers (Supervisor), per user or per group.

The account picks one of its websites and a template (Laravel queue worker, Horizon or scheduler, Symfony Messenger consumer, PHP script, Django Celery worker or beat, Django management command, Python script or Node.js script), and the command, folder and the site's PHP version or Python virtualenv are filled in. Its workers always run as its own Linux user, from a folder in its home.

You control how far each account can go under Hosting accounts on the Supervisor page:

LimitDefault
Workers per account5
Processes per worker2

Exceptions can be set per hosting plan or per account. An account's own limit wins over its plan's, which wins over the default, so you can sell a larger worker allowance on a higher hosting plan. Each account is alerted about its own workers.

Redis: one server, an isolated user per tenant

Redis is one of the required apps installed by the setup wizard, and the Redis page sits under Databases in the sidebar. The panel hardens it on install: Redis is bound to loopback, protected mode is on and authentication moves to an ACL file. The administrator password is generated, stored root-only and can be shown and rotated under Access.

Each hosting account can have its own Redis ACL user, named after its Linux user and confined to keys and pub/sub channels that start with <account>:. That user cannot run commands that list or wipe other accounts' data, such as KEYS, SCAN, FLUSHDB or CONFIG, and on Redis 7 it cannot touch the server-wide functions. Accounts manage this themselves on their own Redis page:

  • enable their Redis user and get a password, shown once;
  • generate a new password or disable the user;
  • copy the connection details and a Laravel example.

Access is the permission Can use own Redis account, on by default for hosting accounts. On a multi-server setup, an account bound to a Vinza Server node gets its user on that node's Redis.

For administrators, the Redis page shows server, memory, stats and client information, the keyspace, connected clients and the slow log. The Persistence and Memory tabs set RDB save points, appendonly, maxmemory and the eviction policy (with presets such as cache and store), write them into redis.conf so they survive a restart, and run a background big-key scan.

Get started

Supervisor and Redis are free apps on every plan. Install Supervisor from the Vinza Store (it needs panel 1.4.1 or later) and open Management → Supervisor; Redis is already on a panel that ran the setup wizard. To open them to customers, grant the two permissions under Administration → Groups or on a user's Permissions. Details are in Supervisor & Background Workers, Users & Roles and Hosting Plans.