I am using a puppeteer and a puppeteer-cluster to take screenshots of the received HTML. To "bypass" the Node.js' single-thread processing, I use several Docker containers.
The problem is that it randomly prolongs a render time - once the same HTML is rendered in 200 ms and the next time (same configuration, environment etc.) it is 8.2 s. Node's logs does not contain any errors.
Does it have any solution?