Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.46k stars 2.62k forks source link

How to activate multithreading on pm2 ecosystem.config.js on this 1 instance? #5704

Open christianp8 opened 11 months ago

christianp8 commented 11 months ago

how to activate multithreading on pm2 ecosystem.config.js on this 1 instance, this is my ecosystem.config.js now:

module.exports = { apps: [ { name: "Voila-Test-Kernel-10", script: "/opt/miniconda/envs/project3/bin/voila", args: ["--no-browser", "/var/www/html/Voila_Home/AnalyticEngine.ipynb", "--template", "vuetify-default"], interpreter: "/opt/miniconda/envs/project3/bin/python", autorestart: true, watch: false, max_memory_restart: "31G", instances: 1 }, ], };

christianp8 commented 11 months ago

thank you for those who read this and give me an advice

YemYigit commented 11 months ago

try adding to your config file

exec_mode: 'cluster',
instances: 'max',