Unitech / Unitech/pm2

EC2 + PM2 Doesn't work - Timeout

Open
#4,716 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Inspecting
Dominant language
JavaScript
Stars
43.3k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

Hi, I have an structure in EC2 with LB and multiple machines with PM2 and after a lot of thousands requests the PM2 stop or stuck in some endpoint and continue respond to Load Balance that is working, and the LB send a thousands of requests.
I'm using NestJS with Mysql and to start pm2 that is the command

pm2 start yarn --cwd /root/app --interpreter bash --name 'API' -- start
Does anyone had this problem?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the reported EC2 load-balancer setup and the PM2 command pm2 start yarn --cwd /root/app --interpreter bash --name 'API' -- start. Investigate the behavior after sustained high request volume, including the NestJS and MySQL application context; done means identifying a reproducible cause and documenting or implementing a verified resolution for the timeout or stuck process.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript, mysql, nodejs
Domain
backend, cloud, databases, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.