Cluster mode

Edit

If you want to use cluster mode, koa-cola provide configuration file of pm2. change pm2 configuration if needed and running this to start:

1
pm2 start pm2.config.js

pm2.config.js

1
2
3
4
5
6
7
{
name: 'koa-cola-app',
script: __dirname + '/app.ts',
instances: 2,
interpreter: 'ts-node',
exec_mode: 'cluster'
}