@financial-times/n-cluster

Utility for clustering node processes on heroku dynos

Stats

StarsIssuesVersionUpdatedCreatedSize
@financial-times/n-cluster
2.0.0a year ago4 years agoMinified + gzip package size for @financial-times/n-cluster in KB

Readme

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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.