morph icon indicating copy to clipboard operation
morph copied to clipboard

Sidekiq processes using 100% CPU

Open henare opened this issue 9 years ago • 2 comments

This is causing the queue to build up because the workers take forever to finish running scrapers. Right now there's 63 scrapers queued but only 2 containers actually running.

Extracted from #992.

henare avatar Apr 30 '16 03:04 henare

I found some duplicate jobs on the queue. After clearing them out there's a lot more running containers.

henare avatar Apr 30 '16 06:04 henare

So the duplicates definitely make the sidekiq process run glacially but I've also found a bunch of new scrapers that are in infinite loops and logging output for every loop too. That's bound to peg the CPU but what should we do in that case? I think the only solution would be to add some kind of CPU time restriction. It would be a shame to add another constraint.

henare avatar Apr 30 '16 06:04 henare