2.0.0 • Published 4 years ago

@financial-times/n-cluster v2.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

n-cluster

Utility for clustering node processes on heroku dynos

Usage

  • n-cluster - will run either the value in package.json#main or ./server/app.js, and assumes a memory allowance of 512MB is required
  • n-cluster -s ./server/init.js - will run ./server/init.js
  • n-cluster -m 256 - will assume a memory allowance of 256MB is required

If an environment variable N_CLUSTER_MEMORY is present, this will be used to set the memory allowance per clustered process. This should only be used when tweaking to find a goo dvalue for m. Once a good value is determined it should be set in the app's Procfile, and the environment variable removed.