Chromium browser with PM2 cluster mode

105 views
Skip to first unread message

Aditya

unread,
Jan 7, 2023, 10:02:42 AM1/7/23
to Chromium-discuss

On VPS I have installed chromium browser and given executable path like this:

const browser = await puppeteer.launch({

executablePath: '/usr/bin/chromium-browser'

})


Reference link: https://stackoverflow.com/a/63137427

But it is mentioned here: https://stackoverflow.com/a/57663436 that path should be different for each cluster in PM2. With 5 PM2 instance cluster how can I give different executable paths so that load gets shared among each cluster? Any suggestions?
Reply all
Reply to author
Forward
0 new messages