Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ditsmod-bun does not use cluster mode #7990

Closed
KostyaTretyak opened this issue Nov 27, 2024 · 3 comments
Closed

ditsmod-bun does not use cluster mode #7990

KostyaTretyak opened this issue Nov 27, 2024 · 3 comments

Comments

@KostyaTretyak
Copy link
Contributor

So, ditsmod on Node.js is many times faster than ditsmod on Bun:
Screenshot from 2024-11-27 17-07-56

This is because ditsmod on Bun actually runs on a single core, without using cluster mode. Which, in turn, is caused by these changes in the latest release:

e0cb95a#diff-2860b74bd1fe8de8980f88f5898296185daf185d083a7ca1457df03452c466ee

I wonder why you made this edit? Are you not using pm2 when you run apps on Bun?

@KostyaTretyak
Copy link
Contributor Author

By the way, the following command can be found in the recommendations on the Bun website:

pm2 start --interpreter ~/.bun/bin/bun index.ts

On the other hand, it is not obvious on which engine (Node.js or Bun) pm2 works in this case, if we still need to specify the interpreter here.

I see that other frameworks in your repository for Bun use the standard cluster mode for Node.js. I guess I should do the same, right?

@waghanza
Copy link
Collaborator

As I understand pm2 is recommended for node (i.e : to run all CPUs).

Not sure this tool is recommended for others, feel free to propose any change. The idea is to take advantage of all computer power, but pm2 has hard-defined node dependencies, maube it is not the recommanded tool

@KostyaTretyak
Copy link
Contributor Author

Fixed in #7993

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants