High amount of DB connections #1443
Replies: 4 comments
-
Its likely that your Postal instances are seeing traffic even if you aren't using them, thanks to likely having an open SMTP port, so between that and all the separate processes Postal makes use of, I wouldn't be surprised at the volume of SQL usage. We aren't running a separate SQL setup (yet) so I don't have first hand experience of this. That said, I'm not super familiar with ruby, with or without rails, so its possible there are config improvements available at some level. |
Beta Was this translation helpful? Give feedback.
-
How many connections are you seeing? There shouldn't be lots, and they should be reused 🙁 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@catphish : do you have same behavior on your infra? |
Beta Was this translation helpful? Give feedback.
-
Is there a technical reason to keep postal opening such amount of connections to the database?
We do run our MySQL in a cluster mode (Galera4 + MySQL8) and we see a lot of connections coming from postal instances (2 in our case). (we were using Galera3+MySQL5.7 as well)
It cause interest from our DBA perspective, since under intensive usage it really increase the amount of memory/cpu usage of whole cluster. So, wonder why it doesn't looks like other transactional app? where those tends to reuse one or more threads in a keep alive fashion tunnel.
Beta Was this translation helpful? Give feedback.
All reactions