# Discourse site with very large database gives error 502 frequently

**URL:** <https://meta.discourse.org/t/discourse-site-with-very-large-database-gives-error-502-frequently/57598>\
**Category:** Product Support\
**Created:** [18.Февраль.2017 16:13:07 UTC](https://meta.discourse.org/t/discourse-site-with-very-large-database-gives-error-502-frequently/57598 "2017-02-18T16:13:07Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [18.Февраль.2017 16:27:21 UTC](https://meta.discourse.org/t/discourse-site-with-very-large-database-gives-error-502-frequently/57598/8 "2017-02-18T16:27:21Z")

</div>

> [@veer](#):
>
> When i start crawling 502 error starts.

Well, yeah, as your DDOSing your server, you are straining it. For what you described in your initial post, you need to really boost your hardware. Discourse is not light/easy on hardware, it requires a lot of it and with 1 million topics and a database size of 20 GB, you need more than 4 GB of RAM, you are liking utilizing a LOT of your SWAP with that setup (if I had to guess)

---

_[View the full topic](https://meta.discourse.org/t/discourse-site-with-very-large-database-gives-error-502-frequently/57598)._
