<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ethan</title>
    <description>The latest articles on DEV Community by Ethan (@xipher7934).</description>
    <link>https://dev.to/xipher7934</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F457694%2F18f98ae4-1bf9-4770-b3e6-f0ae32a9b001.jpeg</url>
      <title>DEV Community: Ethan</title>
      <link>https://dev.to/xipher7934</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/xipher7934"/>
    <language>en</language>
    <item>
      <title>Stumped about Rails Connection Limit Error</title>
      <dc:creator>Ethan</dc:creator>
      <pubDate>Tue, 01 Sep 2020 19:32:14 +0000</pubDate>
      <link>https://dev.to/xipher7934/stumped-about-rails-connection-limit-error-13i2</link>
      <guid>https://dev.to/xipher7934/stumped-about-rails-connection-limit-error-13i2</guid>
      <description>&lt;p&gt;Over the last year I have been getting random ActiveRecord::ConnectionTimeoutError errors, where the application could not obtain a connection from the pool within 5 seconds. But I'm stumped as to what the actual issue is...&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;we're using an AWS RDS instance that can handle hundreds of connections, which we never even come close to by the RDS connection log (max use is ~30).&lt;/li&gt;
&lt;li&gt;I have been over forums that talk about using Thread.new... but we don't spin any of our own threads.&lt;/li&gt;
&lt;li&gt;I've seen forums that talk about workers using more pool connections than necessary, but I haven't set up any puma workers, we just use web instances!&lt;/li&gt;
&lt;li&gt;There is no consistency in which controller#action throws the error, and no consistency on time of day or week.&lt;/li&gt;
&lt;li&gt;Sometimes the error will not show up for weeks, and then I'll get 15 instances of it in a few days&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'm at a loss as to where to even start looking...&lt;/p&gt;

</description>
      <category>rails</category>
      <category>postgres</category>
      <category>help</category>
    </item>
  </channel>
</rss>
