All threads / This website is under heavy load (queue full)

Ask A Question

Notifications

You’re not receiving notifications from this thread.

This website is under heavy load (queue full)

Stephen Sizer asked in Servers

I just got this message today on my production site. Website is running an ROR backend with a React front end.

Current site is running on Hatchbox/Digital Ocean with 16vCPUs, 32gb Memory and 200gb SSD so its a big server.

Looking at the graphs on DO

  • CPU doesn't go over 30%,
  • Memory is at 15%
  • The only thing that spiked was the Disk I/O that spiked to 1.17 mb/s

Any help would be appreciated.

Sounds like a lot of requests all came in at once. That's can happen when you're load testing, have a big spike in traffic (like launching something new) or if you're getting attacked by malicious users.

You can increase Passenger's queue size configuration, but it may just fill up the larger queue if Rails isn't processing requests fast enough. You might want to check and make sure that your response times in Rails are not slowing down with slow views / queries.

What's the best way to test slow queries?

Also thanks for the quick response Chris it's always appreciated :)

Skylight (my favorite), AppSignal, New Relic, etc are useful as they'll monitor your app's response times and can help you pinpoint slow stuff like queries or views.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 53,406+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.