# Connection timed out while connecting to upstream on AWS

**URL:** <https://meta.discourse.org/t/connection-timed-out-while-connecting-to-upstream-on-aws/46517>\
**Category:** Self-hosting\
**Tags:** hosting\
**Created:** [Juin 27, 2016, 4:15 UTC](https://meta.discourse.org/t/connection-timed-out-while-connecting-to-upstream-on-aws/46517 "2016-06-27T16:15:40Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Paulo\_Silveira](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulo_silveira/32/121689_2.png) [@Paulo\_Silveira](https://meta.discourse.org/u/Paulo_Silveira)\
**Post date:** [Juin 28, 2016, 3:41 UTC](https://meta.discourse.org/t/connection-timed-out-while-connecting-to-upstream-on-aws/46517/13 "2016-06-28T03:41:06Z")

</div>

my hypothesis is that there is a corner case in the latests versions of discourse that generates heavy sql queries for users with a lot of posts (migrated posts by the way). we will try to further investigate it, take a look at the query speed and maybe try newrelic. We will keeo you posted if we find real data. The production.log did not offer any insights.

---

_[View the full topic](https://meta.discourse.org/t/connection-timed-out-while-connecting-to-upstream-on-aws/46517)._
