2

Is victoriametrics read api asynchronous? If i have 5 microservices that read from it will each read request be executed in parallel?

  • 1
    Yes, VictoriaMetrics API is async so the queries will run in parallel. – Denys Holius Aug 01 '23 at 08:20
  • Ok, so assume one has many rules in vmalert that are enforced on victoriametrics. I assume that it will have high iteration duration for rule enforcement. In this case, what is the solution for scaling up and reducing the iteration duration? – Jhonathan Mizrahi Aug 01 '23 at 08:28
  • would it be running multiple vmalert instances for rule enforcement or scaling up victoriametrics? – Jhonathan Mizrahi Aug 01 '23 at 08:36
  • 2
    vmalert runs configured rule groups concurrently. But rules within the group are executed sequentially, unless `concurrency ` param is changed - see https://docs.victoriametrics.com/vmalert.html#groups To scale VM's capabilities to handle many parallel requests one should consider scaling vmselect components horizontally - see https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html#architecture-overview Adding more vmselects is preferred for serving many lightweight parallel requests. Scaling vmselect vertically (by adding CPUs) is preferred to speed up requests execution. – hagen1778 Aug 02 '23 at 08:53
  • Amazing, thanks – Jhonathan Mizrahi Aug 03 '23 at 06:05

0 Answers0