VictoriaMetrics/app
Roman Khavronenko 5bc8d8f290
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-08 22:58:05 -07:00
..
vmagent Revert "http server: limit max concurrent requests (#4185)" (#4215) 2023-05-08 17:22:27 -07:00
vmalert vmalert: fix API to return non-nil values (#4222) 2023-05-08 21:47:51 -07:00
vmauth Revert "http server: limit max concurrent requests (#4185)" (#4215) 2023-05-08 17:22:27 -07:00
vmbackup Revert "http server: limit max concurrent requests (#4185)" (#4215) 2023-05-08 17:22:27 -07:00
vmbackupmanager Revert "http server: limit max concurrent requests (#4185)" (#4215) 2023-05-08 17:22:27 -07:00
vmctl app/vmctl: add support for the different time format in the native binary protocol (#4189) 2023-05-08 14:21:59 -07:00
vmgateway Revert "http server: limit max concurrent requests (#4185)" (#4215) 2023-05-08 17:22:27 -07:00
vminsert app/vminsert: correctly allocate buffer for storagenodes (#554) 2023-05-08 08:57:15 -07:00
vmrestore Revert "http server: limit max concurrent requests (#4185)" (#4215) 2023-05-08 17:22:27 -07:00
vmselect vmselect: exit early from queue on context cancel (#4223) 2023-05-08 22:58:05 -07:00
vmstorage lib/storage: replace OpenStorage() with MustOpenStorage() 2023-04-14 23:04:42 -07:00
vmui vmui: add metric relabel debug (#3889) 2023-05-08 14:59:35 -07:00