Does the App Router support PM2 cluster mode? #71946
Unanswered
developer-choi
asked this question in
App Router
Replies: 1 comment 1 reply
-
Hi @developer-choi ,
be aware that the default mode of pm2 ecosystem is |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/developer-choi/test-pm2
I installed Next.js using
npx [email protected]
and then added PM2 globally for testing.
npm i -g pm2
However, I encountered the following error in cluster mode.
That every time I run That every time I run
pm2 reload ecosystem.config.js
, the service crashes, the service crashes,and when the service is down, running
pm2 reload ecosystem.config.js
brings it back to life.From my experience, out of 10 times I run
pm2 reload ecosystem.config.js
, the service crashes about 8 times. It’s not 100%, though.As you can see, both pm2 and nextjs code were basic examples, but I had problems.
So I looked at the error log file.
pm2 logs
So I looked at pm2 and nextjs official documents, but I couldn't find the answer I wanted.
It doesn't have to be pm2. I want to do uninterrupted distribution. What should I do?
Beta Was this translation helpful? Give feedback.
All reactions