Settings
Built: settings in layers: built-in defaults, /etc/doris/settings.*, the user’s $XDG_CONFIG_HOME/doris/settings.*, the checkout’s untracked .doris/settings.*, then --settings FILE, -j and --set KEY=VALUE, read by every command. The keys are jobs.max, pools.NAME, resources.enforce, resources.cgroup, resources.pin, resources.measure, dirs.keep_failed, dirs.work_max_age, tools.NAME.path, plugins.path and gc.*. The system and user files can limit jobs.max and pools.NAME, and doris settings lists every value and where it came from. The only environment variables doris reads for itself are XDG_CONFIG_HOME, XDG_CACHE_HOME and HOME, to find its files, and PATH, to find tools.
This page is what settings still lack.
Keys that can’t be set
| Key | Default | Example of who sets it |
|---|---|---|
dirs.work | <repo>/scratch/doris | User or checkout: a fast local disk |
dirs.cache | $XDG_CACHE_HOME/doris | User: a larger disk |
output.* | Progress on a terminal | User: colour, how much of each step is printed |
Work goes to scratch/doris/ in the repo, and the cache is found from XDG_CACHE_HOME or HOME alone. Moving either would change no result and invalidate nothing, since cache keys hold no absolute path.
Limits on more keys
Only jobs.max and pools.NAME can be limited. A site could cap gc.max_size on shared home directories the same way, or require resources.enforce. Which keys can be limited is part of each key’s definition.
Line numbers
An unknown key or a bad value names the settings file it is in, but not the line: a file is read into one table before its keys are checked.
The defaults
The defaults in Settings are placeholders to be agreed.