Yes. Parse Server is essentially an Express.js middleware and usually run on a regular Express.js app. So using pm2 to launch Parse Server shouldn’t be a problem.
I’ve also started using the cluster mode. What this means is that PM2 will automatically run multiple instances of your application. You can do this by simply adding the following to the ecosystem.config.js file (note that I’m using the max number of CPUs, but you could trim this down to suite):
instances: "max",
exec_mode: "cluster",
One little note on using this feature. I’ve found that one cannot login to the Parse Admin dashboard when this feature is being used. I’m sure there is some config that could help with this, but I’ve not taken the time to figure it out. To get around this, I stop the additional instances that are running, login and then restart the instances I’ve just stopped.
If anyone knows how to get around that, please feel free to share