How to resolve HTTP 502 error?

I am pretty sure the q23 instance has a DB this big and they are not on dedicated PG.