You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that.
if(cluster.isPrimary){// 如果是主进程,fork 子进程Logger.log(`Master process is running with PID ${process.pid}`);// 根据 CPU 核心数来启动多个工作进程for(leti=0;i<numCPUs;i++){cluster.fork();}cluster.on('exit',(worker,_code,_signal)=>{Logger.log(`Worker ${worker.process.pid} died`);cluster.fork()});}else{// 如果是工作进程,启动 Nest 应用bootstrap();}
i use cluster。but,socket will be double run
Thanks for reporting!
Can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that.
Prerequisites
Issue
i use redis lock to fix it,but i wan to know some beautiful function
The text was updated successfully, but these errors were encountered: