# Experiencing very slow response times

**URL:** <https://community.fly.io/t/experiencing-very-slow-response-times/9969>\
**Category:** Questions / Help\
**Tags:** postgres\
**Created:** [January 11, 2023, 1:27pm UTC](https://community.fly.io/t/experiencing-very-slow-response-times/9969 "2023-01-11T13:27:59Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidfro](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@davidfro](https://community.fly.io/u/davidfro)\
**Post date:** [January 11, 2023, 1:27pm UTC](https://community.fly.io/t/experiencing-very-slow-response-times/9969/1 "2023-01-11T13:27:59Z")

</div>

I’ve been running my app on [fly.io](http://fly.io) for the past couple of months, and response times have always been great. This morning all my responses seem to be very slow, on the order of 15-30 seconds. If I hit an invalid path, I get an immediate response. If I hit a path that accesses my postgres database, the response takes a long time. Proxying into my database with flyctl proxy I can access the database just fine use a database application with no noticeable response lag. I do notice some oddities that I’m not sure if they are normal in my postgres metrics. This app is not deployed to any users yet, so I am the only user. With me not doing anything to access the app, “Queries per second” is consistently at about 8 per second, “Transactions” is at 8 commits, “Tuples” is at 400 fetched and 500 returned, and “Cache hit ratio” is at 100%. Any ideas what’s going on? FLY\_REGION is lax, which seems reasonable.

---

<div class="post-metadata">

**Author:** ![containerops](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/containerops/32/13053_2.png) [@containerops](https://community.fly.io/u/containerops)\
**Post date:** [January 11, 2023, 1:46pm UTC](https://community.fly.io/t/experiencing-very-slow-response-times/9969/2 "2023-01-11T13:46:37Z")

</div>

fyi: I just created a similar thread, but not specific to postgresql

> [@Fly Network: Slow response times since yesterday](https://community.fly.io/t/fly-network-slow-response-times-since-yesterday/9970):
>
> We have been experiencing slow response times since yesterday. No changes on our end. Is anyone else experiencing this problem? HTTP Synthetic Monitoring (last 2 days)

---

<div class="post-metadata">

**Author:** ![jsphc](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jsphc/32/40871_2.png) [@jsphc](https://community.fly.io/u/jsphc)\
**Post date:** [January 11, 2023, 3:03pm UTC](https://community.fly.io/t/experiencing-very-slow-response-times/9969/3 "2023-01-11T15:03:01Z")

</div>

Same. Since yesterday response times that normally take ~2 seconds are over 20 seconds. This morning I can’t get a response at all.

---

<div class="post-metadata">

**Author:** ![jerome](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jerome/32/17_2.png) [@jerome](https://community.fly.io/u/jerome)\
**Post date:** [January 11, 2023, 3:07pm UTC](https://community.fly.io/t/experiencing-very-slow-response-times/9969/4 "2023-01-11T15:07:05Z")

</div>

@jsphc @containerops Are you both also accessing a Postgres hosted on Fly?

---

<div class="post-metadata">

**Author:** ![jsphc](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jsphc/32/40871_2.png) [@jsphc](https://community.fly.io/u/jsphc)\
**Post date:** [January 11, 2023, 3:37pm UTC](https://community.fly.io/t/experiencing-very-slow-response-times/9969/5 "2023-01-11T15:37:39Z")

</div>

Yes, DB is postgres hosted on fly. Rails app is also hosted on fly.

---

<div class="post-metadata">

**Author:** ![jerome](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jerome/32/17_2.png) [@jerome](https://community.fly.io/u/jerome)\
**Post date:** [January 11, 2023, 4:27pm UTC](https://community.fly.io/t/experiencing-very-slow-response-times/9969/6 "2023-01-11T16:27:11Z")

</div>

We have a passive health check system where our edges will avoid sending connections to certain hosts if they’re detected as unhealthy from the edge’s perspective. This allows us to circumvent some nodes temporarily in case of network failures or any other condition causing connection failures.

If you only have 1 instance, and it happens to be on a node experiencing difficulties, there’s nowhere better our edge can route to.

That said, these problems shouldn’t persist without us creating a status page incident and investigating. This could be a bug in our proxy where it might be keeping the bad status of a host. I’ve deployed the latest version of our proxy now to all our edges and hope this will get cleared.

That said, I don’t think all our issues are the same!

@davidfro and @jsphc: we’ve detected very high latency between the 2 denver nodes hosting your app and your DB. Looking into that now.

@containerops: this might be the issue I’ve outlined at the start of my message, can you tell if your metrics are better from synthetic monitoring?

---

<div class="post-metadata">

**Author:** ![jerome](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jerome/32/17_2.png) [@jerome](https://community.fly.io/u/jerome)\
**Post date:** [January 11, 2023, 5:22pm UTC](https://community.fly.io/t/experiencing-very-slow-response-times/9969/7 "2023-01-11T17:22:05Z")

</div>

@davidfro @jsphc the issue should now be resolved for Denver.

---

<div class="post-metadata">

**Author:** ![davidfro](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@davidfro](https://community.fly.io/u/davidfro)\
**Post date:** [January 11, 2023, 5:32pm UTC](https://community.fly.io/t/experiencing-very-slow-response-times/9969/8 "2023-01-11T17:32:56Z")

</div>

Much better, thanks!

---

<div class="post-metadata">

**Author:** ![jsphc](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jsphc/32/40871_2.png) [@jsphc](https://community.fly.io/u/jsphc)\
**Post date:** [January 11, 2023, 5:33pm UTC](https://community.fly.io/t/experiencing-very-slow-response-times/9969/9 "2023-01-11T17:33:54Z")

</div>

Yep, can confirm everything is back to normal. Thanks!

---

<div class="post-metadata">

**Author:** ![jerome](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jerome/32/17_2.png) [@jerome](https://community.fly.io/u/jerome)\
**Post date:** [January 11, 2023, 6:51pm UTC](https://community.fly.io/t/experiencing-very-slow-response-times/9969/10 "2023-01-11T18:51:10Z")

</div>

Split this topic on January 11, 2023, 6:51pm UTC

A post was merged into an existing topic: [Fly Network: Slow response times since yesterday](https://community.fly.io/t/fly-network-slow-response-times-since-yesterday/9970/2)

---

<div class="post-metadata">

**Author:** ![blonded](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/blonded/32/38164_2.png) [@blonded](https://community.fly.io/u/blonded)\
**Post date:** [October 5, 2024, 9:27pm UTC](https://community.fly.io/t/experiencing-very-slow-response-times/9969/11 "2024-10-05T21:27:27Z")

</div>

I’m experiencing the same stuff, but im new to fly and dont know much of how to solve it. Can someone help?
