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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32351-2bdf2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32351-2bdf2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?