mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 20:37:12 +01:00
app/vmauth: allow specifying max_concurrent_requests
value on a per-user basis bigger than the -maxConcurrentPerUserRequests
value
This commit is contained in:
parent
e5070c0bcd
commit
438b2e11bd
@ -64,7 +64,7 @@ func (ui *UserInfo) endConcurrencyLimit() {
|
||||
|
||||
func (ui *UserInfo) getMaxConcurrentRequests() int {
|
||||
mcr := ui.MaxConcurrentRequests
|
||||
if mcr <= 0 || mcr > *maxConcurrentPerUserRequests {
|
||||
if mcr <= 0 {
|
||||
mcr = *maxConcurrentPerUserRequests
|
||||
}
|
||||
return mcr
|
||||
|
Loading…
Reference in New Issue
Block a user