Meteor - Clustering

meteor

http://nodejs.org/api/cluster.html
https://meteorhacks.com/introducing-multi-core-support-for-meteor.html - done reading

How can we use the meteorhacks:cluster package?

meteor add meteorhacks:cluster
export CLUSTER_WORKERS_COUNT=auto

If you now run your app, your Meteor app will use all the cores available on your server. Here we made use of the cluster package’s multicore support. We can also use cluster to distribute load among multiple servers. You should look at the cluster docs to set this up.

If you are using the Meteor Up to deploy your app, update mup and do mup setup once.

You can also specify the number of workers explicitly, like this:

export CLUSTER_WORKERS_COUNT=2
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License