Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
Update autoscaling config for sync jobs
Ondra Urban86ad83e6a6b8
diff --git a/src/autoscaling/system_status.js b/src/autoscaling/system_status.jsindex 6bc84c749..adead9bc6 100644--- a/src/autoscaling/system_status.js+++ b/src/autoscaling/system_status.js@@ -6,7 +6,7 @@ import { weightedAvg } from '../utils';const DEFAULT_OPTIONS = {currentHistorySecs: 5,maxMemoryOverloadedRatio: 0.2,- maxEventLoopOverloadedRatio: 0.2,+ maxEventLoopOverloadedRatio: 0.4,maxCpuOverloadedRatio: 0.4,maxClientOverloadedRatio: 0.2,};diff --git a/src/cheerio_crawler.js b/src/cheerio_crawler.jsindex bceb0884e..da7a0eae9 100644--- a/src/cheerio_crawler.js+++ b/src/cheerio_crawler.js@@ -20,6 +20,15 @@ const DEFAULT_OPTIONS = {},ignoreSslErrors: false,useApifyProxy: false,+ autoscaledPoolOptions: {+ snapshotterOptions: {+ eventLoopSnapshotIntervalSecs: 2,+ maxBlockedMillis: 100,+ },+ systemStatusOptions: {+ maxEventLoopOverloadedRatio: 0.7,+ },+ },};/**