Discourse site with very large database gives error 502 frequently

I don’t understand what that has to do with a 502 error when requesting a page… Sidekiq isn’t used on page requests.