Configuration via Environment Variables¶
Use these environment variables to configure Zammad’s behavior at runtime.
🙋 What’s an environment variable, and how do I “use” it?
Unfortunately, that question has a very long answer that goes beyond the scope of this article. How you set environment variables will depend on how you installed Zammad (e.g., source, package, or Docker).
But for package installations, here’s a short answer:
# set OPTION to "value" $ zammad config:set OPTION=value $ systemctl restart zammad # unset OPTION $ zammad config:set OPTION= $ systemctl restart zammad
To learn more, do some googling on environment variables and the shell environment (or execution environment) in Unix.
The command Zammad will use to automatically restart the server after changes have been made in the Object Manager. (E.g.,
"systemctl restart zammad")
If this is undefined, you will have to restart manually after making changes in the Object Manager.
Print output directly to standard output instead of
On package installations, ⏫ this setting can be overwritten during update.
enabledto turn this option on only until the next update. Use
trueto turn it on permanently.
🖧 Network Options¶
The IP address that the web server is bound to.
The port that the web server is exposed on.
The port that the websocket server is exposed on.
Remember to update your webserver config to reflect any changes you make here.
🎛️ Performance Tuning¶
⚖️ Each of these settings comes with its own tradeoffs.
There are no “recommended values” here; the optimal configuration will depend on your system’s resources and typical application load.
Proceed with caution; when adjusting any of these settings, there is a point at which performance will begin to degrade rather than improve, or other problems will begin to crop up.
How many instances of the application server to keep open at a time.
Increasing this can reduce loading times when too many users are on Zammad at once.
How many instances of the session worker to run at a time.
Increasing this can speed up background jobs (like the scheduler) when too many users are on Zammad at once.
Generally speaking, it should only be useful to adjust this setting if you have more than 40 active users at a time.
🥵 Session workers can be extremely CPU-intensive.
In some cases, they can reach 100% CPU utilization on their own. Increasing this setting is safer on systems with more cores.
🤔 How can I find out how many users are currently on Zammad?
$ zammad run rails r "p Sessions.list.uniq.count"