VictoriaMetrics icon indicating copy to clipboard operation
VictoriaMetrics copied to clipboard

vmselect: query takes a long time when matched data is huge

Open Howie59 opened this issue 2 years ago • 2 comments

our production have 1000 servers, each serve has 10~30 net card, agent report data every 30s

when i query latest 10 minutes data, vmselect would take a long time 2 response(nearly 10~20s)

is there a solution?

Howie59 avatar Aug 24 '22 11:08 Howie59

@Howie59 , try trace the heavy query either via vmui or via http api. The trace will show query processing places where the query spends the most time. It is recommended upgrading to the latest available version of VictoriaMetrics, since it contains the best query tracing functionality.

See also these docs on how to troubleshoot slow queries.

valyala avatar Aug 26 '22 23:08 valyala

ref https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2896

Howie59 avatar Sep 04 '22 03:09 Howie59

Hi @Howie59! Did you manage to fetch a trace for your query?

hagen1778 avatar Nov 01 '22 13:11 hagen1778

Hi @Howie59! Did you manage to fetch a trace for your query?

sry, vm is deployed in Intranet

Howie59 avatar Nov 11 '22 06:11 Howie59