docs/vmauth.md: add Config reload chapter, which explains how to reload -auth.config at vmauth

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1194
This commit is contained in:
Aliaksandr Valialkin 2024-02-13 20:29:30 +02:00
parent 582681ce58
commit f120477231
No known key found for this signature in database
GPG Key ID: 52C003EE2BCDB9EB

View File

@ -457,6 +457,17 @@ unauthorized_user:
- "Server:"
```
## Config reload
`vmauth` supports dynamic reload of [`-auth.config`](#auth-config) via the following ways:
- By sending `SIGHUP` signal to `vmauth` process:
```
kill -HUP `pidof vmauth`
```
- By querying `/-/reload` endpoint. It is recommended protecting it with `-reloadAuthKey`. See [security docs](#security) for details.
- By passing the interval for config check to `-configCheckInterval` command-line flag.
## Concurrency limiting
`vmauth` limits the number of concurrent requests it can proxy according to the following command-line flags: