Discourse site with very large database gives error 502 frequently

Why are you crawling a site that you own the database? Especially one that is a bit under provisioned?