VictoriaMetrics/app
Roman Khavronenko baf456978d
vmselect: exit early from queue on context cancel (#4223)
* vmselect: exit early from queue on context cancel

When `-search.maxConcurrentRequests` is reached, vmselect puts
request in the queue. It is expected, that requests in the queue
will be processed as soon as it would be enough capacity to do so.

However, it could happen that while request was waiting its turn,
the client could have already cancel it (close the connection,
or just close the tab with UI). In this case, we should de-queue
such requests to avoid spending extra resources on them.

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* app/vmselect: address review comments

Signed-off-by: hagen1778 <roman@victoriametrics.com>

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
2023-05-03 10:42:17 +02:00
..
victoria-metrics lib/streamaggr: follow-up for ff72ca14b9 2023-03-31 22:30:38 -07:00
vmagent Revert "http server: limit max concurrent requests (#4185)" (#4215) 2023-04-27 13:02:47 +02:00
vmalert vmalert: fix API to return non-nil values (#4222) 2023-04-28 10:08:29 +02:00
vmauth Revert "http server: limit max concurrent requests (#4185)" (#4215) 2023-04-27 13:02:47 +02:00
vmbackup Revert "http server: limit max concurrent requests (#4185)" (#4215) 2023-04-27 13:02:47 +02:00
vmbackupmanager Revert "http server: limit max concurrent requests (#4185)" (#4215) 2023-04-27 13:02:47 +02:00
vmctl app/vmctl: add support for the different time format in the native binary protocol (#4189) 2023-04-24 18:33:30 +02:00
vmgateway Revert "http server: limit max concurrent requests (#4185)" (#4215) 2023-04-27 13:02:47 +02:00
vminsert lib/streamaggr: follow-up for ff72ca14b9 2023-03-31 22:30:38 -07:00
vmrestore Revert "http server: limit max concurrent requests (#4185)" (#4215) 2023-04-27 13:02:47 +02:00
vmselect vmselect: exit early from queue on context cancel (#4223) 2023-05-03 10:42:17 +02:00
vmstorage lib/storage: replace OpenStorage() with MustOpenStorage() 2023-04-14 23:02:40 -07:00
vmui vmui: add metric relabel debug (#3889) 2023-04-26 11:53:29 +03:00