n-cluster
Utility for clustering node processes on heroku dynos
Usage
-
n-cluster
- will run either the value inpackage.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.