oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.01k stars 2.66k forks source link

bun not working with multiple instances an cluster PM2 #12466

Open MCode-Team opened 2 months ago

MCode-Team commented 2 months ago

What version of Bun is running?

bun -v1.1.18

What platform is your computer?

uname -mprs x64

What steps can reproduce the bug?

When running pm2 start index.js -i 3 --interpreter=bun instead of running in cluster mode, it works in fork mode. Any workaround to use all the cores of cpus? any alternatives or solution to this?

1720547519637

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

mushonnip commented 1 month ago

pm2 relies on node:cluster module which not supported in Bun yet, but someone is working on this #11492