# 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:** [2017 年 2 月 18 日午後 4:13 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:** 1

<div class="post-metadata">

**Author:** ![veer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/veer/32/69391_2.png) [@veer](https://meta.discourse.org/u/veer)\
**Post date:** [2017 年 2 月 18 日午後 4:13 UTC](https://meta.discourse.org/t/discourse-site-with-very-large-database-gives-error-502-frequently/57598/1 "2017-02-18T16:13:07Z")

</div>

About 1 million topics, 20 GB of database, i am using discourse now. The RAM IS 4GB and 2 CPU’s but the site got error 502 after crawling 30-40 pages, using a crawler. Site start giving error 502 after 30-40 page requests. What to do ?

---

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