VictoriaMetrics/app/vmselect
Andrei Baidarov 3120dc2054
app/vmselect: fixes possible panics for multitenant queries
This commit fixes panic for multitenant requests and empty storage node responses for tenants api.

 It also optimizes `populateSqTenantTokensIfNeeded` function calls, by making it only once for query request. Previously it was incorrectly called multiple times per each storage node request.

Related issue: 
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7549
---------
Signed-off-by: f41gh7 <nik@victoriametrics.com>
Co-authored-by: f41gh7 <nik@victoriametrics.com>
2024-11-15 16:12:30 +01:00
..
clusternative all: fix golangci-lint(revive) warnings after 0c0ed61ce7 2024-04-03 03:00:45 +03:00
deployment all: suppress InvalidDefaultArgInFrom warning emitted by docker build when building Docker packages via make package-* command 2024-09-03 14:05:43 +02:00
graphite app/vmselect: fixes graphite function transformRemoveEmptySeries 2024-11-07 13:00:18 +01:00
graphiteql app/vmselect: use strings.EqualFold instead of strings.ToLower where appropriate 2024-05-12 10:21:24 +02:00
multiarch app/*/multiarch: return back empty value for TARGETARCH 2024-09-06 18:15:22 +02:00
netstorage app/vmselect: fixes possible panics for multitenant queries 2024-11-15 16:12:30 +01:00
prometheus vmstorage: auto calculate maxUniqueTimeseries based on resources (#6961) 2024-10-18 13:41:43 +02:00
promql app/vmselect: fixes possible panics for multitenant queries 2024-11-15 16:12:30 +01:00
querystats vmselect: add support of multi-tenant queries (#6346) 2024-10-01 16:37:18 +02:00
searchutils docs: clarify flags -search.maxxxDuration can only be overridden to… (#7227) 2024-10-27 20:25:17 +01:00
static/css app/vmselect: properly serve static css for /select/.../metric-relabel-debug page 2022-12-10 03:04:43 -08:00
vmui app/{vmselect,vlselect}: run make vmui-update vmui-logs-update 2024-11-04 10:59:58 -03:00
main.go vmselect: add support of multi-tenant queries (#6346) 2024-10-01 16:37:18 +02:00
Makefile make: add darwin builds for cluster (#7195) 2024-10-08 10:19:04 +02:00
README.md app/vmselect: expose vmui at /vmselect/<accountID>/vmui/ instead of /vmselect/<accountID>/prometheus/vmui/ 2021-07-10 12:32:21 +03:00
vmui.go app/vmselect: add missing whitespace into the description for -vmui.defaultTimezone command-line flag 2024-02-01 14:49:48 +02:00

vmselect performs the following tasks:

  • Splits incoming selects to tasks for vmstorage nodes and issues these tasks to all the vmstorage nodes in the cluster.

  • Merges responses from all the vmstorage nodes and returns a single response.

The vmui directory contains static contents built from app/vmui package with make vmui-update command. The vmui page is available at http://<vmselect>:8481/select/<accountID>/vmui/.