Home > Back-end >  Does Elastic Beanstalk run one node thread per instance?
Does Elastic Beanstalk run one node thread per instance?

Time:12-20

Normally if you configure a node server yourself you set up pm2 which spawns several “workers”. I don’t see anywhere in the AWS docs where elastic beanstalk does this or allows for configuration of multiple “workers” or some kind of single server “cluster”, so is it always just one thread per instance? That would be kind of silly on an instance w multiple cores.

CodePudding user response:

Yes, it is a single thread. Elastic Beanstalk just executes your Procfile to start an application which is node app.js by default. You would have to custom develop your application to use more "workers":

  • Related