Open arunoda opened 10 years ago
+1 crossing similar bridge
It is a great feature that may make using Meteor for scale projects easier.
Look forward to seeing the Multi-CPU being released.
@arunoda I read your post in meteorhacks and I think that this can be easily to resolve using PM2 (#88) instead of forever because you can set up using the max of CPU's!
I'd love to use it. But it doesn't support sticky sessions. see: https://github.com/Unitech/pm2/issues/389 On Mon Jan 12 2015 at 4:34:39 AM Kiko Beats notifications@github.com wrote:
@arunoda https://github.com/arunoda I read your post in meteorhacks https://meteorhacks.com/run-meteor-on-multiple-cpus.html and I think that this can be easily to resolve using PM2 (#88 https://github.com/arunoda/meteor-up/issues/88) instead of forever because you can set up using the max of CPU's!
— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/8#issuecomment-69516511.
hmm, I didn't know how SockJS managed the session, but look that is significantly a problem to be scalable.
do you think that is possible resolve the problem writing a bit of code using node cluster api? people say in the issue that are using a library called sticky-session and later lift the script with pm2.
No, that project does not work for us. It's based on IP address and that's not a good way to doing sticky sessions.
On Mon Jan 12 2015 at 2:49:16 PM Kiko Beats notifications@github.com wrote:
hmm, I didn't know how SockJS managed the session, but look that is significantly a problem to be scalable.
do you think that is possible resolve the problem writing a bit of code using node cluster api? people say in the issue that are using a library called sticky-session https://github.com/indutny/sticky-session and later lift the script with pm2.
— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/8#issuecomment-69544201.
Yes that project seems not to fit. But this is a critical need, I hope we reach to a solution. :-)
How about using Phusion Passenger in standalone or nginx integration mode?
I think using nginx for load balancing between multiple apps running on different cores could be a good idea, but it needs some standardization and proper management with something like mup.
@arunoda what about using a web-worker API? https://www.npmjs.com/package/webworker-threads
Any update on this. You've recently talked about meteor-cluster
, will that essentially launch more node processes to support multi-cpu like the node cluster module?
It does not spawn instances. It's different from the node module. This is a complete solution which is a real proxy and does more work.
On Thu Jan 29 2015 at 1:24:27 AM Maaz Ali notifications@github.com wrote:
Any update on this. You've recently talked about meteor-cluster, will that essentially launch more node processes to support multi-cpu like the node cluster module?
— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/8#issuecomment-71903555.
@arunoda maybe this is not the right place to talk about it but will meteor-cluster utilize servers with multi-cpus? Load balance between multiple instances running on the same server using one cpu per instance for example.
We might can use it for that. I'll share some patterns soon.
On Thu Jan 29 2015 at 2:49:00 AM Maaz Ali notifications@github.com wrote:
@arunoda https://github.com/arunoda maybe this is not the right place to talk about it but will meteor-cluster https://github.com/meteorhacks/cluster/ utilize servers with multi-cpus? Load balance between multiple instances running on the same server using one cpu per instance for example.
— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/8#issuecomment-71918147.
Sound interesting, here's just for ref btw https://github.com/andruschka/pm2-meteor/issues/6
:+1:
With galaxy getting tabled till 1.1 this would be amazing!