Have Meteor use Cluster? #12993
Torgen
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not sure if using cluster was a problem under fibers, but if so, that problem is about to go away. Some cloud providers default to multi-vCPU VMs (e.g. google cloud E2 VMs) and being able to use all them seems important.
I'm imagining the primary does the oplog tailing and distributes the data to the workers in memory, reducing the bandwidth usage compared to each worker process (or without cluster, each copy of the app) all tailing the oplog at the same time.
Especially since older apps may have global listeners that only one copy of should run, this would have to be opt in. (And newer apps may want to do that too.) Perhaps in
meteor.mainModule
in package.json, if you set "server-worker", that code runs on the workers, and if you set "server-primary", that runs on the primary?Beta Was this translation helpful? Give feedback.
All reactions