You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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