Scaling sidekiq network archetecture: concurrency vs processes

萝らか妹 提交于 2019-12-14 02:43:52

问题


I'm wondering how to efficiently scale sidekiq on my server.

The author says he uses 6 sidekiq processes, each with concurrency set to 25. He also suggests trying concurrency of 50 if you have heavy I/O.

What's the difference between adding more processes or increasing concurrency? Which is better for helping my app process more jobs faster?


回答1:


I've tested with concurrency as high as 300 but at that level you start to run into trouble with the MRI. Mike, the author, doesn't recommend concurrency higher than 50 threads per instance of sidekiq.

My understanding is that additional instances will allow your sidekiq jobs to be processed faster as they aren't getting held up by Ruby's MRI. The only downside with additional instances would be a certain amount of memory overhead for each instance.



来源:https://stackoverflow.com/questions/24852326/scaling-sidekiq-network-archetecture-concurrency-vs-processes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!