Problem with Action Cable #568
Replies: 1 comment 2 replies
-
Complicated deployment issues are not my strongest point, but historically when I’ve deployed and scaled rails it’s common to need significant ram per thread/process. It doesn’t sound crazy for a worker jo to need a gig of ram. I think you may just need to allocate more memory to it. It doesn’t surprise me that switching from postgres to redis made no difference on ram. The ram overhead is from the rails stack as opposed to the queue handler. Another alternative is to try one of the more supported deploys (Heroku, Fly, Render). I’ve done most of my testing across those. They all make it pretty easy to allocate greater resources to your worker pool. I know ngnix is popular but I don’t have much experience with it. |
Beta Was this translation helpful? Give feedback.
-
Dear @krschacht
I'm using Nginx + Passenger for server of Rails app and I faced trouble is not receipt message from background job (GetNextAIMessageJob) after AI return message. Thinking circle is endless until F5 page.
I checked at passenger-status and detected problem happen when RAM for cable process is high. Here is 1055MB
I just restart server, everything is OK. But I must restart server everyday.
I also switch adapter from postgresql to redis. It's same. I think problem happen by Passenger, but I don't know which config or how to setup to fix this bug.
If you know this issue, or need more information. please let me know.
Beta Was this translation helpful? Give feedback.
All reactions