GithubHelp home page GithubHelp logo

Comments (13)

zekker6 avatar zekker6 commented on June 22, 2024

Hello @surekha3
Could you provide the following information:

  • which version of VictoriaMetrics are you running?
  • are there any errors in VictoriaMetrics logs?
  • could you check the network tab in browser to get the full error text and share the result?

from victoriametrics.

surekha3 avatar surekha3 commented on June 22, 2024

Hi @zekker6 ,

  1. We're running victoriametrics app version 1.95.1
  2. In victoriametrics select logs, I have seen attached error log. Also after sometime, I observed there is drastic consumption of CPU and RAM by victoriametrics storage pods. Is this because of reason of VMUI?
  3. It's working sometimes but when I changed the date on top right it's throwing attached error page
victoriaselectlogs victoriauierror victoriaselectlogs

from victoriametrics.

zekker6 avatar zekker6 commented on June 22, 2024

@surekha3 Based on the vmselect error messages it seems like vmstorage is not able to keep up with the requests rate and thus vmselect returns an error.
I would suggest to set up a monitoring for VictoriaMetrics cluster and a dashboard. By using this dashboard you will be able to see if vmstorage hits the resources limits.

from victoriametrics.

surekha3 avatar surekha3 commented on June 22, 2024

@zekker6 You mean vmstorage pod resource limits or -search.maxconcurrentRequests parametes in victoriametrics config?

from victoriametrics.

zekker6 avatar zekker6 commented on June 22, 2024

@surekha3 In this case it is search.maxconcurrentRequests. Default value for this flag is calculated as number of CPUs * 2 in this case. Usually this default allows to effectively utilize resources available to vmstorage node so it is likely that vmstorage is hitting resource limits as well.

from victoriametrics.

surekha3 avatar surekha3 commented on June 22, 2024

okay when I load VMUI explore cardinality for today's date. it's working fine. But when I load for yesterday's date it's throwing above attached 422 error. So in this case, when I increase maxconcurrentRequests parameter, will it work fine?
Also after using this VMUI, cpu and memory utilisation increased drastically. Is it because of this parameter only?

from victoriametrics.

zekker6 avatar zekker6 commented on June 22, 2024

okay when I load VMUI explore cardinality for today's date. it's working fine. But when I load for yesterday's date it's throwing above attached 422 error. So in this case, when I increase maxconcurrentRequests parameter, will it work fine?

Based on the info above it should help. However, screenshot of browser requests lacks an actual request which returned 422 error. It would be great if you could open "network" tab and run a request once again just to confirm that request does return this specific error.

Also after using this VMUI, cpu and memory utilisation increased drastically. Is it because of this parameter only?

It's hard to tell without cluster monitoring as mentioned above. Using Grafana dashboard for the cluster monitoring will allow to see which requests were taking place at this time and correlate these requests with resource usage spikes.

from victoriametrics.

surekha3 avatar surekha3 commented on June 22, 2024

okay
Can you please guide why there are so many yellow coloured vertical lines in the attached screenshot of one cluster. But I'm not seeing them in other cluster. Is this some issue with first cluster
vmdashboardpage

from victoriametrics.

zekker6 avatar zekker6 commented on June 22, 2024

@surekha3 You can hover the cursor over an arrow in the bottom of the graph and see the title of this vertical line. Yellow ones are usually representing a component restart. It's better to investigate the root cause of the restart in order to make sure the cluster is stable.

from victoriametrics.

surekha3 avatar surekha3 commented on June 22, 2024

@zekker6 you're correct. It states getting restarted. Is that because of leaving default value for -search.maxconcurrentRequests value as 2. Will heavy load causes these restarts?

from victoriametrics.

zekker6 avatar zekker6 commented on June 22, 2024

@surekha3 Heavy load can cause restarts only in case OOM is involved. -search.maxConcurrentRequests limits amount of requests vmstorage node will process at a time in order to prevent running out of resources, so this should not cause restarts.
Could you check the reason of pods restart in k8s events?

from victoriametrics.

surekha3 avatar surekha3 commented on June 22, 2024

@zekker6 Though it's showing as pod restarts in Grafana dashboard, when I ran kubectl events command, it's not showing as pod get restarted which seems strange

from victoriametrics.

zekker6 avatar zekker6 commented on June 22, 2024

@surekha3 Restarts annotation uses the following query: sum(changes(vm_app_start_timestamp)) by(job)
Could you run this query and check the value of vm_app_start_timestamp?

from victoriametrics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.