You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prior to setting up a cache file to store the latest currency exchange rates and just have them updated on a daily basis, we were just doing update_rates on our money.rb initializer.
After the first request, all of the puma workers (that were called) became pinned at 100% CPU usage so this is what our development machine's htop looked like at idle after the first few requests:
I went down a rabbit hole with puma, thinking it must be the culprit, but it was actually just calling update_rates that caused this. Here is a comparison of what changes between this issue being present or not.
Prior to setting up a cache file to store the latest currency exchange rates and just have them updated on a daily basis, we were just doing
update_rates
on ourmoney.rb
initializer.After the first request, all of the
puma
workers (that were called) became pinned at 100% CPU usage so this is what our development machine'shtop
looked like at idle after the first few requests:I went down a rabbit hole with
puma
, thinking it must be the culprit, but it was actually just callingupdate_rates
that caused this. Here is a comparison of what changes between this issue being present or not.Issue Present
Issue NOT Present
We've moved on by just using a cache file but I wanted to post this here because I searched and I didn't find any Issues documenting this.
The text was updated successfully, but these errors were encountered: