Environments
| Environment | Description |
|---|---|
| VERTEX_WORKER_THREADS | How many threads the Tokio runtime will use |
| VERTEX_MAX_BLOCKING_THREADS | The limit for additional blocking threads spawned by the Runtime |
| VERTEX_LOG | Log level filter, see examples |
Using environment in config
sources:
http_check:
type: http_check
targets:
- http://${HOSTNAME}:80Some feature of Environment expansions is supported too.
${parameter:-word}
If parameter is unset or null, the word returned. Otherwise, the value of parameter is returned.
$ v=123
$ echo ${v-unset}
123
$ echo ${v:-unset-or-null}
123
$ unset v
$ echo ${v-unset}
unset
$ v=
$ echo ${v-unset}
$ echo ${v:-unset-or-null}
unset-or-null
${parameter:?word}
If parameter is unset or null, vertex throw an warning.
$ var=
$ : ${var:?var is unset or null}
bash: var: var is unset or null
$ echo ${var?var is unset}
$ unset var
$ : ${var?var is unset}
bash: var: var is unset
$ : ${var:?var is unset or null}
bash: var: var is unset or null
$ var=123
$ echo ${var:?var is unset or null}
123