I am using scrapy and scrapyd to crawl some content. I have 28 crawlers that run, but only 8 at a time. Each crawler takes from 10 min to several hours to complete. So im looking for a way to order them correctly, in order to minimize the time the server is active.
I already gather information of how long each crawl takes, so it's only the minimization problem, or how to formulate it.
The script is started using php, so the solutions should preferably run in php.