如何解决 HTTP 502 错误?

At this scale I recommend dedicated PG resources, any reason you are not running your database on a dedicated instance or managed PG?