# How to resolve HTTP 502 error?

**URL:** <https://meta.discourse.org/t/how-to-resolve-http-502-error/109118>\
**Category:** Support\
**Created:** [February 14, 2019, 6:29am UTC](https://meta.discourse.org/t/how-to-resolve-http-502-error/109118 "2019-02-14T06:29:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [February 14, 2019, 10:40pm UTC](https://meta.discourse.org/t/how-to-resolve-http-502-error/109118/4 "2019-02-14T22:40:12Z")

</div>

> [@pfaffman](#):
>
> You should have enough ram to hold the entire database in cache.

If it is a very large database, that advice changes to “most” of the database in cache. At least half.

---

_[View the full topic](https://meta.discourse.org/t/how-to-resolve-http-502-error/109118)._
