ruby - Can Sidekiq take advantage of multiple CPU cores? -


i new sidekiq , use ruby on amazon ec2 instances work using imagemagick images.

while running realized every worker runs on same core. use ec2 c3.2xlarge machines , have 8 cores. shows cpu usage 15% 1 core used 100%, , others using 0%.

can sidekiq use different cpu cores different workers? if can, inefficiency caused imagemagic , how can make use other cores?

if want utilize multiple cores using mri, you'll need start multiple sidekiq processes; having multiple threads configured sidekiq instance not enough.

so if wanted use 8 cores, start 8 processes. feed off of same queue, there's no need worry jobs being processed multiple times.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -