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
Post a Comment