How is the egg cluster mode used?

I also read the description on the official website, and it looks very simple.

https://eggjs.org/zh-cn/core/.

but I still don"t know how to use it. Are there any practical examples?

my egg project encountered a CPU computationally intensive scenario about data duplication and import. As soon as the request is initiated, the CPU will be 100%, and the system will not respond. I want to use cluster to ensure that it can still be accessed while performing the calculation.

https://coding.net/u/voson/p/.

searched a lot of places and found no useful information, many of which are copy, or different from egg.

I hope you can give us your advice.

Mar.10,2021

do offline calculations. CPU 100% is unacceptable.


egg.js has built-in multi-process management. You may want to use nginx to create a few more services to deal with

.
Menu