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 a92f7a870d
commit 3f74cadba4
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: